all repos — telegram-bot-api @ 819ceaf793b123f21d7310964c3525660f21f225

Golang bindings for the Telegram Bot API

BotAPI 7.8 implementation
stdkhai k.o.zhuk@student.khai.edu
Fri, 09 Aug 2024 13:46:20 +0300
commit

819ceaf793b123f21d7310964c3525660f21f225

parent

861b023805bcfc625de29435542767bab48b91b2

2 files changed, 8 insertions(+), 2 deletions(-)

jump to
M helper_structs.gohelper_structs.go

@@ -107,7 +107,8 @@

// BaseChatMessage is a base type for all messages in chats. type BaseChatMessage struct { ChatConfig - MessageID int + MessageID int + BusinessConnectionID BusinessConnectionID } func (base BaseChatMessage) params() (Params, error) {

@@ -116,8 +117,9 @@ if err != nil {

return params, err } params.AddNonZero("message_id", base.MessageID) + err = params.AddInterface("business_connection_id", base.BusinessConnectionID) - return params, nil + return params, err } // BaseChatMessages is a base type for all messages in chats.
M types.gotypes.go

@@ -263,6 +263,10 @@ // Returned only in getMe.

// // optional CanConnectToBusiness bool `json:"can_connect_to_business,omitempty"` + // True, if the bot has a main Web App. Returned only in getMe. + // + // optional + HasMainWebApp bool `json:"has_main_web_app,omitempty"` } // String displays a simple text version of a user.