Updates for Bot API 5.3.
This commit is contained in:
parent
fb1de2fb48
commit
66dc9e8246
6 changed files with 179 additions and 10 deletions
20
types.go
20
types.go
|
@ -1158,6 +1158,11 @@ type ReplyKeyboardMarkup struct {
|
|||
//
|
||||
// optional
|
||||
OneTimeKeyboard bool `json:"one_time_keyboard,omitempty"`
|
||||
// InputFieldPlaceholder is the placeholder to be shown in the input field when
|
||||
// the keyboard is active; 1-64 characters.
|
||||
//
|
||||
// optional
|
||||
InputFieldPlaceholder string `json:"input_field_placeholder,omitempty"`
|
||||
// Selective use this parameter if you want to show the keyboard to specific users only.
|
||||
// Targets:
|
||||
// 1) users that are @mentioned in the text of the Message object;
|
||||
|
@ -1375,6 +1380,11 @@ type ForceReply struct {
|
|||
// ForceReply shows reply interface to the user,
|
||||
// as if they manually selected the bot's message and tapped 'Reply'.
|
||||
ForceReply bool `json:"force_reply"`
|
||||
// InputFieldPlaceholder is the placeholder to be shown in the input field when
|
||||
// the reply is active; 1-64 characters.
|
||||
//
|
||||
// optional
|
||||
InputFieldPlaceholder string `json:"input_field_placeholder,omitempty"`
|
||||
// Selective use this parameter if you want to force reply from specific users only.
|
||||
// Targets:
|
||||
// 1) users that are @mentioned in the text of the Message object;
|
||||
|
@ -1643,6 +1653,16 @@ type BotCommand struct {
|
|||
Description string `json:"description"`
|
||||
}
|
||||
|
||||
// BotCommandScope represents the scope to which bot commands are applied.
|
||||
//
|
||||
// It contains the fields for all types of scopes, different types only support
|
||||
// specific (or no) fields.
|
||||
type BotCommandScope struct {
|
||||
Type string `json:"type"`
|
||||
ChatID int64 `json:"chat_id,omitempty"`
|
||||
UserID int64 `json:"user_id,omitempty"`
|
||||
}
|
||||
|
||||
// ResponseParameters are various errors that can be returned in APIResponse.
|
||||
type ResponseParameters struct {
|
||||
// The group has been migrated to a supergroup with the specified identifier.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue