Похожие чаты

1. Create bot with @BotFather and get the token 2. Set

webhook for your bot, point to an url in your server

https://core.telegram.org/bots/api#setwebhook

3. For each request, get the data and process the message
$data = file_get_contents("php://input");
$data = json_decode($data);
var_dump($data);

4. Send the response as a telegram message
$url = "https://api.telegram.org/bot{$token}/sendMessage?chat_id=$chat_id&text=" .
urlencode($message) . "&parse_mode=$parse_mode" .
($replyMarkup !== FALSE ? "&reply_markup=$replyMarkup" : "") .
($replyTo !== FALSE ? '&reply_to_message_id=' . $replyTo : "");

See https://core.telegram.org/bots

1 ответов

4 просмотра

Nice👍

Похожие вопросы

Обсуждают сегодня

А чем вам питонисты не угодили?😂
.
79
всем доброго времени суток! имею вопрос: как понять ТОЧНО, что на нексус производится атака или он перегружен? исходные данные: - Nexus OSS 3.67.1-01 на OrientDB - Total co...
Michael Kostelcev
11
Всем привет, написал код ниже, но он выдает сегфолт, в чем причина? #include <stdio.h> #include <stdlib.h> #include <string.h> struct product { char *name; float price; };...
buzz базз
75
or any website to buy prepaid card with xmr that's not trocador that's down?
Umbrella Party Partner
18
Hi, I can't understand promises in JavaScript and what we should use them for (maybe the teacher didn't teach well XD). Do you have a solution for this? And are promises used...
A
29
Ещё такой вопрос. Мне необходимо хранить пароль пользователя локально. Для этого планирую использовать ini файл. Это для автозаполнения полей логин и пароль при авторизации. Е...
Евгений
19
Добрый день, LO Writer, проблема с нумерацией таблиц (вставка названия). У меня два стиля нумерованных списка, один для основного текста (вида 1.1.1) другой доя приложений (ви...
Виктор
6
My assets the Oceans at Binance, its displaying passive and no automatically convert, this situation will change?
Nationalizze
8
Xem delist ho rha hai agr naa bhechu toh kya hoga after 1 july?
ABHI
27
Ты просто гитлеровскую эстетику плохо понимаешь. Он же всё под Цезаря делал. А это как бы запрещённый приём в политике. Пиджаки они зачем все носят? Чтобы показать что они тип...
Ivan Kropotkin
4
Карта сайта