Coder Social home page Coder Social logo

spriteovo / telegram-anti-revoke Goto Github PK

View Code? Open in Web Editor NEW
1.5K 41.0 181.0 3.24 MB

Telegram anti-revoke plugin

License: MIT License

C++ 92.04% C 0.51% Assembly 2.17% CMake 5.29%
telegram anti revoke anti-revoke delete anti-delete plugin recall anti-recall tdesktop

telegram-anti-revoke's Introduction

This project is no longer maintained, please read the release notes for the last version v0.4.4.


Telegram-Anti-Revoke

🌎 English | 🌏 简体中文

Telegram local messages anti-revoke plugin.

🔍 Preview

✨ Features

  • Prevent local messages from being revoked by the server.
  • Revoked messages will be marked as "deleted".
  • The plugin has excellent compatibility.
  • Multi-language support.

🍅 Compatibility

Usually the plugin is not affected by small updates of Telegram.
But some updates may cause the plugin to error or crash, please report the issue and wait for the plugin to be updated.

If you are using Telegram beta, please check the latest preview version.
(Compatibility updates for Telegram beta may not be released in time)

🍔 Usage

  1. Go to the Release Page to download the latest version of the plugin.
  2. Open Telegram and open the top-left menu. From there, note the application version and architecture *ARCH* (x86 or x64) which is labelled under the version, e.g Version x.x.x x64 (If you are under x84, there is no *ARCH* displayed).
  3. Close the running Telegram process.
  4. Follow the instructions accordly to your Telegram version (Before v2.8.5 - Since v2.8.5)
  5. Run Telegram.

Before v2.8.5

  1. Move the file TAR-Resources\*ARCH*.dll to the Telegram directory as version.dll.
  2. Run Telegram.exe.

Since v2.8.5

  1. Turn off the option Launch Telegram when system starts in the Telegram settings.
  2. Move the file TAR-Launcher-*ARCH*.exe and the folder TAR-Resources to the Telegram directory.
  3. You need to run TAR-Launcher-*ARCH*.exe to start Telegram each time.

Since v2.8.5 - Start with system

  1. Copy the file TAR-Launcher-*ARCH*.exe to your clipboard.
  2. Navigate to shell:startup in Explorer (or run it in Win+R).
  3. Right-click (open the context menu) and Paste shortcut in that directory.
  4. Optionally to make it start minimized see the -autostart guide.

🛠️ Build

See the Build Instructions.

🐛 Report

Please use the Issue Tracker to report issues or suggest new features.
To avoid duplication of issues, please check existing issues before submitting.

💎 ThirdParty

🍺 Acknowledgments

  • Thanks to 采蘑菇的小蘑菇 for providing help with compiling Telegram.
  • Thanks to dummycatz for pointing out the cause of cross-module malloc / free crash.

⚠️ Warning

  • The plugin makes no warranties and any risk of use is at your own risk.
  • This open source project and plugin is unofficial and is for educational purposes only.

telegram-anti-revoke's People

Contributors

0x11dfe avatar spriteovo avatar zalweny26 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

telegram-anti-revoke's Issues

Deleted Messages Disappear

Describe the bug

When i click on someone's reply and the telegram go to that message up there and then i go back to the chat the deleted messages Disappear.

Steps to reproduce

  1. go to any group chat
  2. click on someone's reply that's up in the chat view
  3. click the arrow to go to the recent/new messages

Expected behaviour

the deleted messages should not be deleted when i move through users replies.

Actual behaviour

deleted messages disappear.

Configuration

  • Operating system: Windows 10 Pro x64
  • Version of Telegram: 2.1.6
Logs Insert ArLog.txt here. (if necessary)
It's in the same directory as the version.dll file.

Windows Defender detects the plugin as trojan virus

Describe the bug

Windows Anti malware service detects this file as trojan virus on windows 10

Here is the windows security's report
Clipboarder-2021-02-27

Configuration

  • Operating system: Windows 10 20H2 19042.804
  • Version of Telegram: 2.5.8

[Bug report] 更新后提示bug且无法防撤回

Describe the bug

更新TG Desktop v2.4后启动时跳出如下提示框且防撤回功能失效
image

Steps to reproduce

  1. 更新TG desktop至v2.4
  2. 启动TG
  3. 跳出提示框,点击忽略
  4. 无法防撤回

Expected behaviour

正常启动且防撤回

Actual behaviour

无法防撤回

Configuration

  • Operating system: Windows Server 2012R2
  • Version of Telegram: v2.4
Logs

ArLog.txt

Attempt to support Linux

Attempt to make the plugin support Linux.

Attempted code changes will be made in linux-experiment branch of this repository.
(This branch has not been created yet)

[Question] Anti-Revoke plugin does not work.

I have packed the file avrt.dll in the main installation directory of Telegram: D:\Telegram Desktop. Still nothing happens. Maybe you can tell me where my error is. I use Windows 10 64bit and Telegram Desktop Version 1.9.9

[Feature Request]Hope will have iOS version. 希望未来会有iOS版本的

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is.

Describe the solution you'd like

A clear and concise description of what you want to happen.

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

[Question] Are you interested in taking charge of a similar project?

Hey,
This is a great project. I used to work on a similar one last year for my class project.
I implemented an anti-revoke tool for WeChat, QQ, and Telegram. The Telegram part was based on your research. That was very helpful.
Since I don't have enough time to maintain this project anymore, and people keep querying for new versions' supports of WeChat and Telegram. I am wondering if you are interested in taking charge of my project? I have notes that may help you maintain the anti-revoke for WeChat and QQ.

Please let me know if you have any concerns.

[Question] 删除的信息消失

选择历史信息跳转的时候/点击回复的信息(跳转篇幅大时),如果感觉到一个卡的感觉,该群组已删除的信息就会全部消失。

插件不兼容 TG 2.4.5 新版本

Describe the bug

A clear and concise description of what the bug is.

Steps to reproduce

  1. Tg更新2.4.5了,防撤回插件造成TG无法启动。

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

Configuration

  • Operating system:
  • Version of Telegram:
Logs Insert ArLog.txt here. (if necessary)
It's in the same directory as the version.dll file.

[Bug report] 无法发送 sticker 包删除的 sticker

Describe the bug

历史发送的 sticker 存在有未找到贴纸包的时候, 点该sticker 会卡发送中(一个时间图标)

Steps to reproduce

  1. 打开sticker列表
  2. 点击已经没有 sticker包存在的 sticker
  3. 对话窗口中该 sticker一直在发送中

Expected behaviour

原版 telegram 中 存在过的 sticker 都能发送成功(有标识)

Actual behaviour

该 sticker 一直是🕐发送中状态

Configuration

  • Operating system: Windows 10 version 1809 (Updated May 2019)
  • Version of Telegram: 2.0.1
Logs
log.txt 内容
``` [2020.04.01 12:17:53] RPC Error: request 225 got fail with code 400, error FILE_REFERENCE_EXPIRED [2020.04.01 12:17:55] RPC Error: request 226 got fail with code 400, error FILE_REFERENCE_EXPIRED [2020.04.01 12:17:56] RPC Error: request 227 got fail with code 400, error FILE_REFERENCE_EXPIRED [2020.04.01 12:18:10] RPC Error: request 231 got fail with code 400, error FILE_REFERENCE_EXPIRED ```

绿色(portable)版无效

晕 不知道介绍中所说的“telegram根目录”在哪里
索性和绿色版telegram放在一起。
运行并测试删除自己发的消息,发现还是整个地消失了
不知是否支持win10绿色版?如果支持该如何解决此问题?

[Question] How to Use?

Is there any how to use guide available. In usage you said to copy version.dll file to telegram directory. I am not seeing a version.dll file in your repo. Please provide a description of how to use

[Question] The way to compile Telegram

Hi Sprite,
I found a lot of difficulties when I am reversing Telegram without a symbol file. So I try to compile it on local (follow the official document step by step)but encounter errors.
From your project’s description, I guess there is some sort of tricks, could you give me any suggestions about how to compile it correctly.

[Bug report] 最新版本1.9.21已不兼容

Describe the bug

#5 产生的错误一致

Steps to reproduce

  1. 打开最新电报

Expected behaviour

正常工作

Actual behaviour

电报奔溃 点击忽略后仍可运行电报

Configuration

  • Operating system: Windows 10
  • Version of Telegram: 1.9.21
Logs Anti-Revoke Plugin An error has occurred! Please help us fix this problem. SearchSigns() failed.

Click "Abort" or "Ignore" will pop up GitHub issue tracker page.
You can submit this problem to us there.
Thank you very much.
中止(A) 重试(R) 忽略(I)

[Feature Request] Log deleted messages

Thanks for the fantastic tool. Really appreciate it. :)
The deleted messages are gone after restarting telegram desktop app.
Can they be logged somehow to a text file with contact name and deleted message with timestamp?

使用时 Telegram 崩溃

用着用着就会弹出这个,然后只能重启软件,有时候不弹出这个软件直接闪退
bug

程序运行是否有dlke.exe程序产生

本地系统win10, 发现每次启动telegram后,会有dlke.exe这个程序自动生成。删除后,再次启动telegram依然会自动生成,请问这个dlke.exe程序是否是有补丁文件产生的?
谢谢!

[Bug report] Plugin does not work on the Telegram beta version.

Describe the bug

Installed plugin and open telegram, telegram crashed instantly.

Steps to reproduce

  1. Install plugin
  2. Open telegram
  3. Pop up error report which wrote:

Anti-Revoke Plugin

An error has occurred!
Please help us fix this problem.

SearchSigns() failed.


Click "Abort" or "Ignore" will pop up GitHub issue tracker page.
You can submit this problem to us there.
Thank you very much.

中止(A) 重试(R) 忽略(I)

Expected behaviour

Telegram opens normally

Actual behaviour

Telegram crashed.

Configuration

  • Operating system: Windows 10 18363.693
  • Version of Telegram: 1.9.19 beta
Logs [2020.03.08-22:26:16] [Info] [2020.03.08-22:26:16] [Info] Running. Version: [0.1.4] [2020.03.08-22:26:18] [Info] No need update. Local: [000001004] Latest: [000001003] [2020.03.08-22:26:19] [Warn] Search DestroyMessage falied. [2020.03.08-22:26:19] [Error] SearchSigns() failed. [2020.03.08-22:27:20] [Info] [2020.03.08-22:27:20] [Info] Running. Version: [0.1.4] [2020.03.08-22:27:21] [Info] No need update. Local: [000001004] Latest: [000001003] [2020.03.08-22:27:22] [Warn] Search DestroyMessage falied. [2020.03.08-22:27:22] [Error] SearchSigns() failed. [2020.03.08-22:28:03] [Info] [2020.03.08-22:28:03] [Info] Running. Version: [0.1.4] [2020.03.08-22:28:04] [Info] No need update. Local: [000001004] Latest: [000001003] [2020.03.08-22:28:04] [Warn] Search DestroyMessage falied. [2020.03.08-22:28:04] [Error] SearchSigns() failed.

Support for WINE?

Hi. In linux I tried this using Wine For versions of Telegram Desktop 2.4.0 2.4.3, 2.4.4 and 2.5.1 (Windows 10 32 Bit)
But the Anti-Revoking doesn't seems to be working.
When I tried deleting it got deleted.
Any Ideas?
PS; I tried with the Latest release of Telegram-Anti-Revoke

打开TG时报错

每次打开都会跳一次error,显示"SearchSigns() failed.",2.4.2到2.4.3都会弹一样的提示

[Feature Request] Add support for showing edit history

Thank you for the plugin. Currently one can bypass the current anti-invoke plugin by always editing the message to empty and then delete it. (Only for text) Is there any plan to add an option to keep edit history?

[Bug report] 2.1版本功能疑似失效...

Describe the bug

A clear and concise description of what the bug is.
无法防撤回了 , 消息依然会被删除

Steps to reproduce

  1. A发一条消息
  2. A删除一条消息
  3. B处消息消失

Expected behaviour

Tell us what should happen
消息应该不被撤回

Actual behaviour

Tell us what happens instead
群组里的消息被撤回了

Configuration

  • Operating system: Win 10
  • Version of Telegram: v2.1
Logs Insert ArLog.txt here. (if necessary)
It's in the same directory as the avrt.dll file.

[Bug report] Plugin does not work in v2.1.5

Describe the bug

When Opening up telegram it shows an error message
Link: https://prnt.sc/sg7y7b

Steps to reproduce

  1. Update To Telegram v 2.1.5
  2. Restart or Start Telegram after update

Expected behaviour

it should just open normal like every time and the plugin works

Actual behaviour

When Opening up telegram it shows an error message
Link: https://prnt.sc/sg7y7b

Configuration

  • Operating system: Windows 10 Pro x64
  • Version of Telegram: 2.1.5
Logs Insert ArLog.txt here. (if necessary)
It's in the same directory as the avrt.dll file.

[Feature Request] Cantonese support

Is your feature request related to a problem? Please describe.

Pragmatically speaking, no.

Describe the solution you'd like

  • The word "deleted" should be replaced by "刪咗" if detected a Cantonese translation applied.
  • These are popular Cantonese translations (from https://t.me/localization_hk/498):
🇭🇰 香港人口語
tg://setlanguage?lang=hongkonger
適用於:Android/iOS
簡介:模仿香港人講嘢時中英夾雜

🇭🇰 廣東話
tg://setlanguage?lang=cantonese
適用於:Android/iOS/TDesktop
簡介:使用中文用詞嘅廣東話

🇭🇰 港式潮語
tg://setlanguage?lang=hkslang
適用於:Android/iOS
簡介:以廣東話為藍本,改用巴絲、AGGER 等論壇用語

🇭🇰 香港廣東話(18+)
tg://setlanguage?lang=hkcantonese
適用於:Android/iOS
簡介:廣東話為主,內含粗口 🔞

Describe alternatives you've considered

  • Actually, these 4 use different translations for "deleted":
    • cantonese uses "刪咗".
    • hkslang and hkcantonese use "剷咗".
    • hongkonger uses "delete 咗".

For now only cantonese is suitable for Telegram Desktop, so the other three can be temporary ignored.

不在线期间无法防撤回

我是win7的系统,用了好几天了感觉确实很强,也发现了几个问题:
1、不登录期间别人发的消息是可以正常撤回的
2、登陆期间有些消息也可以撤回,但会显示“已删除”,这些撤回的图片会呈现模糊状态,就好像没有下载下来一样
3、登录时间长了会报错,必须重新打开软件,但是重新打开就看不到之前被阻止撤回的内容了
目前有这几个问题,希望能引起大佬重视,感谢大佬提供的便利,加油!
登陆期间撤回的图片

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.