2017 © Pedro Peláez
 

symfony-bundle telegram-bundle

Bundle to create Telegram bot on the Symfony platform.

image

kettari/telegram-bundle

Bundle to create Telegram bot on the Symfony platform.

  • Wednesday, March 28, 2018
  • by kettari
  • Repository
  • 2 Watchers
  • 0 Stars
  • 77 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 13 Open issues
  • 43 Versions
  • 1 % Grown

The README.md

Telegram Bundle

Known issues

No known issues., (*1)

Configuration

  • telegram.secret -- arbitrary key that is not known to the public. This key is used in the telegram.url parameter when setting webhook. The idea is the resulting URL is known only to you and Telegram server so you can trust updates you receive at your endpoint. Good idea is to make it quite long ([0-9a-z]{32} for example).
  • telegram.token -- Telegram bot API key you got from the BotFather.
  • telegram.certificate_file -- open part of the certificate to send to Telegram server when registering webhook. This might be a self-signed certificate, see Telegram documentation.
  • telegram.url -- a URL of this bot with a {secret} substring in it. For example: https://www.your-domain.com/api/v1/{secret}/webhook
  • telegram.self_user_id -- Telegram „user ID“ of the bot. It is required to distinguish the bot itself on chat join/left events.

Events

Handle update cycle

  • telegram.update.incoming -- method handleUpdate() is called. Event MUST return an Update object or throw an exception.
    • 0:FilterSubscriber -- scraps inbound data.
  • telegram.update.received -- when the Update object is ready.
    • 90000:AuditSubscriber -- writes the incoming log.
    • 80000:CurrentUserSubscriber -- finds current user using UserHq class.
    • 70000:HookerSubscriber -- finds and executes hooks.
  • [TBD] telegram.hook.before -- before hook is executed.
  • [TBD] telegram.hook.after -- after hook is executed.
  • telegram.message.received -- when Message is found within the incoming Update.
    • 90000:IdentityWatchdogSubscriber -- updates User and Chat tables for the current user; adds default roles and permissions when user send his/her first message to the bot.
    • 0:MessageSubscriber -- if text is not empty, dispatch further events.
    • –90000:MessageSubscriber -- checks if request was handled. If not, sends to the user a message.
  • telegram.text.received -- when text is not empty within Message object.
    • 90000:ChatMemberSubscriber -- updates ChatMember table.
    • 80000:TextSubscriber -- checks for command and dispatches further events.
  • telegram.command.received -- when a command is detected in the text.
    • 0:CommandSubscriber -- CommandBus service which executes command.
  • telegram.command.unknown -- command is unknown for CommandBus.
    • 0:CommandSubscriber -- tells the user that command is unknown.
  • telegram.command.unauthorized -- user has insufficient permissions.
    • 0:CommandSubscriber -- tells the user he or she is not authorized to execute the command.
  • telegram.command.executed -- after the command is executed.
  • telegram.user.registered -- when /register command executed and user finished registration.
  • telegram.chatmember.joined -- new chat member in the group.
    • 0:ChatMemberSubscriber -- handles new chat member.
  • telegram.chatmembers.joined -- one or more new chat members in the group.
  • telegram.chatmember.bot_joined -- the bot itself joined the group.
  • telegram.chatmember.left -- chat member left the group.
    • 0:ChatMemberSubscriber -- handles left chat member.
  • telegram.chatmember.bot_left -- the bot itself left the group.
  • telegram.group.created -- new group created.
    • 0:GroupsSubscriber -- handles new group creation.
  • telegram.chat.migrated_to -- migrated to chat ID.
    • 0:MigrationSubscriber -- handles group migration.
  • telegram.chat.migrated_from -- migrated from chat ID.
    • 0:MigrationSubscriber -- handles group migration.
  • [TBD] telegram.response -- when the bot prepared a response to the Webhook and is ready to send it.
  • telegram.request.sent -- request to the Telegram API was sent.
    • –90000:AuditSubscriber -- writes outbound log.
  • telegram.request.blocked -- when the bot is blocked by the user or kicked out of the group.
  • telegram.request.throttled -- flood control thrown an exception.
  • telegram.request.exception -- exception occurred while making request to the Telegram API.
  • telegram.terminate -- run any expensive operations when cycle is about to finish.

The Versions

28/03 2018

dev-develop-v2

dev-develop-v2

Bundle to create Telegram bot on the Symfony platform.

  Sources   Download

MIT

The Requires

 

28/03 2018

2.0-beta.3

2.0.0.0-beta3

Bundle to create Telegram bot on the Symfony platform.

  Sources   Download

MIT

The Requires

 

19/03 2018

2.0-beta.2

2.0.0.0-beta2

Bundle to create Telegram bot on the Symfony platform.

  Sources   Download

MIT

The Requires

 

14/03 2018

2.0-beta.1

2.0.0.0-beta1

Bundle to create Telegram bot on the Symfony platform.

  Sources   Download

MIT

The Requires

 

13/03 2018

2.0-alpha.4

2.0.0.0-alpha4

Bundle to create Telegram bot on the Symfony platform.

  Sources   Download

MIT

The Requires

 

13/03 2018

2.0-alpha.3

2.0.0.0-alpha3

Bundle to create Telegram bot on the Symfony platform.

  Sources   Download

MIT

The Requires

 

13/03 2018

2.0-alpha.2

2.0.0.0-alpha2

Bundle to create Telegram bot on the Symfony platform.

  Sources   Download

MIT

The Requires

 

13/03 2018

2.0-alpha.1

2.0.0.0-alpha1

Bundle to create Telegram bot on the Symfony platform.

  Sources   Download

MIT

The Requires

 

19/01 2018

dev-master

9999999-dev

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

19/01 2018
19/01 2018

dev-develop

dev-develop

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

12/01 2018
04/01 2018

1.3-alpha.2

1.3.0.0-alpha2

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

04/01 2018

1.3-alpha.1

1.3.0.0-alpha1

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

05/10 2017

1.2.3

1.2.3.0

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

28/09 2017

1.2.2

1.2.2.0

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

26/09 2017

1.2.1

1.2.1.0

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

18/07 2017

1.2

1.2.0.0

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

14/07 2017

1.1

1.1.0.0

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

12/07 2017

1.1-beta.2

1.1.0.0-beta2

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

11/07 2017

1.1-beta.1

1.1.0.0-beta1

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

13/06 2017

dev-feature/events_telegram-bundle-26

dev-feature/events_telegram-bundle-26

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

20/04 2017

1.0.0-rc1

1.0.0.0-RC1

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

19/04 2017

dev-telegram-bundle-22

dev-telegram-bundle-22

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

18/04 2017

1.0.0-beta11

1.0.0.0-beta11

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

17/04 2017

1.0.0-beta10

1.0.0.0-beta10

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

15/04 2017

1.0.0-beta9

1.0.0.0-beta9

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

15/04 2017

1.0.0-beta8

1.0.0.0-beta8

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

14/04 2017

1.0.0-beta7

1.0.0.0-beta7

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

14/04 2017

dev-telegram-bundle-12

dev-telegram-bundle-12

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

14/04 2017

1.0.0-beta6

1.0.0.0-beta6

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

14/04 2017

1.0.0-beta5

1.0.0.0-beta5

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

13/04 2017

1.0.0-beta4

1.0.0.0-beta4

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

30/03 2017

1.0.0-beta3

1.0.0.0-beta3

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

25/03 2017

1.0.0-beta2

1.0.0.0-beta2

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

25/03 2017

1.0.0-beta1

1.0.0.0-beta1

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

22/03 2017

1.0.0-alpha7

1.0.0.0-alpha7

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

18/03 2017

1.0.0-alpha6

1.0.0.0-alpha6

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

18/03 2017

1.0.0-alpha5

1.0.0.0-alpha5

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

17/03 2017

1.0.0-alpha4

1.0.0.0-alpha4

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

17/03 2017

1.0.0-alpha3

1.0.0.0-alpha3

Kaula TelegramBundle

  Sources   Download

MIT

The Requires

 

16/03 2017

1.0.0-alpha2

1.0.0.0-alpha2

Kaula TelegramBundle

  Sources   Download

MIT

The Requires