Skip to content

Commit

Permalink
TelegramTypes: added various types to Message type
Browse files Browse the repository at this point in the history
  • Loading branch information
DJTommek committed May 13, 2023
1 parent b7e31a3 commit 54548b5
Showing 1 changed file with 85 additions and 0 deletions.
85 changes: 85 additions & 0 deletions src/Telegram/Types/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,12 @@ class Message extends TelegramTypes
*/
public $edit_date = 0;

/**
* Optional. True, if the message can't be forwarded
* @var bool
*/
public $has_protected_content = false;

/**
* Optional. The unique identifier of a media message group this message belongs to
* @var string
Expand Down Expand Up @@ -211,6 +217,13 @@ class Message extends TelegramTypes
*/
public $caption_entities = [];

/**
* Optional. True, if the message media is covered by a spoiler animation
* the caption
* @var bool
*/
public $has_media_spoiler = false;

/**
* Optional. Message is a shared contact, information about the contact
* @var Contact
Expand Down Expand Up @@ -325,6 +338,12 @@ class Message extends TelegramTypes
*/
public $channel_chat_created = false;

/**
* Optional. Service message: auto-delete timer settings changed in the chat
* @see https://core.telegram.org/bots/api#messageautodeletetimerchanged @TODO
*/
public $message_auto_delete_timer_changed;

/**
* Optional. The group has been migrated to a supergroup with the specified identifier. This number may be greater
* than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it smaller
Expand Down Expand Up @@ -361,13 +380,37 @@ class Message extends TelegramTypes
*/
public $successful_payment;

/**
* Optional. Service message: a user was shared with the bot
* @see https://core.telegram.org/bots/api#usershared @TODO
*/
public $user_shared;

/**
* Optional. Service message: a chat was shared with the bot
* @see https://core.telegram.org/bots/api#chatshared @TODO
*/
public $chat_shared;

/**
* Optional. The domain name of the website on which the user has logged in
* @see https://core.telegram.org/widgets/login
* @var string
*/
public $connected_website = '';

/**
* Optional. Service message: the user allowed the bot added to the attachment menu to write messages
* @see https://core.telegram.org/bots/api#writeaccessallowed @TODO
*/
public $write_access_allowed;

/**
* Optional. Telegram Passport data
* @see https://core.telegram.org/bots/api#passportdata @TODO
*/
public $passport_data;

/**
* Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live
* Location
Expand Down Expand Up @@ -399,6 +442,48 @@ class Message extends TelegramTypes
*/
public $forum_topic_reopened;

/**
* Optional. Service message: the 'General' forum topic hidden
* @see https://core.telegram.org/bots/api#generalforumtopichidden @TODO
*/
public $general_forum_topic_hidden;

/**
* Optional. Service message: the 'General' forum topic unhidden
* @see https://core.telegram.org/bots/api#generalforumtopicunhidden @TODO
*/
public $general_forum_topic_unhidden;

/**
* Optional. Service message: video chat scheduled
* @see https://core.telegram.org/bots/api#videochatscheduled @TODO
*/
public $video_chat_scheduled;

/**
* Optional. Service message: video chat started
* @see https://core.telegram.org/bots/api#videochatstarted @TODO
*/
public $video_chat_started;

/**
* Optional. Service message: video chat ended
* @see https://core.telegram.org/bots/api#videochatended @TODO
*/
public $video_chat_ended;

/**
* Optional. Service message: new participants invited to a video chat
* @see https://core.telegram.org/bots/api#videochatparticipantsinvited @TODO
*/
public $video_chat_participants_invited;

/**
* Optional. Service message: data sent by a Web App
* @see https://core.telegram.org/bots/api#webappdata @TODO
*/
public $web_app_data;

/**
* @var Markup
*/
Expand Down

0 comments on commit 54548b5

Please sign in to comment.