Documentation ¶
Index ¶
- func EscapeMarkdown(msg string) string
- type Author
- type Chat
- type Client
- 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
- type Message
- type Poll
- type PollOption
- type Response
- type SendMessageResponse
- type Sticker
- type Update
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscapeMarkdown ¶
Types ¶
type Client ¶
func (*Client) EditMessageText ¶
func (*Client) GetUpdates ¶
func (*Client) SendMarkdownMessage ¶
func (c *Client) SendMarkdownMessage(chatId, body string) (*SendMessageResponse, error)
func (*Client) SendMessage ¶
type Message ¶
type Message struct { MessageID int64 `json:"message_id"` From Author `json:"from"` Text string `json:"text"` Caption *string `json:"caption"` Chat *Chat `json:"chat"` Sticker *Sticker `json:"sticker"` Photo []File `json:"photo"` Document *File `json:"document"` NewChatTitle *string `json:"new_chat_title"` LeftChatParticipant *Author `json:"left_chat_participant"` NewChatParticipant *Author `json:"new_chat_participant"` ReplyToMessage *Message `json:"reply_to_message"` }
type Poll ¶
type Poll struct { ID string `json:"id"` Question string `json:"question"` Options []PollOption `json:"options"` IsClosed bool `json:"is_closed"` }
type PollOption ¶
type SendMessageResponse ¶
Click to show internal directories.
Click to hide internal directories.