Documentation ¶
Overview ¶
* @Author: NyanCatda * @Date: 2022-04-02 09:32:33 * @LastEditTime: 2022-06-17 23:44:33 * @LastEditors: NyanCatda * @Description: 音频消息发送封装 * @FilePath: \Momizi\Internal\MessageSend\AudioMessage.go
* @Author: NyanCatda * @Date: 2022-04-02 09:43:28 * @LastEditTime: 2022-06-17 23:44:25 * @LastEditors: NyanCatda * @Description: 文件消息发送封装 * @FilePath: \Momizi\Internal\MessageSend\FileMessage.go
* @Author: NyanCatda * @Date: 2022-04-02 09:08:55 * @LastEditTime: 2022-04-02 09:38:06 * @LastEditors: NyanCatda * @Description: 图片消息发送封装 * @FilePath: \Momizi\Internal\MessageSend\ImageMessage.go
* @Author: NyanCatda * @Date: 2022-03-08 21:57:58 * @LastEditTime: 2022-03-25 20:28:28 * @LastEditors: NyanCatda * @Description: 消息发送模块 * @FilePath: \Momizi\Internal\MessageSend\MessageSend.go
* @Author: NyanCatda * @Date: 2022-03-25 20:19:59 * @LastEditTime: 2022-04-02 09:37:20 * @LastEditors: NyanCatda * @Description: 文本消息发送模块 * @FilePath: \Momizi\Internal\MessageSend\TextMessage.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageSend ¶
func New ¶
func New(ChatSoftware string, ChatType string, ChatID string, ReplyID string) *MessageSend
*
- @description: 创建一个消息发送类
- @param {string} ChatSoftware 聊天软件名称, QQ/Telegram/Line
- @param {string} ChatType 聊天类型, User/Group
- @param {string} ChatID 聊天ID
- @param {string} ReplyID 回复ID(可选)
- @return {MessageSend} 消息发送类
func (*MessageSend) Audio ¶
func (MessageSend *MessageSend) Audio(Path string) error
*
- @description: 发送音频消息
- @param {string} Path 音频文件路径
- @return {error} 错误信息
func (*MessageSend) File ¶
func (MessageSend *MessageSend) File(Path string) error
*
- @description: 发送文件消息
- @param {string} Path 文件路径
- @return {error} 错误信息
func (*MessageSend) Image ¶
func (MessageSend *MessageSend) Image(Path string) error
*
- @description: 发送图片消息
- @param {string} Path 图片路径
- @return {*}
func (*MessageSend) Text ¶
func (MessageSend *MessageSend) Text(Content string) error
*
- @description: 发送文本消息
- @param {string} Content 消息内容
- @return {*}
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
ChatSoftwareAPI
|
|
Line
* @Author: NyanCatda * @Date: 2022-04-03 16:39:38 * @LastEditTime: 2022-04-03 22:23:02 * @LastEditors: NyanCatda * @Description: 群组类请求封装 * @FilePath: \Momizi\Internal\MessageSend\ChatSoftwareAPI\Line\Group.go
|
* @Author: NyanCatda * @Date: 2022-04-03 16:39:38 * @LastEditTime: 2022-04-03 22:23:02 * @LastEditors: NyanCatda * @Description: 群组类请求封装 * @FilePath: \Momizi\Internal\MessageSend\ChatSoftwareAPI\Line\Group.go |
Mirai
* @Author: NyanCatda * @Date: 2022-04-03 16:49:40 * @LastEditTime: 2022-04-03 20:38:20 * @LastEditors: NyanCatda * @Description: 文件操作API * @FilePath: \Momizi\Internal\MessageSend\ChatSoftwareAPI\Mirai\File.go
|
* @Author: NyanCatda * @Date: 2022-04-03 16:49:40 * @LastEditTime: 2022-04-03 20:38:20 * @LastEditors: NyanCatda * @Description: 文件操作API * @FilePath: \Momizi\Internal\MessageSend\ChatSoftwareAPI\Mirai\File.go |
Telegram
* @Author: McPlus * @Date: 2022-03-14 17:16:14 * @LastEditTime: 2022-03-14 17:16:16 * @LastEdit: McPlus * @Description: Animation结构体 * @FilePath: \Momizi\Internal\MessageSend\ChatSoftwareAPI\Telegram\Animation.go
|
* @Author: McPlus * @Date: 2022-03-14 17:16:14 * @LastEditTime: 2022-03-14 17:16:16 * @LastEdit: McPlus * @Description: Animation结构体 * @FilePath: \Momizi\Internal\MessageSend\ChatSoftwareAPI\Telegram\Animation.go |
Telegram/Methods
* @Author: McPlus * @Date: 2022-03-14 18:26:05 * @LastEditTime: 2022-03-19 18:08:58 * @LastEdit: McPlus * @Description: Chat方法 * @FilePath: \Momizi\Internal\MessageSend\ChatSoftwareAPI\Telegram\Methods\Chat.go
|
* @Author: McPlus * @Date: 2022-03-14 18:26:05 * @LastEditTime: 2022-03-19 18:08:58 * @LastEdit: McPlus * @Description: Chat方法 * @FilePath: \Momizi\Internal\MessageSend\ChatSoftwareAPI\Telegram\Methods\Chat.go |