test
This commit is contained in:
parent
95bf83c97c
commit
423eb903d5
23
bot.go
23
bot.go
@ -266,13 +266,24 @@ func botMsgLoad(m *tb.Message) {
|
|||||||
}
|
}
|
||||||
log.Printf("Message Load\n")
|
log.Printf("Message Load\n")
|
||||||
if m.ReplyTo != nil {
|
if m.ReplyTo != nil {
|
||||||
c := TGCommand{
|
r := m.ReplyTo
|
||||||
Type: commandReplyMsg,
|
if r.Document != nil {
|
||||||
Text: `Message found.`,
|
c := TGCommand{
|
||||||
FromMsgID64: int64(m.ID),
|
Type: commandReplyMsg,
|
||||||
FromChatID64: m.Chat.ID,
|
Text: `Document found.`,
|
||||||
|
FromMsgID64: int64(m.ID),
|
||||||
|
FromChatID64: m.Chat.ID,
|
||||||
|
}
|
||||||
|
TGCmdQueue <- c
|
||||||
|
} else {
|
||||||
|
c := TGCommand{
|
||||||
|
Type: commandReplyMsg,
|
||||||
|
Text: `Message is not a document.`,
|
||||||
|
FromMsgID64: int64(m.ID),
|
||||||
|
FromChatID64: m.Chat.ID,
|
||||||
|
}
|
||||||
|
TGCmdQueue <- c
|
||||||
}
|
}
|
||||||
TGCmdQueue <- c
|
|
||||||
} else {
|
} else {
|
||||||
c := TGCommand{
|
c := TGCommand{
|
||||||
Type: commandReplyMsg,
|
Type: commandReplyMsg,
|
||||||
|
Loading…
Reference in New Issue
Block a user