add log
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
6bddd2794c
commit
364ebc97e4
|
@ -33,6 +33,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
|
||||||
|
log.Printf("get grom tg: %+v", tgMsg)
|
||||||
chatID := int64(0)
|
chatID := int64(0)
|
||||||
if tgMsg.Message != nil && tgMsg.Message.Chat != nil {
|
if tgMsg.Message != nil && tgMsg.Message.Chat != nil {
|
||||||
chatID = tgMsg.Message.Chat.ID
|
chatID = tgMsg.Message.Chat.ID
|
||||||
|
|
Loading…
Reference in New Issue