#287

Product support

Get help in the plugin support forum.

Categories

  • Developer Tools

This plugin allows you to integrate functions of Telegram bots to your website and send data to users, groups or channels.

Big thanks to

Applications:

  • Make important notifications about site events to your Telegram application (desktop and mobile devices)
  • Receive messages and command from users and answer them
  • Send messages to groups, chat rooms, channels (like news or some kind of information or statistic)
  • Show keyboard, built-in keyboard
  • All list in the official doc

Create bot

Follow this steps to create bot and receive token.

Configure plugin

  • (required) Set Telegram token
  • (required) Set bot name
  • (required) Set webhook checkbox, it enables receive message from Telegram.
  • (optional) Db encoding. Select your db encoding.
  • (optional) Set certificate path if you use self-signed ssl certificate.
  • (optional) Select admin users. (example)
  • (optional) Botan.io analitycs

Simple notifications

Use plugin to send notification over telegram. To do that:

  • Configure telegram bot account in the backend panel, go to Settings -> Telegram -> Bot settings
  • Add at the top of your controller or page code use \TheOne74\Telegram\Classes\TelegramApi;
  • Get your chat_id from Telegram -> Chats
  • Send message with
    TelegramApi::instance()->sendMessage(['chat_id'=>chat_id, 'text'=>'new order was submitted']);

Create bot behaviour

To be coninued

  • Found the plugin not useful on 21 Jan, 2017

    Error Необходимо заполнить "Certificate file path".

  • Found the plugin useful on 4 Jan, 2017

    Some bugs found:

    • please replace in migrations 'drop' with 'dropIfExists'
    • please set InnoDB for table telegram_message, cause installation is falling on creating Foreign key on MyISAM

  • Found the plugin not useful on 11 Dec, 2016

    Hi, when I try to install the plugin, I get this error :

    Update failed
    "SQLSTATE[42000]: Syntax error or access violation: 1101 BLOB, TEXT, GEOMETRY or JSON column 'query' can't have a default value (SQL: create table `theone74_telegram_inline_query` (`id` bigint unsigned not null auto_increment primary key, `user_id` bigint null, `location` varchar(255) null, `query` text not null default '', `offset` varchar(255) null, `created_at` timestamp null) default character set utf8 collate utf8_unicode_ci engine = InnoDB)" on line 662 of /mnt/Multimedias/Web/october_kitstarter/vendor/laravel/framework/src/Illuminate/Database/Connection.php

    Can you help ? Thanks.

1.0.4

Add some columns

Oct 16, 2016

1.0.3

Check webhook button

Oct 08, 2016

1.0.2

Fix error message in settings

Sep 21, 2016

1.0.1

Initialize plugin.

Sep 19, 2016

there is no need to upgrade