Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Restore deleted messages #620

Closed
dlion opened this issue Dec 21, 2014 · 25 comments
Closed

Restore deleted messages #620

dlion opened this issue Dec 21, 2014 · 25 comments

Comments

@dlion
Copy link

dlion commented Dec 21, 2014

I think it would be pretty useful the possibility to restore deleted messages using https://core.telegram.org/method/messages.restoreMessages API

@zhukov
Copy link
Owner

zhukov commented Dec 31, 2014

You can only restore message, which was deleted from the same app within short amount of time. You can't get list of all the deleted messages and restore selected.
I don't see any point here.

@dlion
Copy link
Author

dlion commented Jan 3, 2015

Wen can retrieve deleted messages' id using https://core.telegram.org/method/messages.deleteMessages method and restore it using https://core.telegram.org/method/messages.restoreMessages, of course after n times the messages are gone forever but who cares, if I delete a message without want it I can restore it immediately.

@zhukov
Copy link
Owner

zhukov commented Jan 6, 2015

The UI for deleting messages is the same as in mobile clients: you have to select some messages and press "delete" button. So can't delete message by one miss-click. When you delete the whole history, we always have a confirm window, so also 2+ clicks.

I don't want to create a new UI for restoring messages, you are the first to ask it.

The one thing, we could do is to add confirm modal window after pressing "Delete" button in messages history. Will that be OK?

@dlion
Copy link
Author

dlion commented Jan 6, 2015

Perfect, thank you!

@zhukov zhukov closed this as completed in b9aef94 Jan 16, 2015
@JFGNico
Copy link

JFGNico commented Oct 19, 2015

I don't know if I can post here or not, but I don't know where to ask it...
Is there any posibility to restore a deleted chat on Telegram to my device or my computer(as a file)? Few hours have passed since I delete it... It was an error.

@Immortalin
Copy link

@zhukov I accidentally deleted all messages in a group chat using the delete all option(on iOS), is there a way to recover them?

@zhukov
Copy link
Owner

zhukov commented Nov 18, 2015

@Immortalin no, sorry.

@mortezae
Copy link

mortezae commented Mar 8, 2016

Hello
Another messege looser here ;-)
Sorry to ask this question here, but i want to patch Webogram or Telegram-cli to add ability to restore my deleted messages. I have deleted them some hours ago via android client. Now is it possible to implement restoration capability in Tg-Cli and restore my messages? Thank you.

@salamzadeh
Copy link

I have this problem too 👎
I accidentally deleted all messages of my friend using the delete all option(on iOS) ( i think that Delete ALL button position is bad and must swap with cancel)
please help me for recover them...
@mortezae did you find any solution in webgrom for adding this ability ?

@mortezae
Copy link

mortezae commented May 7, 2016

@pbdp as I asked developers, sorrily this method is not working...
Ask your friend to forward them to you if possible. If the conversation consists of several messages, he/she can dump them as text or json for you, using telegram-cli.

@garrona
Copy link

garrona commented Aug 8, 2016

@zhukov I was deleting the notification message from Telegram server, my finger was right above the Telegram's notification, suddenly the sequence of message history changed, it happened so fast and Telegram's notification conversation shifted up and at the same down pushed down my other conversation with my mom. I didn't even notice actually I deleted my conversation with my mom. This action immediately wiped out the conversation from all of my devices... I wish there was a grace period on server so I could retrieve back, maybe you should give some grace time ?? Delete should not delete from Server, but it should hide it from Client who actioned to delete it (fake delete, just hiding from Client's history only) and hold it on server for some period of time like 30 days. So whatever is deleted goes to the Trash Can in the cloud first, of course Trash Can belongs to the individual's cloud account which would keep only for 30 days. You can even name this function "Undo Delete". Anyway my mom still have all our conversation and images we shared, why don't you add some function to retrieve history from other side's backup ? Provided that other person approves the recovery process of course! So no issues you with encryption protocols at all. Because It will be more like forwarding the messages from other person's history, and that person will authorize it definitely. You can even name this function "Buddy Recover". So please consider two functions "Undo Delete" and "Buddy Recover".

@specificspacific
Copy link

Just want to add my support for some sort of grace period, undo button, or even just hiding the “delete all” button behind a few more submenus, because I just lost a whole conversation, but all my friends still have it. Seems like a pretty weird feature, really given that. I can see a use for it, but it’s likely more of an edge case.

@Dmitry-Kashkarov
Copy link

@zhukov Hello is there an option to restore messages in telegram chat on mac? I have selected several messages and clicked delete all, thought that is related to all selected, not all message history. Please reply

@stek29
Copy link
Collaborator

stek29 commented Feb 10, 2017

@Dmitry-Kashkarov No.

@ctmasturaa
Copy link

hi i accidentally sent a video message to the wrong group and accidentally hit delete for me, any way i can restore the message so i can hit delete for everyone?

@stek29
Copy link
Collaborator

stek29 commented Dec 16, 2017

@ctmasturaa No

@KarelWintersky
Copy link

Same problem.,
No? Why?

@stek29
Copy link
Collaborator

stek29 commented Jan 8, 2018

Because servers don't allow that

@ghost
Copy link

ghost commented May 28, 2018

I'm looking for a way to retrieve a deleted image, I can view the image in an image thumbnail through the response of a user of a group, the image is there somewhere ... because I see the small thumbnail of it, so I believe I can retrieve it from a url it is hosted on ... I thought about inspecting the telegram code and finding out the url that this image is in, but I can not inscribe the telegram app code on iOS, does anyone have any idea how Can I do this?

@stek29
Copy link
Collaborator

stek29 commented May 28, 2018

You pretty much can’t. Once image is deleted, all references to it are removed. If you’ve managed to save image id/hash/etc before deletion, it would be available for some time until it’s cleared from server. But if the message is already gone, there’s not much to do.

@ghost
Copy link

ghost commented May 28, 2018

I still believe that I can retrieve the image, because I can see the miniature of it in the response that a person gave, the image is saved somewhere, because to generate this thumbnail has some reference being sought from that image yet ... The detail is that I only see this miniature of the image in the telegram of my iphone, if I open the web telegram I do not see it, I believe that the image is saved in some folder of my cell phone if I could inspect the code of the app of the Telegram iPhone, I could probably recover, but unfortunately I have not yet fixed a way to do this = \

@stek29
Copy link
Collaborator

stek29 commented May 28, 2018

  • Thumbnail is cached on device
  • idk about iOS app, but android app properly deletes files when messages containing photos are removed iirc

@stek29
Copy link
Collaborator

stek29 commented May 28, 2018

Anyway, it has nothing to do with webogram

@ufukomer
Copy link

Same problem occurred in our very important group history, im trying to find a solution. so +1

@Aokromes
Copy link

no solution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests