def is_sub(channel_id, user_id): try: chat_member = bot.get_chat_member(chat_id=channel_id, user_id=user_id) return True #return chat_member.status in ['member', 'administrator', 'creator'] except ApiTelegramException as e: print(e) return False
Error:
A request to the Telegram API was unsuccessful. Error code: 400. Description: Bad Request: user not found False
How to solve the problem? Why doesn’t it find the chat? pls help. If anything, I added the bot to the chat by the admin
I tried writing chat id in ” ” and still can’t find the chat. If anything, I added the bot to the chat by the admin
ванька Шилин is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.