telegram-bot-api icon indicating copy to clipboard operation
telegram-bot-api copied to clipboard

answer inline query

Open hamidreza01 opened this issue 1 year ago • 1 comments

hello I need help answering inline query, no functional, no constructor, nothing! Please show me a code sample of answering inline query if possible.

hamidreza01 avatar Aug 20 '22 16:08 hamidreza01

Check out wiki

https://github.com/go-telegram-bot-api/telegram-bot-api/wiki/Simple-Inline-Keyboard

temamagic avatar Sep 17 '22 22:09 temamagic

hello I need help answering inline query, no functional, no constructor, nothing! Please show me a code sample of answering inline query if possible.

CallbackConfig is the response type for CallbackQueries. Here's an example on how to use it:

responseMsg := tgbotapi.NewCallbackWithAlert(update.CallbackQuery.ID, "A callback response")
if _, err := bot.Request(responseMsg); err != nil {
				log.Panic(err)
}

AvicennaJr avatar Nov 03 '22 22:11 AvicennaJr