mirror of
https://github.com/tucnak/telebot
synced 2024-11-05 06:00:58 +00:00
Some changes for godoc
This commit is contained in:
parent
2558381794
commit
5d1a071046
10
bot.go
10
bot.go
@ -678,7 +678,9 @@ func (b *Bot) LeaveChat(recipient Recipient) (bool, error) {
|
||||
return responseRecieved.Result, nil
|
||||
}
|
||||
|
||||
// Use this method to get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group or channel, etc.).
|
||||
// Use this method to get up to date information
|
||||
// about the chat (current name of the user for one-on-one
|
||||
// conversations, current username of a user, group or channel, etc.).
|
||||
//
|
||||
// Returns a Chat object on success.
|
||||
func (b *Bot) GetChat(recipient Recipient) (Chat, error) {
|
||||
@ -709,9 +711,11 @@ func (b *Bot) GetChat(recipient Recipient) (Chat, error) {
|
||||
|
||||
// Use this method to get a list of administrators in a chat.
|
||||
//
|
||||
// On success, returns an Array of ChatMember objects that contains information about all chat administrators except other bots.
|
||||
// On success, returns an Array of ChatMember objects that
|
||||
// contains information about all chat administrators except other bots.
|
||||
//
|
||||
// If the chat is a group or a supergroup and no administrators were appointed, only the creator will be returned.
|
||||
// If the chat is a group or a supergroup and
|
||||
// no administrators were appointed, only the creator will be returned.
|
||||
func (b *Bot) GetChatAdministrators(recipient Recipient) ([]ChatMember, error) {
|
||||
params := map[string]string{
|
||||
"chat_id": recipient.Destination(),
|
||||
|
Loading…
Reference in New Issue
Block a user