Fire OnPinned for channel post (closes #244)

pull/269/head
unknown 4 years ago
parent 0cfb922e9e
commit 4cab32f46e

@ -296,6 +296,13 @@ func (b *Bot) incomingUpdate(upd *Update) {
}
if upd.ChannelPost != nil {
m := upd.ChannelPost
if m.PinnedMessage != nil {
b.handle(OnPinned, m)
return
}
b.handle(OnChannelPost, upd.ChannelPost)
return
}

Loading…
Cancel
Save