A
A
aminodovborisov2020-12-10 21:51:53
Python
aminodovborisov, 2020-12-10 21:51:53

How to send a message to one Telegram bot from another?

Hello.
I am writing a simple Telegram bot that helps the user to schedule a workout.
First, using the inline buttons, the bot offers the user several types of training (yoga, cardio, etc.), then the duration of the training.
The result is a search string that I want to send to the Youtube inline bot. But inline bots, if I understand correctly, only work with the information that the user enters. Enter manually @Youtube тренировка йога 60 минут, the bot offers search results.
But how to make the same request not on behalf of a person, but on behalf of a bot and get search results?
Thank you!

PS. Bot is educational. Just to get comfortable with writing chatbots. Conduct a dialogue, offer options for answers, and so on.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Ninazu, 2020-12-10
@Ninazu

No way. Bots do not know how to initialize a dialogue, especially with another bot. You can push both bots into a group, they will be able to see each other's messages

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question