A
A
Alexander2017-05-16 10:02:33
PHP
Alexander, 2017-05-16 10:02:33

How to send notifications from the site to a Telegram user?

Didn't work with Telegram at all in terms of development. I use it only as a messenger.
How can I make sure that when a PHP script is executed, a message is sent to the Telegram user? Where to start, examples can ...
I don’t even know what tags to put down on this topic.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Victor L, 2017-05-16
@sanok_ps

1) first you need to create a bot For example
2) Get $token
3) Get $chat_id -(messages will come from the bot to you so you know your chat id
4) well, then you can use the example above

A
Alexander Shelemetiev, 2017-05-16
@zoroda

Recently dealt with telegram bots. I will be glad if it helps.

A
Arseny Sokolov, 2017-05-16
@ArsenBespalov

https://github.com/php-telegram-bot/core - everything is detailed there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question