Skip to content

Backs up a whole (or not) chat/channel by forwarding to another one

License

Notifications You must be signed in to change notification settings

EDM115/telegram-backup-dump

Repository files navigation

telegram-backup-dump

Backs up a whole (or not) chat/channel by forwarding to another one

Usage

  • Start bot
  • Add it to the chat/channel as admin with full rights if it's private (else, not needed)
  • /backup {id}. {id} can be @channelname or -100×××××××
  • (optional) /range ××:××. ×× are the numbers of start:end of posts/messages backup
  • /dump {id} id of chat/channel where you back it up. Bot MUST be admin with full rights there
  • (optional, True by default) /tag {True}/{False} If you need the forward tag or either send as copy --> will replace by 1/0 for simpler comparison
  • /go HERE WE GOOOOOOOW ! Sends a message with progressbar, success/fail (fails are mostly due to deleted messages) and when it's done Can take less or more time depending to how many messages

Needed variables

  • BOT_TOKEN
  • API_ID
  • API_HASH
    I think it's enough…

Hosting

Heroku I think… https://www.heroku.com/deploy?template=https://github.com/EDM115/telegram-backup-dump --> NOT READY YET !!!

Framework

PyroGram gang forever 💪

Code style

Commented

About

Backs up a whole (or not) chat/channel by forwarding to another one

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published