Versions in this module Expand all Collapse all v1 v1.1.0 Mar 5, 2022 Changes in this version type Response + Raw string v1.0.0 Feb 3, 2022 Changes in this version + func EscapeMarkdown(msg string) string + type Author struct + FirstName string + ID int64 + IsBot bool + LastName string + Username string + type Chat struct + ID int64 + Title string + Type string + type Client struct + Offset int64 + PollTimeout int64 + Token string + func (c *Client) EditMessageText(chatId, messageId, text string, options ...url.Values) (ret *SendMessageResponse, err error) + func (c *Client) Get(url string) ([]byte, error) + func (c *Client) GetUpdates() (Response, error) + func (c *Client) Post(url string, data url.Values) ([]byte, error) + func (c *Client) SendMarkdownMessage(chatId, body string) (*SendMessageResponse, error) + func (c *Client) SendMessage(chatId, text string, options ...url.Values) (ret *SendMessageResponse, err error) + type File struct + FileID string + FileSize int64 + FileUniqueId string + Height int + Width int + type Message struct + Caption *string + Chat *Chat + Document *File + From Author + LeftChatParticipant *Author + MessageID int64 + NewChatParticipant *Author + NewChatTitle *string + Photo []File + ReplyToMessage *Message + Sticker *Sticker + Text string + type Poll struct + ID string + IsClosed bool + Options []PollOption + Question string + type PollOption struct + Text string + VoterCount int + type Response struct + Ok bool + Result []Update + type SendMessageResponse struct + Ok bool + Result Message + type Sticker struct + FileId string + FileSize int64 + FileUniqueId string + Height int + IsAnimated bool + SetName string + Width int + type Update struct + EditedMessage *Message + Message *Message + UpdateID int64