telebot: prettify docs

pull/341/head
Demian 4 years ago
parent fd55a4b8a7
commit 2f11c43bd9

@ -31,7 +31,7 @@ func NoRights() Rights { return Rights{} }
// un-promoting user.
//
// member.Rights = tb.NoRestrictions()
// bot.Restrict(chat, member)
// b.Restrict(chat, member)
//
func NoRestrictions() Rights {
return Rights{

@ -978,7 +978,7 @@ func (b *Bot) Notify(to Recipient, action ChatAction) error {
// Ship replies to the shipping query, if you sent an invoice
// requesting an address and the parameter is_flexible was specified.
//
// Usage:
// Example:
//
// b.Ship(query) // OK
// b.Ship(query, opts...) // OK with options
@ -1050,8 +1050,8 @@ func (b *Bot) Answer(query *Query, resp *QueryResponse) error {
//
// Example:
//
// bot.Respond(c)
// bot.Respond(c, response)
// b.Respond(c)
// b.Respond(c, response)
//
func (b *Bot) Respond(c *Callback, resp ...*CallbackResponse) error {
var r *CallbackResponse

Loading…
Cancel
Save