BotAPI 7.8 implementation
stdkhai k.o.zhuk@student.khai.edu
Fri, 09 Aug 2024 13:46:20 +0300
2 files changed,
8 insertions(+),
2 deletions(-)
M
helper_structs.go
→
helper_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.go
→
types.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.