BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
www
/
app.imagivibe.com
/
vendor
/
irazasyed
/
telegram-bot-sdk
/
src
/
Objects
📤 Upload
📝 New File
📁 New Folder
Close
Editing: InlineQuery.php
<?php namespace Telegram\Bot\Objects; /** * Class InlineQuery. * * * @property int $id Unique identifier for this query. * @property User $from Sender. * @property Location|null $location (Optional). Sender location, only for bots that request user location. * @property string $query Text of the query. * @property string $offset Offset of the results to be returned. * @property string|null $chatType (Optional). Type of the chat, from which the inline query was sent. Can be either “sender” for a private chat with the inline query sender, “private”, “group”, “supergroup”, or “channel”. The chat type should be always known for requests sent from official clients and most third-party clients, unless the request was sent from a secret chat * * @link https://core.telegram.org/bots/api#inlinequery */ class InlineQuery extends BaseObject { /** * {@inheritdoc} * * @return array{from: string, location: string} */ public function relations(): array { return [ 'from' => User::class, 'location' => Location::class, ]; } public function objectType(): ?string { return $this->findType(['location']); } }
Save
Cancel