forked from fumiama/ReiBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhandler.go
39 lines (22 loc) · 1.27 KB
/
handler.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package rei
import (
"unsafe"
tgba "github.com/go-telegram-bot-api/telegram-bot-api/v5"
)
type GeneralHandleType func(int, *TelegramClient, unsafe.Pointer)
type Handler struct {
OnMessage func(updateid int, bot *TelegramClient, msg *tgba.Message)
OnEditedMessage func(updateid int, bot *TelegramClient, msg *tgba.Message)
OnChannelPost func(updateid int, bot *TelegramClient, msg *tgba.Message)
OnEditedChannelPost func(updateid int, bot *TelegramClient, msg *tgba.Message)
OnInlineQuery func(updateid int, bot *TelegramClient, q *tgba.InlineQuery)
OnChosenInlineResult func(updateid int, bot *TelegramClient, r *tgba.ChosenInlineResult)
OnCallbackQuery func(updateid int, bot *TelegramClient, q *tgba.CallbackQuery)
OnShippingQuery func(updateid int, bot *TelegramClient, q *tgba.ShippingQuery)
OnPreCheckoutQuery func(updateid int, bot *TelegramClient, q *tgba.PreCheckoutQuery)
OnPoll func(updateid int, bot *TelegramClient, p *tgba.Poll)
OnPollAnswer func(updateid int, bot *TelegramClient, pa *tgba.PollAnswer)
OnMyChatMember func(updateid int, bot *TelegramClient, m *tgba.ChatMemberUpdated)
OnChatMember func(updateid int, bot *TelegramClient, m *tgba.ChatMemberUpdated)
OnChatJoinRequest func(updateid int, bot *TelegramClient, r *tgba.ChatJoinRequest)
}