Skip to content

Commit

Permalink
Telepathy update after namespace changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TiiFuchs committed Oct 4, 2022
1 parent 66c63fb commit 3f8b821
Show file tree
Hide file tree
Showing 75 changed files with 119 additions and 121 deletions.
94 changes: 46 additions & 48 deletions src/Layers/Generated.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Telegram/Animation.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static function make(
?PhotoSize $thumb = null,
?string $file_name = null,
?string $mime_type = null,
?int $file_size = null
?int $file_size = null,
): static {
return new static([
'file_id' => $file_id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/Audio.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static function make(
?string $file_name = null,
?string $mime_type = null,
?int $file_size = null,
?PhotoSize $thumb = null
?PhotoSize $thumb = null,
): static {
return new static([
'file_id' => $file_id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/CallbackQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static function make(
?Message $message = null,
?string $inline_message_id = null,
?string $data = null,
?string $game_short_name = null
?string $game_short_name = null,
): static {
return new static([
'id' => $id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/Chat.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public static function make(
?string $sticker_set_name = null,
?bool $can_set_sticker_set = null,
?int $linked_chat_id = null,
?ChatLocation $location = null
?ChatLocation $location = null,
): static {
return new static([
'id' => $id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/ChatAdministratorRights.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public static function make(
bool $can_invite_users,
?bool $can_post_messages = null,
?bool $can_edit_messages = null,
?bool $can_pin_messages = null
?bool $can_pin_messages = null,
): static {
return new static([
'is_anonymous' => $is_anonymous,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/ChatInviteLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static function make(
?string $name = null,
?int $expire_date = null,
?int $member_limit = null,
?int $pending_join_request_count = null
?int $pending_join_request_count = null,
): static {
return new static([
'invite_link' => $invite_link,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/ChatJoinRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static function make(
User $from,
int $date,
?string $bio = null,
?ChatInviteLink $invite_link = null
?ChatInviteLink $invite_link = null,
): static {
return new static([
'chat' => $chat,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/ChatMemberAdministrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public static function make(
?bool $can_post_messages = null,
?bool $can_edit_messages = null,
?bool $can_pin_messages = null,
?string $custom_title = null
?string $custom_title = null,
): static {
return new static([
'user' => $user,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/ChatMemberRestricted.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static function make(
bool $can_send_polls,
bool $can_send_other_messages,
bool $can_add_web_page_previews,
int $until_date
int $until_date,
): static {
return new static([
'user' => $user,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/ChatMemberUpdated.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static function make(
int $date,
ChatMember $old_chat_member,
ChatMember $new_chat_member,
?ChatInviteLink $invite_link = null
?ChatInviteLink $invite_link = null,
): static {
return new static([
'chat' => $chat,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/ChatPermissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static function make(
?bool $can_add_web_page_previews = null,
?bool $can_change_info = null,
?bool $can_invite_users = null,
?bool $can_pin_messages = null
?bool $can_pin_messages = null,
): static {
return new static([
'can_send_messages' => $can_send_messages,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/ChatPhoto.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static function make(
string $small_file_id,
string $small_file_unique_id,
string $big_file_id,
string $big_file_unique_id
string $big_file_unique_id,
): static {
return new static([
'small_file_id' => $small_file_id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/ChosenInlineResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static function make(
User $from,
string $query,
?Location $location = null,
?string $inline_message_id = null
?string $inline_message_id = null,
): static {
return new static([
'result_id' => $result_id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static function make(
string $first_name,
?string $last_name = null,
?int $user_id = null,
?string $vcard = null
?string $vcard = null,
): static {
return new static([
'phone_number' => $phone_number,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static function make(
?PhotoSize $thumb = null,
?string $file_name = null,
?string $mime_type = null,
?int $file_size = null
?int $file_size = null,
): static {
return new static([
'file_id' => $file_id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/EncryptedPassportElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static function make(
?PassportFile $front_side = null,
?PassportFile $reverse_side = null,
?PassportFile $selfie = null,
?array $translation = null
?array $translation = null,
): static {
return new static([
'type' => $type,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static function make(
string $file_id,
string $file_unique_id,
?int $file_size = null,
?string $file_path = null
?string $file_path = null,
): static {
return new static([
'file_id' => $file_id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/Game.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static function make(
array $photo,
?string $text = null,
?array $text_entities = null,
?Animation $animation = null
?Animation $animation = null,
): static {
return new static([
'title' => $title,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InlineKeyboardButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static function make(
?string $switch_inline_query = null,
?string $switch_inline_query_current_chat = null,
?CallbackGame $callback_game = null,
?bool $pay = null
?bool $pay = null,
): static {
return new static([
'text' => $text,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InlineQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static function make(
string $query,
string $offset,
?string $chat_type = null,
?Location $location = null
?Location $location = null,
): static {
return new static([
'id' => $id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InlineQueryResultArticle.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static function make(
?string $description = null,
?string $thumb_url = null,
?int $thumb_width = null,
?int $thumb_height = null
?int $thumb_height = null,
): static {
return new static([
'id' => $id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InlineQueryResultAudio.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static function make(
?string $performer = null,
?int $audio_duration = null,
?InlineKeyboardMarkup $reply_markup = null,
?InputMessageContent $input_message_content = null
?InputMessageContent $input_message_content = null,
): static {
return new static([
'id' => $id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InlineQueryResultCachedAudio.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static function make(
?string $parse_mode = null,
?array $caption_entities = null,
?InlineKeyboardMarkup $reply_markup = null,
?InputMessageContent $input_message_content = null
?InputMessageContent $input_message_content = null,
): static {
return new static([
'id' => $id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InlineQueryResultCachedDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static function make(
?string $parse_mode = null,
?array $caption_entities = null,
?InlineKeyboardMarkup $reply_markup = null,
?InputMessageContent $input_message_content = null
?InputMessageContent $input_message_content = null,
): static {
return new static([
'id' => $id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InlineQueryResultCachedGif.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static function make(
?string $parse_mode = null,
?array $caption_entities = null,
?InlineKeyboardMarkup $reply_markup = null,
?InputMessageContent $input_message_content = null
?InputMessageContent $input_message_content = null,
): static {
return new static([
'id' => $id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InlineQueryResultCachedMpeg4Gif.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static function make(
?string $parse_mode = null,
?array $caption_entities = null,
?InlineKeyboardMarkup $reply_markup = null,
?InputMessageContent $input_message_content = null
?InputMessageContent $input_message_content = null,
): static {
return new static([
'id' => $id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InlineQueryResultCachedPhoto.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static function make(
?string $parse_mode = null,
?array $caption_entities = null,
?InlineKeyboardMarkup $reply_markup = null,
?InputMessageContent $input_message_content = null
?InputMessageContent $input_message_content = null,
): static {
return new static([
'id' => $id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InlineQueryResultCachedSticker.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static function make(
string $id,
string $sticker_file_id,
?InlineKeyboardMarkup $reply_markup = null,
?InputMessageContent $input_message_content = null
?InputMessageContent $input_message_content = null,
): static {
return new static([
'id' => $id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InlineQueryResultCachedVideo.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static function make(
?string $parse_mode = null,
?array $caption_entities = null,
?InlineKeyboardMarkup $reply_markup = null,
?InputMessageContent $input_message_content = null
?InputMessageContent $input_message_content = null,
): static {
return new static([
'id' => $id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InlineQueryResultCachedVoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static function make(
?string $parse_mode = null,
?array $caption_entities = null,
?InlineKeyboardMarkup $reply_markup = null,
?InputMessageContent $input_message_content = null
?InputMessageContent $input_message_content = null,
): static {
return new static([
'id' => $id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InlineQueryResultContact.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static function make(
?InputMessageContent $input_message_content = null,
?string $thumb_url = null,
?int $thumb_width = null,
?int $thumb_height = null
?int $thumb_height = null,
): static {
return new static([
'id' => $id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InlineQueryResultDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static function make(
?InputMessageContent $input_message_content = null,
?string $thumb_url = null,
?int $thumb_width = null,
?int $thumb_height = null
?int $thumb_height = null,
): static {
return new static([
'id' => $id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InlineQueryResultGif.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static function make(
?string $parse_mode = null,
?array $caption_entities = null,
?InlineKeyboardMarkup $reply_markup = null,
?InputMessageContent $input_message_content = null
?InputMessageContent $input_message_content = null,
): static {
return new static([
'id' => $id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InlineQueryResultLocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public static function make(
?InputMessageContent $input_message_content = null,
?string $thumb_url = null,
?int $thumb_width = null,
?int $thumb_height = null
?int $thumb_height = null,
): static {
return new static([
'id' => $id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InlineQueryResultMpeg4Gif.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static function make(
?string $parse_mode = null,
?array $caption_entities = null,
?InlineKeyboardMarkup $reply_markup = null,
?InputMessageContent $input_message_content = null
?InputMessageContent $input_message_content = null,
): static {
return new static([
'id' => $id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InlineQueryResultPhoto.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static function make(
?string $parse_mode = null,
?array $caption_entities = null,
?InlineKeyboardMarkup $reply_markup = null,
?InputMessageContent $input_message_content = null
?InputMessageContent $input_message_content = null,
): static {
return new static([
'id' => $id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InlineQueryResultVenue.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public static function make(
?InputMessageContent $input_message_content = null,
?string $thumb_url = null,
?int $thumb_width = null,
?int $thumb_height = null
?int $thumb_height = null,
): static {
return new static([
'id' => $id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InlineQueryResultVideo.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public static function make(
?int $video_duration = null,
?string $description = null,
?InlineKeyboardMarkup $reply_markup = null,
?InputMessageContent $input_message_content = null
?InputMessageContent $input_message_content = null,
): static {
return new static([
'id' => $id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InlineQueryResultVoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static function make(
?array $caption_entities = null,
?int $voice_duration = null,
?InlineKeyboardMarkup $reply_markup = null,
?InputMessageContent $input_message_content = null
?InputMessageContent $input_message_content = null,
): static {
return new static([
'id' => $id,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InputContactMessageContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static function make(
string $phone_number,
string $first_name,
?string $last_name = null,
?string $vcard = null
?string $vcard = null,
): static {
return new static([
'phone_number' => $phone_number,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InputInvoiceMessageContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public static function make(
?bool $need_shipping_address = null,
?bool $send_phone_number_to_provider = null,
?bool $send_email_to_provider = null,
?bool $is_flexible = null
?bool $is_flexible = null,
): static {
return new static([
'title' => $title,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InputLocationMessageContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static function make(
?float $horizontal_accuracy = null,
?int $live_period = null,
?int $heading = null,
?int $proximity_alert_radius = null
?int $proximity_alert_radius = null,
): static {
return new static([
'latitude' => $latitude,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InputMediaAnimation.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static function make(
?array $caption_entities = null,
?int $width = null,
?int $height = null,
?int $duration = null
?int $duration = null,
): static {
return new static([
'media' => $media,
Expand Down
2 changes: 1 addition & 1 deletion src/Telegram/InputMediaAudio.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static function make(
?array $caption_entities = null,
?int $duration = null,
?string $performer = null,
?string $title = null
?string $title = null,
): static {
return new static([
'media' => $media,
Expand Down
Loading

0 comments on commit 3f8b821

Please sign in to comment.