Answer the question
In order to leave comments, you need to log in
Telegram bot with a function, is there a ready-made solution?
There is a bot on the site that sends data, a site visitor who has chosen a "callback", namely: Name, number, @mail in the telegram-conf, where 5 managers are sitting, is it possible to implement something button to the message that the bot sends like a like, which one of the managers will press and thereby take this client to himself, so that the managers do not get confused.
You need this particular solution, because you are used to it and it is convenient, you don’t want to install plugins,
maybe there is already a ready-made solution?
Answer the question
In order to leave comments, you need to log in
It is necessary that along with a message with a name, number and email, InlineKeyboardMarkup is sent, in the buttons of which (InlineKeyboardButton) the callback_data is specified. Well, build the logic of the script. For example callback_data for InlineKeyboardButton specify "Accept chat".
$input_array = json_decode(file_get_contents('php://input'),TRUE);
if ($input_array['callback_query']['data'] == 'Принять чат') {
sendMessage($chat_id, 'Вася Пупкин принял чат');
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question