Add support for handling 'chat_member' update type#82
Open
weirdvic wants to merge 2 commits intoyanzay:masterfrom
Open
Add support for handling 'chat_member' update type#82weirdvic wants to merge 2 commits intoyanzay:masterfrom
weirdvic wants to merge 2 commits intoyanzay:masterfrom
Conversation
weirdvic
commented
May 26, 2025
Author
There was a problem hiding this comment.
Fixed usage of fmt.Frpintf without substitution parameters.
weirdvic
commented
May 26, 2025
| CanSetStickerSet bool | ||
| } | ||
|
|
||
| type ChatInviteLink struct { |
Author
There was a problem hiding this comment.
New struct required for ChatMemberUpdated
weirdvic
commented
May 26, 2025
|
|
||
| // ChatMemberUpdated represents an update | ||
| // about chat member's status change in a chat. | ||
| type ChatMemberUpdated struct { |
Author
There was a problem hiding this comment.
New update, fields are from https://core.telegram.org/bots/api#chatmemberupdated
weirdvic
commented
May 26, 2025
| s.callbackHandler = generalCallbackHandler | ||
| } | ||
|
|
||
| // HandleChatMember set handler for chat member updates |
Author
There was a problem hiding this comment.
Separate handler setting function for new type of updates
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.
Hi, thank you for creating and maintaining
tbot— it's been really helpful in my Telegram bot development!This PR adds support for the
chat_memberupdate type.These updates are important for bots that need to respond to user join/leave events, especially in group or supergroup contexts.