* Renamed namespace from \TgBotLib\Abstracts
to \TgBotLib\Enums
* Updated class type to `final class` in `\TgBotLib\Enums > BotCommandScopeType` * Updated class type to `final class` in `\TgBotLib\Enums > ChatActionType` * Updated class type to `final class` in `\TgBotLib\Enums > ChatMemberStatus` * Updated class type to `final class` in `\TgBotLib\Enums > ChatType` * Updated class type to `final class` in `\TgBotLib\Enums > EventType` * Updated class type to `final class` in `\TgBotLib\Enums > InlineQueryResultType` * Updated class type to `final class` in `\TgBotLib\Enums > InputMediaType` * Updated class type to `final class` in `\TgBotLib\Enums > InputButtonType` * Updated class type to `final class` in `\TgBotLib\Enums > MessageEntityType` * Updated class type to `final class` in `\TgBotLib\Enums > PassportElementType` * Updated class type to `final class` in `\TgBotLib\Enums > PollType` * Updated class type to `final class` in `\TgBotLib\Enums > StickerFormat` * Updated class type to `final class` in `\TgBotLib\Enums > StickerType` * Updated class type to `final class` in `\TgBotLib\Enums > ThumbnailMimeType` * Updated class type to `final class` in `\TgBotLib\Enums > UpdateEventType`
This commit is contained in:
parent
176ea791bf
commit
5ec6f7271a
56 changed files with 1279 additions and 332 deletions
|
@ -1,14 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace TgBotLib\Abstracts;
|
||||
|
||||
abstract class BotCommandScopeType
|
||||
{
|
||||
const Default = 'default';
|
||||
const AllPrivateChats = 'all_private_chats';
|
||||
const AllGroupChats = 'all_group_chats';
|
||||
const AllChatAdministrators = 'all_chat_administrators';
|
||||
const Chat = 'chat';
|
||||
const ChatAdministrators = 'chat_administrators';
|
||||
const ChatMember = 'chat_member';
|
||||
}
|
|
@ -1,17 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace TgBotLib\Abstracts;
|
||||
|
||||
abstract class ChatActionType
|
||||
{
|
||||
const Typing = 'typing';
|
||||
const UploadPhoto = 'upload_photo';
|
||||
const RecordVideo = 'record_video';
|
||||
const UploadVideo = 'upload_video';
|
||||
const RecordAudio = 'record_audio';
|
||||
const UploadAudio = 'upload_audio';
|
||||
const UploadDocument = 'upload_document';
|
||||
const FindLocation = 'find_location';
|
||||
const RecordVideoNote = 'record_video_note';
|
||||
const UploadVideoNote = 'upload_video_note';
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace TgBotLib\Abstracts;
|
||||
|
||||
abstract class ChatMemberStatus
|
||||
{
|
||||
const Creator = 'creator';
|
||||
const Administrator = 'administrator';
|
||||
const Member = 'member';
|
||||
const Restricted = 'restricted';
|
||||
const Left = 'left';
|
||||
const Kicked = 'kicked';
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace TgBotLib\Abstracts;
|
||||
|
||||
abstract class ChatType
|
||||
{
|
||||
const Private = 'private';
|
||||
const Group = 'group';
|
||||
const Supergroup = 'supergroup';
|
||||
const Channel = 'channel';
|
||||
}
|
|
@ -1,43 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace TgBotLib\Abstracts;
|
||||
|
||||
abstract class EventType
|
||||
{
|
||||
const GenericUpdate = 'generic_update';
|
||||
const Message = 'message';
|
||||
const EditedMessage = 'edited_message';
|
||||
const GenericCommandMessage = 'generic_command_message';
|
||||
const ChatMemberJoined = 'chat_member_joined';
|
||||
const ChatMemberLeft = 'chat_member_left';
|
||||
const ChatMemberKicked = 'chat_member_kicked';
|
||||
const ChatMemberBanned = 'chat_member_banned';
|
||||
const ChatMemberUnbanned = 'chat_member_unbanned';
|
||||
const ChatMemberPromoted = 'chat_member_promoted';
|
||||
const ChatMemberDemoted = 'chat_member_demoted';
|
||||
const ChatMemberRestricted = 'chat_member_restricted';
|
||||
const ChatMemberUnrestricted = 'chat_member_unrestricted';
|
||||
const ChatTitleChanged = 'chat_title_changed';
|
||||
const ChatPhotoChanged = 'chat_photo_changed';
|
||||
Const CallbackQuery = 'callback_query';
|
||||
|
||||
const All = [
|
||||
self::GenericUpdate,
|
||||
self::Message,
|
||||
self::EditedMessage,
|
||||
self::GenericCommandMessage,
|
||||
self::ChatMemberJoined,
|
||||
self::ChatMemberLeft,
|
||||
self::ChatMemberKicked,
|
||||
self::ChatMemberBanned,
|
||||
self::ChatMemberUnbanned,
|
||||
self::ChatMemberPromoted,
|
||||
self::ChatMemberDemoted,
|
||||
self::ChatMemberRestricted,
|
||||
self::ChatMemberUnrestricted,
|
||||
self::ChatTitleChanged,
|
||||
self::ChatPhotoChanged,
|
||||
self::CallbackQuery,
|
||||
];
|
||||
|
||||
}
|
|
@ -1,81 +0,0 @@
|
|||
<?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,
|
||||
];
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace TgBotLib\Abstracts;
|
||||
|
||||
abstract class InputMediaType
|
||||
{
|
||||
const Photo = 'photo';
|
||||
const Video = 'video';
|
||||
const Animation = 'animation';
|
||||
const Audio = 'audio';
|
||||
const Document = 'document';
|
||||
}
|
|
@ -1,11 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace TgBotLib\Abstracts;
|
||||
|
||||
abstract class MenuButtonType
|
||||
{
|
||||
const Commands = 'commands';
|
||||
const WebApp = 'web_app';
|
||||
const Default = 'default';
|
||||
|
||||
}
|
|
@ -1,41 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace TgBotLib\Abstracts;
|
||||
|
||||
abstract class MessageEntityType
|
||||
{
|
||||
const Mention = 'mention';
|
||||
|
||||
const Hashtag = 'hashtag';
|
||||
|
||||
const CashTag = 'cashtag';
|
||||
|
||||
const BotCommand = 'bot_command';
|
||||
|
||||
const Url = 'url';
|
||||
|
||||
const Email = 'email';
|
||||
|
||||
const PhoneNumber = 'phone_number';
|
||||
|
||||
const Bold = 'bold';
|
||||
|
||||
const Italic = 'italic';
|
||||
|
||||
const Underline = 'underline';
|
||||
|
||||
const Strikethrough = 'strikethrough';
|
||||
|
||||
const Spoiler = 'spoiler';
|
||||
|
||||
const Code = 'code';
|
||||
|
||||
const Pre = 'pre';
|
||||
|
||||
const TextLink = 'text_link';
|
||||
|
||||
const TextMention = 'text_mention';
|
||||
|
||||
const CustomEmoji = 'custom_emoji';
|
||||
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace TgBotLib\Abstracts;
|
||||
|
||||
abstract class PassportElementType
|
||||
{
|
||||
const PersonalDetails = 'personal_details';
|
||||
const Passport = 'passport';
|
||||
const DriverLicense = 'driver_license';
|
||||
const IdentityCard = 'identity_card';
|
||||
const InternalPassport = 'internal_passport';
|
||||
const Address = 'address';
|
||||
const UtilityBill = 'utility_bill';
|
||||
const BankStatement = 'bank_statement';
|
||||
const RentalAgreement = 'rental_agreement';
|
||||
const PassportRegistration = 'passport_registration';
|
||||
const TemporaryRegistration = 'temporary_registration';
|
||||
const PhoneNumber = 'phone_number';
|
||||
const Email = 'email';
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace TgBotLib\Abstracts;
|
||||
|
||||
abstract class PollType
|
||||
{
|
||||
const Regular = 'regular';
|
||||
|
||||
const Quiz = 'quiz';
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace TgBotLib\Abstracts;
|
||||
|
||||
abstract class StickerFormat
|
||||
{
|
||||
const Static = 'static';
|
||||
const Animated = 'animated';
|
||||
const Video = 'video';
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace TgBotLib\Abstracts;
|
||||
|
||||
abstract class StickerType
|
||||
{
|
||||
const Regular = 'regular';
|
||||
|
||||
const Mask = 'mask';
|
||||
|
||||
const CustomEmoji = 'custom_emoji';
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace TgBotLib\Abstracts;
|
||||
|
||||
abstract class ThumbnailMimeType
|
||||
{
|
||||
const Jpeg = 'image/jpeg';
|
||||
const Gif = 'image/gif';
|
||||
const Mp4 = 'video/mp4';
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace TgBotLib\Abstracts;
|
||||
|
||||
abstract class UpdateEventType
|
||||
{
|
||||
const GenericUpdate = 'generic_update';
|
||||
|
||||
const Message = 'message';
|
||||
|
||||
const EditedMessage = 'edited_message';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue