chat actions and file uploading; v0.3.7
This commit is contained in:
19
types.go
19
types.go
@@ -54,9 +54,9 @@ type Message struct {
|
||||
Chat *Chat `json:"chat,omitempty"`
|
||||
Text string `json:"text"`
|
||||
|
||||
Photo []*PhotoSize `json:"photo,omitempty"`
|
||||
Caption string `json:"caption,omitempty"`
|
||||
ReplyToMessage *Message `json:"reply_to_message"`
|
||||
Photo Slice[*PhotoSize] `json:"photo,omitempty"`
|
||||
Caption string `json:"caption,omitempty"`
|
||||
ReplyToMessage *Message `json:"reply_to_message"`
|
||||
|
||||
ReplyMarkup *MessageReplyMarkup `json:"reply_markup,omitempty"`
|
||||
}
|
||||
@@ -179,3 +179,16 @@ type File struct {
|
||||
FileSize int `json:"file_size,omitempty"`
|
||||
FilePath string `json:"file_path,omitempty"`
|
||||
}
|
||||
|
||||
type ChatActions string
|
||||
|
||||
const (
|
||||
ChatActionTyping ChatActions = "typing"
|
||||
ChatActionUploadPhoto ChatActions = "upload_photo"
|
||||
ChatActionUploadVideo ChatActions = "upload_video"
|
||||
ChatActionUploadVoice ChatActions = "upload_voice"
|
||||
ChatActionUploadDocument ChatActions = "upload_document"
|
||||
ChatActionChooseSticker ChatActions = "choose_sticker"
|
||||
ChatActionFindLocation ChatActions = "find_location"
|
||||
ChatActionUploadVideoNone ChatActions = "upload_video_none"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user