Added class \TgBotLib\Objects\Telegram\InlineQueryResult which is the base class for all inline query results, additionally added \TgBotLib\Abstracts\InlineQueryResultType to represent the type of inline query result object.

https://git.n64.cc/nosial/libs/tgbot/-/issues/3
This commit is contained in:
Netkas 2023-04-24 19:22:06 -04:00
parent 6fb6f74406
commit bcbb742b9f
3 changed files with 162 additions and 0 deletions

View file

@ -0,0 +1,81 @@
<?php
namespace TgBotLib\Abstracts;
abstract class InlineQueryResultType
{
/**
* @link https://core.telegram.org/bots/api#inlinequeryresultarticle
*/
const Article = 'article';
/**
* @link https://core.telegram.org/bots/api#inlinequeryresultphoto
*/
const Photo = 'photo';
/**
* @link https://core.telegram.org/bots/api#inlinequeryresultgif
*/
const Gif = 'gif';
/**
* @link https://core.telegram.org/bots/api#inlinequeryresultmpeg4gif
*/
const Mpeg4Gif = 'mpeg4_gif';
/**
* @link https://core.telegram.org/bots/api#inlinequeryresultvideompeg4
*/
const Video = 'video';
/**
* @link https://core.telegram.org/bots/api#inlinequeryresultaudio
*/
const Audio = 'audio';
/**
* @link https://core.telegram.org/bots/api#inlinequeryresultvoice
*/
const Voice = 'voice';
/**
* @link https://core.telegram.org/bots/api#inlinequeryresultdocument
*/
const Document = 'document';
/**
* @link https://core.telegram.org/bots/api#inlinequeryresultlocation
*/
const Location = 'location';
/**
* @link https://core.telegram.org/bots/api#inlinequeryresultvenue
*/
const Venue = 'venue';
/**
* @link https://core.telegram.org/bots/api#inlinequeryresultcontact
*/
const Contact = 'contact';
/**
* @link https://core.telegram.org/bots/api#inlinequeryresultgame
*/
const Game = 'game';
const All = [
self::Article,
self::Photo,
self::Gif,
self::Mpeg4Gif,
self::Video,
self::Audio,
self::Voice,
self::Document,
self::Location,
self::Venue,
self::Contact,
self::Game,
];
}