Naltox / telegram-node-bot

Node module for creating Telegram bots.
MIT License
720 stars 144 forks source link

How to answer inline queries #204

Closed MegaITA closed 4 years ago

MegaITA commented 5 years ago

I'd like to know how to answer inline queries.

rotimi-best commented 5 years ago

First define it in your index.js https://github.com/Rotimi-Best/mytodos/blob/ace490de4cd5c5a834af921bc047687863642d15/index.js#L10

Then answer to them like this https://github.com/Rotimi-Best/mytodos/blob/ace490de4cd5c5a834af921bc047687863642d15/callbackQueries/index.js#L17

To see more about how to do it, I have a todo bot you can check it out, I answer inline queries.