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

events.Raw(UpdateBotInlineSend) works after 1 #4393

Open
3 tasks done
johnwallet opened this issue Jun 18, 2024 · 2 comments
Open
3 tasks done

events.Raw(UpdateBotInlineSend) works after 1 #4393

johnwallet opened this issue Jun 18, 2024 · 2 comments

Comments

@johnwallet
Copy link

johnwallet commented Jun 18, 2024

Code that causes the issue

@bot.on(events.Raw(UpdateBotInlineSend))
async def inlinequery_callback(event):
    await bot(EditInlineBotMessageRequest(
        id=event.msg_id,
        message='text',
        no_webpage=True,
        media=None,
        reply_markup=None,
        entities=None
    ))

Expected behavior

It should work every time.

Actual behavior

It works after 1 time. 1 - works, 2 - does not work, 3 - works, and so on..
It turns out to receive an event every time the session closes.

Traceback

No response

Telethon version

1.36.0

Python version

3.12.2

Operating system (including distribution name and version)

Windows 10

Other details

No response

Checklist

  • The error is in the library's code, and not in my own.
  • I have searched for this issue before posting it and there isn't an open duplicate.
  • I ran pip install -U https://github.com/LonamiWebs/Telethon/archive/v1.zip and triggered the bug in the latest version.
@johnwallet
Copy link
Author

Will there be any comments here?

@Lonami
Copy link
Member

Lonami commented Jul 4, 2024

I have not had the time or urgency to look into this. If it's important to you, feel welcome to investigate and send a PR.

Though I'm fairly sure this update is special and configured in BotFather. It does not have pts or qts like the rest. Meaning, if Telegram doesn't send it, Telethon can't recover or fetch it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants