Giter Site home page Giter Site logo

Comments (3)

edides avatar edides commented on June 12, 2024

faced the same issue, anyone has a solution?

from tgtg.

floriegl avatar floriegl commented on June 12, 2024

Yes, it got broken in d04f8c9 . Checking out v1.20.3 should fix that. _is_my_chat function only checks chat.id but the fallback does not have a chat attribute, but only a user attribute which has the same id (don't know how it works for group chats tho.

@Der-Henning please don't create a release of the current master with this bug.

from tgtg.

floriegl avatar floriegl commented on June 12, 2024

Also this is the full message: Update "Update(callback_query=CallbackQuery(chat_instance='<chat_instance_id>', data=<tgtg_scanner.models.item.Item object at 0xXXXXXXXXXXXX>, from_user=User(first_name='<user_first_name>', id=<IMPORTANT_CHAT_ID>, is_bot=False, language_code='de', username='<user_username>'), id='<callback_query_id>', message=Message(channel_chat_created=False, chat=Chat(first_name='<user_first_name>', id=<IMPORTANT_CHAT_ID>, type=<ChatType.PRIVATE>, username='<user_username>'), date=datetime.datetime(<year>, <month>, <day>, <hour>, <minutes>, <seconds>, tzinfo=datetime.timezone.utc), delete_chat_photo=False, from_user=User(first_name='<bot_first_name>', id=<bot_id>, is_bot=True, username='<bot_username>'), group_chat_created=False, message_id=<short_message_id>, reply_markup=InlineKeyboardMarkup(inline_keyboard=<just_all_the_buttons_of_the_previous_message>), supergroup_chat_created=False, text='Select a Bag to reserve')), update_id=<update_id>)" caused error "'NoneType' object has no attribute 'chat'"

from tgtg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.