Skip to content

Python Telegram Bot Api shows error 'Message text is empty' how to debug #1

@gopi-AI

Description

@gopi-AI

first bot reply(which asks for language selection) works fine after that it as to return to ask Gender after that Age and so on but instead it shows this error. iam college student doing similar project please reply

Starting..!
    2021-02-10 07:47:08,728 - __main__ - INFO - Waking Up Bot.
    2021-02-10 07:47:08,730 - __main__ - INFO - Bot is polling for sessions.
    2021-02-10 07:47:55,224 - telegram.ext.dispatcher - WARNING - A TelegramError was raised while processing the Update
    2021-02-10 07:47:55,225 - __main__ - WARNING - Update "{'update_id': 472297741,
    'message': {'message_id': 3, 'date': 1612923477, 'chat': {'id': 1680986729, 'typ
    e': 'private', 'first_name': 'Gopi'}, 'text': 'English', 'entities': [], 'captio
    n_entities': [], 'photo': [], 'new_chat_members': [], 'new_chat_photo': [], 'del
    ete_chat_photo': False, 'group_chat_created': False, 'supergroup_chat_created':
    False, 'channel_chat_created': False, 'from': {'id': 1680986729, 'first_name': '
    Gopi', 'is_bot': False, 'language_code': 'en'}}, '_effective_user': {'id': 16809
    86729, 'first_name': 'Gopi', 'is_bot': False, 'language_code': 'en'}, '_effectiv
    e_chat': {'id': 1680986729, 'type': 'private', 'first_name': 'Gopi'}, '_effectiv
    e_message': {'message_id': 3, 'date': 1612923477, 'chat': {'id': 1680986729, 'ty
    pe': 'private', 'first_name': 'Gopi'}, 'text': 'English', 'entities': [], 'capti
    on_entities': [], 'photo': [], 'new_chat_members': [], 'new_chat_photo': [], 'de
    lete_chat_photo': False, 'group_chat_created': False, 'supergroup_chat_created':
     False, 'channel_chat_created': False, 'from': {'id': 1680986729, 'first_name':
    'Gopi', 'is_bot': False, 'language_code': 'en'}}}" caused error "Message text is empty"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions