Documentation
¶
Overview ¶
* @Author: NyanCatda * @Date: 2021-11-05 13:51:15 * @LastEditTime: 2022-03-07 19:04:56 * @LastEditors: NyanCatda * @Description: * @FilePath: \ShionBot\Controller\MessagePushAPI\SNSAPI\TelegramAPI\TelegramAPI.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendMessage ¶
func SendMessage(chat_id int, text string, disable_web_page_preview bool, disable_notification bool, reply_to_message_id int, allow_sending_without_reply bool) ([]byte, *http.Response, error)
*
- @description: 发送消息
- @param {int} chat_id 聊天ID
- @param {string} text 需要发送的信息
- @param {bool} disable_web_page_preview 是否需要禁用链接预览
- @param {bool} disable_notification 是否需要静默发送
- @param {int} reply_to_message_id 需要回复消息的ID
- @param {bool} allow_sending_without_reply 没有找到需要回复的消息时,是否发送
- @return {[]byte}
- @return {*http.Response}
- @return {error}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.