New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] PTB detect anonymous send channel as 777000 = Telegram User ID #2810
Comments
Proper support for Bot API 5.5 will be added in #2808, but that didn't change the way channels send messages in groups. All you have to check is if |
Actually Bot API 5.5 haven't implemented in PTB yet, so how can you expect a bug related to new API in PTB? |
You're apparently not using the import html
import json
from telegram import ParseMode
from telegram.ext import Updater, MessageHandler, Filters
def callback(update, _):
update.effective_message.reply_text(f'<pre>update = {html.escape(json.dumps(update.to_dict(), indent=2, ensure_ascii=False))}</pre>', parse_mode=ParseMode.HTML)
def main():
updater = Updater('TOKEN')
updater.dispatcher.add_handler(MessageHandler(Filters.all, callback))
updater.start_polling(drop_pending_updates=True)
updater.idle()
if __name__ == '__main__':
main() This just replies the raw json-data received from Telegram to each message. If you run this example, you'll notice that the json data lists Telegram with id 777000 as You are somewhat right about the fact that 777000 should not be reported as
which strictly speaking doesn't cover the new send-by-a-channel messages. However, changing this would be the job of Telegram - PTB has no say in this. You can file a report at bugs.telegram.org or github.com/tdlib/bot-api. |
oke thanks you |
Steps to Reproduce
Expected behaviour
I want the ptb to fix the detect id to the chat id of the channel or none
Actual behaviour
I am a user of Telegram beta version 3.8.0, in Telegram beta there is a new feature, namely sending messages in groups using channels. when I use message info from the channel I'm on. ptb detects the channel as id 777000 which means as telegram, where the id is id lord. I can be an admin in a group that I am not an admin what if the group management bot adds the telegram id to the decorator is admin.
Operating System
Telegram Beta v8.3.0
Version of Python, python-telegram-bot & dependencies
Relevant log output
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: