Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23247

Telebot bot.get_chat_member(chat_id, user_id) throws an error

$
0
0

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 FalseHow 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


Viewing all articles
Browse latest Browse all 23247

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>