go-telegram / bot

Telegram Bot API Go framework
MIT License
674 stars 60 forks source link

Add ChatAction constants for Easier Access #33

Closed xtianpu closed 1 year ago

xtianpu commented 1 year ago

Hi! I think it's good idea to add ChatAction constants like models.ParseModeHTML.

https://core.telegram.org/bots/api#sendchataction

const (
    ChatActionTyping          = "typing"
    ChatActionUploadPhoto     = "upload_photo"
    ChatActionRecordVideo     = "record_video"
    ChatActionUploadVideo     = "upload_video"
    ChatActionRecordVoice     = "record_voice"
    ChatActionUploadVoice     = "upload_voice"
    ChatActionUploadDocument  = "upload_document"
    ChatActionChooseSticker   = "choose_sticker"
    ChatActionFindLocation    = "find_location"
    ChatActionRecordVideoNote = "record_video_note"
    ChatActionUploadVideoNote = "upload_video_note"
)
negasus commented 1 year ago

Released v0.7.10, thanks!