T
T
Trefame2020-06-26 22:14:32
PHP
Trefame, 2020-06-26 22:14:32

How to send a message to another bot and get a response?

Hello! The following task arose: the user sends a check for the BTC_CHANGE_BOT bot, it is necessary to send the received check to the BTC_CHANGE_BOT bot and receive an answer (parse what the bot sent in response and get the amount), then I will write the amount to the database. With what help it can be implemented? I have a bot in which people pay for numbers to receive SMS, and there was a problem with the fact that many people want to pay in this way. I read about MadelineProto, I imagined it like this: my bot sends a check for BTC_CHANGE_BOT to my account, the Madeline client running on the same server listens to my Api_key and api_hash chat with my bot and sends the received checks to the BTC_CHANGE_BOT bot and, accordingly, to some way I add the data I need to the database.

Tell me, is there another way to implement my task? I really hope that I managed to convey everything correctly;)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2020-06-27
@dimonchik2013

using the telegram client library, NOT a bot

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question