Read documentation of the library you are using.
am not .. i using generic javascript working with the api
the webhook comes as a post . . . for message i work on it using data.message.text for example
you can get callbackquery with data.callback_query https://core.telegram.org/bots/api#callbackquery
yeah i tried that but not seem to be working .. i have a mixed of callback and message coming in .. do u know how i can determine which is which and action accordingly? my JS is not so good. . . ty
I don’t think message and callbackquery can come at the same time. Read this https://core.telegram.org/bots/api#update You need to check which type of update your bot has. if data.message: means your bot has message if data.callback_query. your bot has callbackquery
Yes. It is data.callback_query read this for possible updates https://core.telegram.org/bots/api#update
messenge is being indentified. . .but callback still no . . it seems like the api is not webhooking me for callback
Are you sure you sent callback_query to your bot ?
i found the issue! thank u so much
Обсуждают сегодня