update log
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
ea51cdda8f
commit
6bddd2794c
|
@ -34,7 +34,7 @@ func NewMessengerTelegram(token string) (messenger.IMessenger, error) {
|
||||||
func (m *messengerTelegram) GetMessage(ctx context.Context) (*messenger.Message, error) {
|
func (m *messengerTelegram) GetMessage(ctx context.Context) (*messenger.Message, error) {
|
||||||
tgMsg := <-m.updates
|
tgMsg := <-m.updates
|
||||||
chatID := int64(0)
|
chatID := int64(0)
|
||||||
if tgMsg.Message.Chat != nil {
|
if tgMsg.Message != nil && tgMsg.Message.Chat != nil {
|
||||||
chatID = tgMsg.Message.Chat.ID
|
chatID = tgMsg.Message.Chat.ID
|
||||||
}
|
}
|
||||||
if chatID == 0 {
|
if chatID == 0 {
|
||||||
|
|
Loading…
Reference in New Issue