Documentation
¶
Index ¶
- func Handler(w http.ResponseWriter, r *http.Request)
- func PushMsgData(data []byte) error
- func SendMessage(botToken string, reciverId int64, m interface{}, parseMode tele.ParseMode) error
- type FeedRichMsgBotInfoModel
- type FeedRichMsgChatInfoModel
- type FeedRichMsgImageModel
- type FeedRichMsgModel
- type FeedRichMsgTextModel
- type FeedRichMsgVideoModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FeedRichMsgBotInfoModel ¶
type FeedRichMsgBotInfoModel struct {
BotToken string `json:"botToken" form:"botToken"`
}
type FeedRichMsgChatInfoModel ¶
type FeedRichMsgChatInfoModel struct {
ToChatID int64 `json:"toChatID" form:"toChatID"`
}
type FeedRichMsgImageModel ¶
type FeedRichMsgModel ¶
type FeedRichMsgModel struct {
Msgtype string `json:"msgtype" form:"msgtype"` //rich text image video
MsgID string `json:"msgID" form:"msgID"`
MsgTime string `json:"msgTime" form:"msgTime"`
Text FeedRichMsgTextModel `json:"text" form:"text"`
Image FeedRichMsgImageModel `json:"image" form:"image"`
Video FeedRichMsgVideoModel `json:"video" form:"video"`
Link string `json:"link" form:"link"`
BotInfo FeedRichMsgBotInfoModel `json:"botInfo" form:"botInfo"`
ChatInfo FeedRichMsgChatInfoModel `json:"chatInfo" form:"chatInfo"`
}
func (*FeedRichMsgModel) ToString ¶
func (msg *FeedRichMsgModel) ToString() (res string)
type FeedRichMsgTextModel ¶
type FeedRichMsgVideoModel ¶
Click to show internal directories.
Click to hide internal directories.