Add AddStickerToSet method
This commit is contained in:
parent
94de6b6d54
commit
a4e36af33c
2 changed files with 43 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
||||||
use TgBotLib\Bot;
|
use TgBotLib\Bot;
|
||||||
use TgBotLib\Exceptions\TelegramException;
|
use TgBotLib\Exceptions\TelegramException;
|
||||||
use TgBotLib\Interfaces\ObjectTypeInterface;
|
use TgBotLib\Interfaces\ObjectTypeInterface;
|
||||||
|
use TgBotLib\Methods\AddStickerToSet;
|
||||||
use TgBotLib\Methods\AnswerCallbackQuery;
|
use TgBotLib\Methods\AnswerCallbackQuery;
|
||||||
use TgBotLib\Methods\ApproveChatJoinRequest;
|
use TgBotLib\Methods\ApproveChatJoinRequest;
|
||||||
use TgBotLib\Methods\BanChatMember;
|
use TgBotLib\Methods\BanChatMember;
|
||||||
|
@ -214,6 +215,7 @@
|
||||||
case GET_CUSTOM_EMOJI_STICKERS = 'getCustomEmojiStickers';
|
case GET_CUSTOM_EMOJI_STICKERS = 'getCustomEmojiStickers';
|
||||||
case UPLOAD_STICKER_FILE = 'uploadStickerFile';
|
case UPLOAD_STICKER_FILE = 'uploadStickerFile';
|
||||||
case CREATE_NEW_STICKER_SET = 'createNewStickerSet';
|
case CREATE_NEW_STICKER_SET = 'createNewStickerSet';
|
||||||
|
case ADD_STICKER_TO_SET = 'addStickerToSet';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Executes a command on the provided bot with the given parameters.
|
* Executes a command on the provided bot with the given parameters.
|
||||||
|
@ -330,6 +332,7 @@
|
||||||
self::GET_CUSTOM_EMOJI_STICKERS => GetCustomEmojiStickers::execute($bot, $parameters),
|
self::GET_CUSTOM_EMOJI_STICKERS => GetCustomEmojiStickers::execute($bot, $parameters),
|
||||||
self::UPLOAD_STICKER_FILE => UploadStickerFile::execute($bot, $parameters),
|
self::UPLOAD_STICKER_FILE => UploadStickerFile::execute($bot, $parameters),
|
||||||
self::CREATE_NEW_STICKER_SET => CreateNewStickerSet::execute($bot, $parameters),
|
self::CREATE_NEW_STICKER_SET => CreateNewStickerSet::execute($bot, $parameters),
|
||||||
|
self::ADD_STICKER_TO_SET => AddStickerToSet::execute($bot, $parameters),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
40
src/TgBotLib/Methods/AddStickerToSet.php
Normal file
40
src/TgBotLib/Methods/AddStickerToSet.php
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace TgBotLib\Methods;
|
||||||
|
|
||||||
|
use TgBotLib\Abstracts\Method;
|
||||||
|
use TgBotLib\Bot;
|
||||||
|
use TgBotLib\Enums\Methods;
|
||||||
|
use TgBotLib\Exceptions\NotImplementedException;
|
||||||
|
|
||||||
|
class AddStickerToSet extends Method
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritDoc
|
||||||
|
*/
|
||||||
|
public static function execute(Bot $bot, array $parameters = []): true
|
||||||
|
{
|
||||||
|
throw new NotImplementedException('Method not implemented yet, check back later');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritDoc
|
||||||
|
*/
|
||||||
|
public static function getRequiredParameters(): ?array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'user_id',
|
||||||
|
'name',
|
||||||
|
'sticker'
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritDoc
|
||||||
|
*/
|
||||||
|
public static function getOptionalParameters(): ?array
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue