BOT API 7.2 implementation

This commit is contained in:
OvyFlash 2024-05-02 22:49:19 +03:00
parent f3a5b4ed79
commit 6a83e6e519
5 changed files with 309 additions and 10 deletions

View file

@ -1075,6 +1075,13 @@ func NewSetMyName(languageCode, name string) SetMyNameConfig {
}
}
// NewGetBusinessConnection gets business connection request struct
func NewGetBusinessConnection(id string) GetBusinessConnectionConfig {
return GetBusinessConnectionConfig{
BusinessConnectionID: BusinessConnectionID(id),
}
}
// NewGetMyCommandsWithScope allows you to set the registered commands for a
// given scope.
func NewGetMyCommandsWithScope(scope BotCommandScope) GetMyCommandsConfig {