wcz-txp / wcz_telegram

A very simple telegram plugin for Textpattern

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wcz_telegram

A really simple and raw plugin for automatic posting new articles to Telegram. All the parameters are yet inside the code. In article window you can choose to send this article to Telegram. Actually it is posted a bold title with the excerpt, followed by the keywords and the link. The link can be modified to use your own template for rendering this article inside Telegram.

  • wcz_telegram_token: the token of your Telegram bot. Talk to the BotFather.
  • wcz_telegram_chatid: the chatid of your Telegram channel. You'll find some hints here.
  • wcz_telegram_iv and wcz_telegram_rhash: If you have already a Telegram Instant View template, but this is not really public, you should consider to use this option. Set it to '1' and copy the rhash, so Telegram users will see your article on their mobiles inside Telegram rendered with your template.
  • wcz_telegram_utm: add parameters to your link, so your web analytics software - eg. Google Analytic, Matomo/Piwik - has some stuff to identify Telegram as the source of your traffic.
  • wcz_telegram_debug: If something doesn't work, switch it to '1' and you'll get the complete request inside of textpattern/tmp/telegram_request.txt

About

A very simple telegram plugin for Textpattern

License:GNU General Public License v2.0


Languages

Language:PHP 100.0%