diff --git a/FAQ.html b/FAQ.html index fe8d0abc..fca7df73 100644 --- a/FAQ.html +++ b/FAQ.html @@ -205,7 +205,7 @@

4. How to add buttons under a message?

-

Pass an InlineKeyboardMarkup into the replyMarkup parameter when sending the message. You will likely need to create a List<List<InlineKeyboardButton>> for rows&columns
+

Pass an InlineKeyboardMarkup into the replyMarkup parameter when sending the message. You will likely need to create a List<List<InlineKeyboardButton>> for rows&columns
See also next question.

5. How to handle a click on such inline buttons?

For buttons with callback data, your update handler should handle update.CallbackQuery. @@ -215,7 +215,7 @@

7. How to fill the input textbox of the user with some text?

-

You can't. The closest you can do is setup a ReplyKeyboardMarkup for buttons with pre-made texts under the textbox

+

You can't. The closest you can do is setup a ReplyKeyboardMarkup for buttons with pre-made texts under the textbox

8. How to fetch previous messages?

You can't with Bot API but it's possible with WTelegramBot.
Normally, bots only get messages at the moment they are posted. You could archive them all in a database for later retrieval.

diff --git a/print.html b/print.html index 4ca7535c..7de9506d 100644 --- a/print.html +++ b/print.html @@ -2259,7 +2259,7 @@

4. How to add buttons under a message?

-

Pass an InlineKeyboardMarkup into the replyMarkup parameter when sending the message. You will likely need to create a List<List<InlineKeyboardButton>> for rows&columns
+

Pass an InlineKeyboardMarkup into the replyMarkup parameter when sending the message. You will likely need to create a List<List<InlineKeyboardButton>> for rows&columns
See also next question.

5. How to handle a click on such inline buttons?

For buttons with callback data, your update handler should handle update.CallbackQuery. @@ -2269,7 +2269,7 @@

7. How to fill the input textbox of the user with some text?

-

You can't. The closest you can do is setup a ReplyKeyboardMarkup for buttons with pre-made texts under the textbox

+

You can't. The closest you can do is setup a ReplyKeyboardMarkup for buttons with pre-made texts under the textbox

8. How to fetch previous messages?

You can't with Bot API but it's possible with WTelegramBot.
Normally, bots only get messages at the moment they are posted. You could archive them all in a database for later retrieval.