update log
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Владимир Фёдоров 2023-09-17 23:12:58 +07:00
parent ea51cdda8f
commit 6bddd2794c
1 changed files with 1 additions and 1 deletions

View File

@ -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 {