V
V
vasilev_v2019-01-12 12:30:11
API
vasilev_v, 2019-01-12 12:30:11

Is it possible to make buttons inside a message?

Good afternoon. The question concerns the development of the Telegram Bot.
The bot should send the user a message like this:
Documents of the first type were found at your request:
Document No. 1 dated 01/01/2019, [view]
...
Document No. X from DD.MM.YYYY, [view]
Documents of the second type were found at your request:
Document #3 dated 01/01/2019, [view]
...
Document #X from DD.MM.YYYY, [view]

Where [view] are some button links, the user clicks on any of them, and the bot generates and sends a new message to the user with the body of the document (i.e. does not open it in the browser, but sends it as a new message to Telegram)
I can not understand how to create (and whether it is possible to do this at all) such links-buttons.
What I tried, but did not work:
1. inlineKeyboard - not suitable because they are strictly at the bottom of the message, and not integrated into the text
2. [view](tg://...) - as I understand it, the possibilities of tg are limited for my does not fit the task
3. [view]( 127.0.0.1:3000/?params... ) - the browser opens with this link, but I don't need it
Please help. If there are any examples in php / python / js / c# - I will accept with gratitude.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dedalqq, 2019-01-14
@dedalqq

In my opinion, there are no other options. Buttons can be made either under the message or under the message typing line (and even then this is just a ready-made answer, not a button with a command)
The only thing I can suggest is something like: the
first message: "Found documents of the first type according to your request:" and to this message we immediately attach a pack of buttons through the inlineKeyboard of the type "Document No. 1 dated 01/01/2019, [view]" (that is, do everything with a button), etc. ... and then a new
message no one bothers to send a bunch of messages at once.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question