-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
api: implement 6.7 features #654
Conversation
bot.go
Outdated
} | ||
|
||
// SetBotName change's the bot name. | ||
func (b *Bot) SetBotName(name, lc string) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
func (b *Bot) SetBotName(name, lc string) error { | |
func (b *Bot) SetMyName(name, lc string) error { |
bot.go
Outdated
} | ||
|
||
// BotName returns the current bot name for the given user language. | ||
func (b *Bot) BotName(lc string) (*BotInfo, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
func (b *Bot) BotName(lc string) (*BotInfo, error) { | |
func (b *Bot) MyName(lc string) (*BotInfo, error) { |
inline.go
Outdated
// (Optional) If passed, clients will display a button with specified | ||
// text that switches the user to a private chat with the bot and sends | ||
// the bot a start message with the parameter switch_pm_parameter. | ||
SwitchPMText string `json:"switch_pm_text,omitempty"` | ||
|
||
// (Optional) Parameter for the start message sent to the bot when user | ||
// presses the switch button. | ||
SwitchPMParameter string `json:"switch_pm_parameter,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Keep the fields.
inline.go
Outdated
|
||
// InlineQueryChosenChat represents an inline button that switches the current | ||
// user to inline mode in a chosen chat, with an optional default inline query. | ||
type InlineQueryChosenChat struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
Add the respective field to the
InlineButton
Line 267 in 59775c2
type InlineButton struct { -
Rename to
SwitchInlineQuery
markup.go
Outdated
Data string `json:"callback_data,omitempty"` | ||
InlineQuery string `json:"switch_inline_query,omitempty"` | ||
InlineQueryChat string `json:"switch_inline_query_current_chat"` | ||
InlineQueryChosenChat *InlineQueryChosenChat `json:"switch_inline_query_chosen_chat"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
InlineQueryChosenChat *InlineQueryChosenChat `json:"switch_inline_query_chosen_chat"` | |
InlineQueryChosenChat *InlineQueryChosenChat `json:"switch_inline_query_chosen_chat,omitempty"` |
No description provided.