mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 15:10:28 +00:00
Fix telegram crash #620
This commit is contained in:
parent
b51d0a9b05
commit
7923cfe8f8
@ -119,10 +119,10 @@ func (b *Btelegram) handleRecv(updates <-chan tgbotapi.Update) {
|
|||||||
rmsg := config.Message{Account: b.Account, Extra: make(map[string][]interface{})}
|
rmsg := config.Message{Account: b.Account, Extra: make(map[string][]interface{})}
|
||||||
|
|
||||||
// handle channels
|
// handle channels
|
||||||
b.handleChannels(&rmsg, message, update)
|
message = b.handleChannels(&rmsg, message, update)
|
||||||
|
|
||||||
// handle groups
|
// handle groups
|
||||||
b.handleGroups(&rmsg, message, update)
|
message = b.handleGroups(&rmsg, message, update)
|
||||||
|
|
||||||
// set the ID's from the channel or group message
|
// set the ID's from the channel or group message
|
||||||
rmsg.ID = strconv.Itoa(message.MessageID)
|
rmsg.ID = strconv.Itoa(message.MessageID)
|
||||||
|
Loading…
Reference in New Issue
Block a user