Skip to content

Conversation

@weirdvic
Copy link

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_member update type.

These updates are important for bots that need to respond to user join/leave events, especially in group or supergroup contexts.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed usage of fmt.Frpintf without substitution parameters.

CanSetStickerSet bool
}

type ChatInviteLink struct {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New struct required for ChatMemberUpdated


// ChatMemberUpdated represents an update
// about chat member's status change in a chat.
type ChatMemberUpdated struct {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s.callbackHandler = generalCallbackHandler
}

// HandleChatMember set handler for chat member updates
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Separate handler setting function for new type of updates

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.

1 participant