Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions gen_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ func (c Chat) GetAdministrators(b *Bot, opts *GetChatAdministratorsOpts) ([]Chat
return b.GetChatAdministrators(c.Id, opts)
}

// GetGifts is a helper method for Bot.GetChatGifts.
func (c Chat) GetGifts(b *Bot, opts *GetChatGiftsOpts) (*OwnedGifts, error) {
return b.GetChatGifts(c.Id, opts)
}

// GetMember is a helper method for Bot.GetChatMember.
func (c Chat) GetMember(b *Bot, userId int64, opts *GetChatMemberOpts) (ChatMember, error) {
return b.GetChatMember(c.Id, userId, opts)
Expand Down Expand Up @@ -757,6 +762,11 @@ func (u User) GetChatBoosts(b *Bot, chatId int64, opts *GetUserChatBoostsOpts) (
return b.GetUserChatBoosts(chatId, u.Id, opts)
}

// GetGifts is a helper method for Bot.GetUserGifts.
func (u User) GetGifts(b *Bot, opts *GetUserGiftsOpts) (*OwnedGifts, error) {
return b.GetUserGifts(u.Id, opts)
}

// GetProfilePhotos is a helper method for Bot.GetUserProfilePhotos.
func (u User) GetProfilePhotos(b *Bot, opts *GetUserProfilePhotosOpts) (*UserProfilePhotos, error) {
return b.GetUserProfilePhotos(u.Id, opts)
Expand Down
Loading