Skip to content

Commit

Permalink
Update code to reflect latest changes to the API documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
TiiFuchs committed Feb 4, 2023
1 parent aaa5d68 commit 1787163
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Telegram/KeyboardButtonRequestChat.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
class KeyboardButtonRequestChat extends Type
{
/** Signed 32-bit identifier of the request */
/** Signed 32-bit identifier of the request, which will be received back in the ChatShared object. Must be unique within the message */
public int $request_id;

/** Pass True to request a channel chat, pass False to request a group or a supergroup chat. */
Expand All @@ -38,7 +38,7 @@ class KeyboardButtonRequestChat extends Type
public ?bool $bot_is_member = null;

/**
* @param int $request_id Signed 32-bit identifier of the request
* @param int $request_id Signed 32-bit identifier of the request, which will be received back in the ChatShared object. Must be unique within the message
* @param bool $chat_is_channel Pass True to request a channel chat, pass False to request a group or a supergroup chat.
* @param bool $chat_is_forum Optional. Pass True to request a forum supergroup, pass False to request a non-forum chat. If not specified, no additional restrictions are applied.
* @param bool $chat_has_username Optional. Pass True to request a supergroup or a channel with a username, pass False to request a chat without a username. If not specified, no additional restrictions are applied.
Expand Down
4 changes: 2 additions & 2 deletions src/Telegram/KeyboardButtonRequestUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
class KeyboardButtonRequestUser extends Type
{
/** Signed 32-bit identifier of the request */
/** Signed 32-bit identifier of the request, which will be received back in the UserShared object. Must be unique within the message */
public int $request_id;

/** Optional. Pass True to request a bot, pass False to request a regular user. If not specified, no additional restrictions are applied. */
Expand All @@ -23,7 +23,7 @@ class KeyboardButtonRequestUser extends Type
public ?bool $user_is_premium = null;

/**
* @param int $request_id Signed 32-bit identifier of the request
* @param int $request_id Signed 32-bit identifier of the request, which will be received back in the UserShared object. Must be unique within the message
* @param bool $user_is_bot Optional. Pass True to request a bot, pass False to request a regular user. If not specified, no additional restrictions are applied.
* @param bool $user_is_premium Optional. Pass True to request a premium user, pass False to request a non-premium user. If not specified, no additional restrictions are applied.
*/
Expand Down

0 comments on commit 1787163

Please sign in to comment.