how to specify if the message was from group or private in python telegram bot
how to specify if the message was from group or private in python telegram bot Question: Here is my code: # 1st method if chat.type == ‘supergroup’: # Check if the bot’s name was mentioned in the message # if bot_name in message_text: # Generate a response to the question response_text = generate_response(message_text) update.message.reply_text(response_text) elif …