Skip to content

Conversation

@IlyaBizyaev
Copy link
Contributor

According to the Telegram Bot API docs, the cases of the forward origins are as follows:

  • MessageOriginChannel: The message was originally sent to a channel chat.
  • MessageOriginChat: The message was originally sent on behalf of a chat to a group chat.
  • MessageOriginUser: The message was originally sent by a known user.
  • MessageOriginHiddenUser: The message was originally sent by an unknown user.

Testing with the actual bot API, I do get users, not the chat, for messages forwarded from a supergroup.

MessageOriginHiddenUser is determined by the user's settings, which are not exposed to the bot API.

According to the Telegram Bot API docs, the cases of the forward origins are
as follows:

* MessageOriginChannel: The message was originally sent to a channel chat.
* MessageOriginChat: The message was originally sent on behalf of a chat to a group chat.
* MessageOriginUser: The message was originally sent by a known user.
* MessageOriginHiddenUser: The message was originally sent by an unknown user.

Testing with the actual bot API, I do get users, not the chat, for messages forwarded
from a supergroup.

MessageOriginHiddenUser is determined by the user's settings, which are
not exposed to the bot API.
@LasterAlex
Copy link
Owner

Also a fair point, thanks!

@LasterAlex LasterAlex merged commit af8489d into LasterAlex:latest-teloxide Feb 27, 2025
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants