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

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

View File

@ -33,6 +33,7 @@ func NewMessengerTelegram(token string) (messenger.IMessenger, error) {
func (m *messengerTelegram) GetMessage(ctx context.Context) (*messenger.Message, error) {
tgMsg := <-m.updates
log.Printf("get grom tg: %+v", tgMsg)
chatID := int64(0)
if tgMsg.Message != nil && tgMsg.Message.Chat != nil {
chatID = tgMsg.Message.Chat.ID