Skip to content

Commit

Permalink
Add Bot API 5.2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Stajor committed Apr 28, 2021
1 parent 2b76932 commit 5f8db31
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Types/InlineQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ class InlineQuery extends Type {
'location' => Location::class
];

public $id;
public $from;
public $location;
public $query;
public $offset;
public string $id;
public User $from;
public string $query;
public string $offset;
public ?Location $location = null;
public ?string $chat_type = null;
}
2 changes: 2 additions & 0 deletions src/Types/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class Message extends Type {
'poll' => Poll::class,
'message_auto_delete_timer_changed' => MessageAutoDeleteTimerChanged::class,
'proximity_alert_triggered' => ProximityAlertTriggered::class,
'voice_chat_scheduled' => VoiceChatScheduled::class,
'voice_chat_started' => VoiceChatStarted::class,
'voice_chat_ended' => VoiceChatEnded::class,
'voice_chat_participants_invited' => VoiceChatParticipantsInvited::class,
Expand Down Expand Up @@ -93,6 +94,7 @@ class Message extends Type {
public ?string $connected_website = null;
public ?PassportData $passport_data = null;
public ?ProximityAlertTriggered $proximity_alert_triggered = null;
public ?VoiceChatScheduled $voice_chat_scheduled = null;
public ?VoiceChatStarted $voice_chat_started = null;
public ?VoiceChatEnded $voice_chat_ended = null;
public ?VoiceChatParticipantsInvited $voice_chat_participants_invited = null;
Expand Down
7 changes: 7 additions & 0 deletions src/Types/VoiceChatScheduled.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php namespace Telegram\Bot\Types;

use Telegram\Bot\Type;

class VoiceChatScheduled extends Type {
public int $start_date;
}

0 comments on commit 5f8db31

Please sign in to comment.