Documentation ¶
Index ¶
Constants ¶
View Source
const ( ModeMarkdown = "Markdown" ModeMarkdownV2 = "MarkdownV2" ModeHTML = "HTML" )
View Source
const Addr = "https://api.telegram.org"
Variables ¶
This section is empty.
Functions ¶
func SendMessageWithReq ¶
func SendMessageWithReq(c *httpx.Client, token string, req *MessageReq) error
Types ¶
type MessageReq ¶
type MessageReq struct { ChatId string `json:"chat_id"` Text string `json:"text"` ParseMode string `json:"parse_mode,omitempty"` DisableWebPagePreview bool `json:"disable_web_page_preview,omitempty"` DisableNotification bool `json:"disable_notification,omitempty"` ProtectContent bool `json:"protect_content,omitempty"` ReplyToMessageId int64 `json:"reply_to_message_id,omitempty"` AllowSendingWithoutReply bool `json:"allow_sending_without_reply,omitempty"` }
type MessageResp ¶
Click to show internal directories.
Click to hide internal directories.