91DarioDev / forwardscoverbot

telegram bot that echoes any message you send it or modify to anonymize messages
https://t.me/ForwardsCoverBot
GNU Affero General Public License v3.0
220 stars 84 forks source link

Add support for PTB version 13 #29

Closed devsdocs closed 3 years ago

devsdocs commented 3 years ago

Hi, trying to install this on Heroku, got some errors, when set the prefered PTB version to 12,8 it worked.

and also everytime I'm clicking the command or type something, the bot always reply with the same command or text, how to remove this?

Proof: Annotation 2020-11-06 001919

devsdocs commented 3 years ago

Thank your for awesome project!

91DarioDev commented 3 years ago

Hi, Thank you for the good words.

1) Maybe latest ptb version is still not supported, but it has been released really recently. I will consider to support it, as soon as I have a bit of free time.

2) What you reported is right and intended. The bot is an echo bot: what it does is just replying with the same thing you send. Maybe I haven’t clear the usage you need ? What are you using it for?

devsdocs commented 3 years ago

Hi, I understand what this bot do, just suggest a simple favor like when pressing command or only typing some words, the bot does not need to reply or echoing the message.

Just a suggestion, does not need to be implemented.

Once again, thank you.

91DarioDev commented 3 years ago

if you don’t want the bot to echo the commands and text messages also, in https://github.com/91DarioDev/forwardscoverbot/blob/master/forwardscoverbot/__main__.py you should invert handlers having 1 group with 2 group and viceversa. Then you have to make an if statement in the process_message function and return if it’s a text message.

I haven’t tried and nor tested it though

devsdocs commented 3 years ago

I'll try it

91DarioDev commented 3 years ago

I just added the support for ptb v.13 so I close this issue. For the other behavior feel free to open another issue if you still need help :)