Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No inline_message_id for ChosenInlineResultHandler for new user accounts. #1345

Open
3 tasks done
EverythingSuckz opened this issue Sep 24, 2023 · 1 comment
Open
3 tasks done

Comments

@EverythingSuckz
Copy link

EverythingSuckz commented Sep 24, 2023

Checklist

  • I am sure the error is coming from Pyrogram's code and not elsewhere
  • I have searched in the issue tracker for similar bug reports, including closed ones
  • I ran pip3 install -U https://github.com/pyrogram/pyrogram/archive/master.zip and reproduced the issue using the latest development version

Description

The inline_message_id for ChosenInlineResult object is None for newer telegram accounts using Int64 user IDs

Steps to reproduce

  1. Write a on_chosen_inline_result decorator function
  2. Log the inline_message_id from ChosenInlineResult object. (try to test with new Int64user IDs)

Code example

from pyrogram import Client, types

@Client.on_chosen_inline_result()
async def chosen_inline_handler(client: Client, chosen: types.ChosenInlineResult):
    print(chosen.inline_message_id)

Logs

No response

@amirfabo
Copy link

amirfabo commented Nov 9, 2023

Same here. please solve this problem @delivrance !

SpEcHiDe added a commit to TelegramPlayGround/pyrogram that referenced this issue Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants