all repos — telegram-bot-api @ d9d4cad62a7ba7d9346f36152fee5488035cd713

Golang bindings for the Telegram Bot API

Merge branch 'master' of github.com:OvyFlash/telegram-bot-api
OvyFlash olegshva4ko@gmail.com
Tue, 05 Mar 2024 20:02:49 +0200
commit

d9d4cad62a7ba7d9346f36152fee5488035cd713

parent

1e94209b0bafcfe776749da10c1a1907e25dac94

2 files changed, 13 insertions(+), 13 deletions(-)

jump to
M README.mdREADME.md

@@ -61,7 +61,7 @@ if update.Message != nil { // If we got a message

log.Printf("[%s] %s", update.Message.From.UserName, update.Message.Text) msg := tgbotapi.NewMessage(update.Message.Chat.ID, update.Message.Text) - msg.ReplyToMessageID = update.Message.MessageID + msg.ReplyParameters.MessageID = update.Message.MessageID bot.Send(msg) }
M types.gotypes.go

@@ -2433,32 +2433,32 @@ // CanSendAudios restricted only.

// True, if the user is allowed to send audios // // optional - CanSendAudios bool + CanSendAudios bool `json:"can_send_audios,omitempty"` // CanSendDocuments restricted only. // True, if the user is allowed to send documents // // optional - CanSendDocuments bool + CanSendDocuments bool `json:"can_send_documents,omitempty"` // CanSendPhotos is restricted only. // True, if the user is allowed to send photos // // optional - CanSendPhotos bool + CanSendPhotos bool `json:"can_send_photos,omitempty"` // CanSendVideos restricted only. // True, if the user is allowed to send videos // // optional - CanSendVideos bool + CanSendVideos bool `json:"can_send_videos,omitempty"` // CanSendVideoNotes restricted only. // True, if the user is allowed to send video notes // // optional - CanSendVideoNotes bool + CanSendVideoNotes bool `json:"can_send_video_notes,omitempty"` // CanSendVoiceNotes restricted only. // True, if the user is allowed to send voice notes // // optional - CanSendVoiceNotes bool + CanSendVoiceNotes bool `json:"can_send_voice_notes,omitempty"` // CanSendPolls restricted only. // True, if the user is allowed to send polls //

@@ -2565,27 +2565,27 @@ CanSendMessages bool `json:"can_send_messages,omitempty"`

// CanSendAudios is true, if the user is allowed to send audios // // optional - CanSendAudios bool + CanSendAudios bool `json:"can_send_audios,omitempty"` // CanSendDocuments is true, if the user is allowed to send documents // // optional - CanSendDocuments bool + CanSendDocuments bool `json:"can_send_documents,omitempty"` // CanSendPhotos is true, if the user is allowed to send photos // // optional - CanSendPhotos bool + CanSendPhotos bool `json:"can_send_photos,omitempty"` // CanSendVideos is true, if the user is allowed to send videos // // optional - CanSendVideos bool + CanSendVideos bool `json:"can_send_videos,omitempty"` // CanSendVideoNotes is true, if the user is allowed to send video notes // // optional - CanSendVideoNotes bool + CanSendVideoNotes bool `json:"can_send_video_notes,omitempty"` // CanSendVoiceNotes is true, if the user is allowed to send voice notes // // optional - CanSendVoiceNotes bool + CanSendVoiceNotes bool `json:"can_send_voice_notes,omitempty"` // CanSendPolls is true, if the user is allowed to send polls, implies // can_send_messages //