2016-07-27 08:24:11 +00:00
|
|
|
ZNC Push via Telegram
|
|
|
|
=====================
|
|
|
|
|
|
|
|
This section contains the specific steps to configure for [Telegram][] after you install the
|
|
|
|
module by following the above steps.
|
|
|
|
|
|
|
|
* First of all, you need to have a telegram account.
|
|
|
|
* Talk to [BotFather][] to create a new bot and get an api key.
|
|
|
|
* Create a chat with the bot and say something in the chat.
|
2016-08-19 20:17:10 +00:00
|
|
|
* Obtain your chat_id (a numeric id # used internally) one of two ways
|
|
|
|
* Use browser to connect to https://api.telegram.org/bot[apikey]/getUpdates (replace the apikey with
|
|
|
|
the key generated by BotFather). You should see messages sent from you, and there will be several
|
|
|
|
id fields in the reply. We'll use the one in the chat session.
|
|
|
|
* Chat with @get_id, and send it the command /my_id. It will respond with your chat_id
|
2016-07-27 08:24:11 +00:00
|
|
|
* set service to 'telegram': <code>/msg *push set service telegram</code>
|
|
|
|
* set secret to the **api key**: <code>/msg *push set secret your-api-key</code>
|
|
|
|
* set target to chat ID: <code>/msg *push set target your-chat-id</code>
|
|
|
|
|
2018-03-28 09:53:00 +00:00
|
|
|
You can style your messages with [basic HTML][HTML] when you set the
|
|
|
|
`message_escape` option accordingly.
|
|
|
|
|
|
|
|
set message_escape HTML
|
|
|
|
set message_content <i>{context}</i>: <<b>{nick}</b>> {message}
|
|
|
|
|
2016-07-27 08:24:11 +00:00
|
|
|
[Telegram]: https://telegram.org
|
|
|
|
[BotFather]: https://core.telegram.org/bots#6-botfather
|
2018-03-28 09:53:00 +00:00
|
|
|
[HTML]: https://core.telegram.org/bots/api#formatting-options
|