Skip to content

Commit

Permalink
Merge pull request #112 from chimit/patch-1
Browse files Browse the repository at this point in the history
Added missing service messages
  • Loading branch information
filippotoso authored Oct 2, 2023
2 parents b681bf9 + 7347170 commit 80b66ad
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion src/TelegramDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,38 @@ class TelegramDriver extends HttpDriver
const API_URL = 'https://api.telegram.org/bot';
const FILE_API_URL = 'https://api.telegram.org/file/bot';
const LOGIN_EVENT = 'telegram_login';

/**
* https://core.telegram.org/bots/api#message
*/
const GENERIC_EVENTS = [
'new_chat_members',
'left_chat_member',
'new_chat_title',
'new_chat_photo',
'group_chat_created'
'delete_chat_photo',
'group_chat_created',
'supergroup_chat_created',
'channel_chat_created',
'message_auto_delete_timer_changed',
'migrate_to_chat_id',
'migrate_from_chat_id',
'successful_payment',
'user_shared',
'chat_shared',
'write_access_allowed',
'proximity_alert_triggered',
'forum_topic_created',
'forum_topic_edited',
'forum_topic_closed',
'forum_topic_reopened',
'general_forum_topic_hidden',
'general_forum_topic_unhidden',
'video_chat_scheduled',
'video_chat_started',
'video_chat_ended',
'video_chat_participants_invited',
'web_app_data',
];

protected $endpoint = 'sendMessage';
Expand Down

0 comments on commit 80b66ad

Please sign in to comment.