I'm having some troubles with the python-telegram-bot. I've been working in a local ubuntu virtual machine with no problems. I've uploaded the .py to a virtual machine on another server (24/7 running) and i run with some issues. I'm getting this error:
telegram.ext.dispatcher - ERROR - No error handlers are registered, logging exception.
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/telegram/ext/dispatcher.py", line 555, in process_update
handler.handle_update(update, self, check, context)
File "/usr/local/lib/python3.8/dist-packages/telegram/ext/handler.py", line 198, in handle_update
return self.callback(update, context)
File "scriptbot_v7.py", line 77, in opciones
query.edit_message_text(text=info(), parse_mode='html', quote=False)
TypeError: edit_message_text() got an unexpected keyword argument 'quote'
Any ideas why quote is not working anymore? When I delete that it works, but everyone sees what someone else is saying and I preferred that doesn't happend.
The quote
argument only exists for the telegram.Message.reply_*
methods. It's just a shortcut for passing the correct reply_to_message_id
. Because Bot/CallbackQuery.edit_message_text
doesn't have a reply_to_message_id
paramater, there also is no quote
parameter. This is because while editing a message, you can't change whether it's a reply or not.
When I delete that it works, but everyone sees what someone else is saying and I preferred that doesn't happend.
Note that is not possible to send messages to group chats that can only be seen by some of the members. Everything posted in a group can be seen by every member of that group.
Disclaimer: I'm currently the maintainer of python-telegram-bot