Bot API 10.0: Guest Mode#5239
Open
harshil21 wants to merge 2 commits into
Open
Conversation
Member
harshil21
commented
May 20, 2026
- Fix the changelog entry
harshil21
commented
May 20, 2026
| sent. | ||
|
|
||
| Returns: | ||
| :class:`telegram.SentGuestMessage`: On success, a sent |
Member
Author
There was a problem hiding this comment.
Suggested change
| :class:`telegram.SentGuestMessage`: On success, a sent | |
| :class:`telegram.SentGuestMessage`: On success, a |
|
|
||
| .. versionadded:: NEXT.VERSION | ||
| guest_bot_caller_chat (:class:`telegram.Chat`, optional): For a message sent by a guest | ||
| bot, this is the user whose original message triggered the bot's response. |
Member
Author
There was a problem hiding this comment.
Suggested change
| bot, this is the user whose original message triggered the bot's response. | |
| bot, this is the chat whose original message triggered the bot's response. |
Comment on lines
+721
to
+723
| message. If non-empty, the message belongs to a chat of the corresponding business | ||
| account that is independent from any potential bot chat which might share the same | ||
| identifier. |
Member
Author
There was a problem hiding this comment.
Suggested change
| message. If non-empty, the message belongs to a chat of the corresponding business | |
| account that is independent from any potential bot chat which might share the same | |
| identifier. | |
| message. If non-empty, the message belongs to the chat where the guest | |
| bot was summoned, which may not coincide with other existing bot chats | |
| sharing the same identifier. |
|
|
||
| .. versionadded:: NEXT.VERSION | ||
| guest_bot_caller_chat (:class:`telegram.Chat`): Optional. For a message sent by a guest | ||
| bot, this is the user whose original message triggered the bot's response. |
Member
Author
There was a problem hiding this comment.
Suggested change
| bot, this is the user whose original message triggered the bot's response. | |
| bot, this is the chat whose original message triggered the bot's response. |
Comment on lines
+1168
to
+1170
| message. If non-empty, the message belongs to a chat of the corresponding business | ||
| account that is independent from any potential bot chat which might share the same | ||
| identifier. |
Member
Author
There was a problem hiding this comment.
Suggested change
| message. If non-empty, the message belongs to a chat of the corresponding business | |
| account that is independent from any potential bot chat which might share the same | |
| identifier. | |
| message. If non-empty, the message belongs to the chat where the guest | |
| bot was summoned, which may not coincide with other existing bot chats | |
| sharing the same identifier. |
Member
Author
There was a problem hiding this comment.
a shortcut for answer_guest_query here would be ideal
Member
Author
There was a problem hiding this comment.
Do we want effective_user/chat to get the user/chat from Message.guest_bot_caller_user/chat?
Is Message.from_user the same as Message.guest_bot_caller_user for a guest message?
Member
Author
There was a problem hiding this comment.
I think the shortcut test methods need to be updated?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.