Commit graph

222 commits

Author SHA1 Message Date
f8c02bceb3 Added methods \TgBotLib\Objects\Telegram\InlineKeyboardMarkup::removeRow & \TgBotLib\Objects\Telegram\InlineKeyboardMarkup::addRow to \TgBotLib\Objects\Telegram\InlineKeyboardMarkup 2023-04-23 17:33:26 -04:00
6a4128090c Added methods \TgBotLib\Objects\Telegram\InlineKeyboardMarkup::removeRow & \TgBotLib\Objects\Telegram\InlineKeyboardMarkup::addRow to \TgBotLib\Objects\Telegram\InlineKeyboardMarkup 2023-04-23 16:53:35 -04:00
7970313d88 Added methods \TgBotLib\Objects\Telegram\InlineKeyboardButton::setUrl, \TgBotLib\Objects\Telegram\InlineKeyboardButton::setText, \TgBotLib\Objects\Telegram\InlineKeyboardButton::setCallbackData,\TgBotLib\Objects\Telegram\InlineKeyboardButton::setWebApp, \TgBotLib\Objects\Telegram\InlineKeyboardButton::setLoginUrl, \TgBotLib\Objects\Telegram\InlineKeyboardButton::setSwitchInlineQuery, \TgBotLib\Objects\Telegram\InlineKeyboardButton::setSwitchInlineQueryCurrentChat \TgBotLib\Objects\Telegram\InlineKeyboardButton::setCallbackGame, \TgBotLib\Objects\Telegram\InlineKeyboardButton::setPay to \TgBotLib\Objects\Telegram\InlineKeyboardButton 2023-04-23 16:52:40 -04:00
841d4ff11d Updated CHANGELOG.md 2023-04-23 16:22:31 -04:00
269baf7d26 Refactored InputMessageContent types to it's own namespace so InputMessageContent can always return the correct InputMessageContent object type when calling fromArray() 2023-04-23 16:22:15 -04:00
9ffc0a2105 Added new exception class NotImplementedException to represent the case when a method is not implemented yet or the method is not applicable to the current object. 2023-04-23 16:20:41 -04:00
f54c30b320 Added object \TgBotLib\Objects\Telegram > InputInvoiceMessageContent to represent the content of an invoice message to be sent as the result of an inline query. 2023-04-23 15:45:42 -04:00
1b569e4972 Added object \TgBotLib\Objects\Telegram > InputContactMessageContent to represent the content of a contact message to be sent as the result of an inline query. 2023-04-23 15:02:03 -04:00
ec93f9ffd7 Added object \TgBotLib\Objects\Telegram > InputVenueMessageContent to represent the content of a venue message to be sent as the result of an inline query. 2023-04-23 14:57:44 -04:00
ce94585752 Added object \TgBotLib\Objects\Telegram > InputLocationMessageContent to represent the content of a location message to be sent as the result of an inline query. 2023-04-23 14:48:55 -04:00
ac27d427e1 Minor correction in CHANGELOG.md 2023-04-23 14:43:15 -04:00
ed41bcea2f Added object \TgBotLib\Objects\Telegram > InputTextMessageContent to represent the content of a text message to be sent as the result of an inline query. 2023-04-23 14:42:51 -04:00
18a3c7ef6f Bumped version to 6.7.0 2023-04-23 13:33:29 -04:00
Netkas
949017a123 Updated CHANGELOG.md 2023-04-10 21:00:11 -04:00
Netkas
fb1a844526 Added method \TgBotLib\Bot > setStickerMaskPosition() to change the mask position of a mask sticker. See [setStickerMaskPosition](https://core.telegram.org/bots/api#setstickermaskposition) for more information.
https://git.n64.cc/nosial/libs/tgbot/-/issues/2
2023-04-10 20:58:16 -04:00
Netkas
54fc17b549 Added method \TgBotLib\Bot > setStickerKeywords() to set the list of emojis for a sticker set. See [setStickerKeywords](https://core.telegram.org/bots/api#setstickerkeywords) for more information.
https://git.n64.cc/nosial/libs/tgbot/-/issues/2
2023-04-10 20:56:03 -04:00
Netkas
174210da67 Added method \TgBotLib\Bot > setStickerEmojiList() to set the list of emojis for a sticker set. See [setStickerEmojiList](https://core.telegram.org/bots/api#setstickeremojilist) for more information.
https://git.n64.cc/nosial/libs/tgbot/-/issues/2
2023-04-10 20:50:50 -04:00
Netkas
d171c61e7f Added method \TgBotLib\Bot > deleteStickerSet() to delete a sticker set. See [deleteStickerSet](https://core.telegram.org/bots/api#deletestickerset) for more information.
https://git.n64.cc/nosial/libs/tgbot/-/issues/2
2023-04-10 20:48:06 -04:00
Netkas
5283416292 Added method \TgBotLib\Bot > setStickerSetTitle() to set the title of a sticker set. See [setStickerSetTitle](https://core.telegram.org/bots/api#setstickersettitle) for more information.
https://git.n64.cc/nosial/libs/tgbot/-/issues/2
2023-04-10 20:34:14 -04:00
Netkas
917077c19a Added method \TgBotLib\Bot > setStickerSetThumbnail() to set the thumbnail of a sticker set. See [setStickerSetThumbnail](https://core.telegram.org/bots/api#setstickersetthumbnail) for more information.
https://git.n64.cc/nosial/libs/tgbot/-/issues/2
2023-04-10 19:42:14 -04:00
Netkas
b4e0f62e99 Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format
https://git.n64.cc/nosial/libs/tgbot/-/issues/2
2023-04-10 19:38:06 -04:00
Netkas
97fe1f33ad Renamed thumb field in TgBotLib\Objects\Telegram > VideoNote to thumbnail
https://git.n64.cc/nosial/libs/tgbot/-/issues/2
2023-04-10 19:21:05 -04:00
Netkas
da8108c196 Renamed thumb field in TgBotLib\Objects\Telegram > Video to thumbnail
https://git.n64.cc/nosial/libs/tgbot/-/issues/2
2023-04-10 19:16:50 -04:00
Netkas
70c6181cd8 Renamed thumb field in TgBotLib\Objects\Telegram > Sticker to thumbnail & Fixed TgBotLib\Objects\Telegram > Sticker > toArray() to properly return the premium_animation field 2023-04-10 19:13:27 -04:00
Netkas
3ae16b96e1 Renamed thumb field in TgBotLib\Objects\Telegram > Document to thumbnail
https://git.n64.cc/nosial/libs/tgbot/-/issues/2
2023-04-10 19:06:19 -04:00
Netkas
688ea4f5b1 Updated php.xml 2023-04-10 19:04:41 -04:00
Netkas
c6caabfcb4 Minor correction 2023-04-10 19:04:24 -04:00
Netkas
af8fabceaa Renamed thumb field in TgBotLib\Objects\Telegram > Audio to thumbnail
https://git.n64.cc/nosial/libs/tgbot/-/issues/2
2023-04-10 19:03:05 -04:00
Netkas
4d3ba7004e Renamed thumb field in TgBotLib\Objects\Telegram > Animation to thumbnail
https://git.n64.cc/nosial/libs/tgbot/-/issues/2
2023-04-10 17:47:33 -04:00
Netkas
007304c8ca Added method \TgBotLib\Bot > setCustomEmojiStickerSetThumbnail() to set the thumbnail of a sticker set. See [setCustomEmojiStickerSetThumbnail](https://core.telegram.org/bots/api#setcustomemojistickersetthumbnail) for more information.
https://git.n64.cc/nosial/libs/tgbot/-/issues/2
2023-04-10 17:43:37 -04:00
Netkas
595872c997 Added method \TgBotLib\Bot > uploadStickerFile() to upload a sticker file with a sticker for later use in createNewStickerSet and addStickerToSet methods (can be used multiple times). See [uploadStickerFile](https://core.telegram.org/bots/api#uploadstickerfile) for more information.
https://git.n64.cc/nosial/libs/tgbot/-/issues/2
2023-04-10 17:39:34 -04:00
Netkas
4dc5e9e20d Added abstract class \TgBotLib\Abstracts > StickerFormat to represent a sticker format ("static", "animated" or "video")
https://git.n64.cc/nosial/libs/tgbot/-/issues/2
2023-04-10 17:37:43 -04:00
Netkas
37a136adce Added method \TgBotLib\Bot > addStickerToSet() to add a new sticker to a set created by the bot. See [addStickerToSet](https://core.telegram.org/bots/api#addstickertoset) for more information.
https://git.n64.cc/nosial/libs/tgbot/-/issues/2
2023-04-10 16:10:19 -04:00
Netkas
65564ecb2a Added the field _needs_repainting_ to the [Sticker](https://core.telegram.org/bots/api#sticker) class which can be obtained via TgBotLib\Objects\Telegram > Sticker > needsRepainting()
https://git.n64.cc/nosial/libs/tgbot/-/issues/2
2023-04-10 16:05:37 -04:00
Netkas
c17773e5d2 Added method \TgBotLib\Bot > createNewStickerSet() to create a new sticker set owned by a user. See [createNewStickerSet](https://core.telegram.org/bots/api#createnewstickerset) for more information. 2023-04-07 01:37:01 -04:00
Netkas
8965ac3aff Added method \TgBotLib\Bot > sendSticker() to send a sticker to a chat. See [sendSticker](https://core.telegram.org/bots/api#sendsticker) for more information. 2023-04-06 13:54:48 -04:00
Netkas
38012104ae Added the ability to get the current bot short description in the given language as the class [BotShortDescription](https://core.telegram.org/bots/api#botshortdescription) using the method \TgBotLib\Bot > getMyShortDescription() see [getMyShortDescription](https://core.telegram.org/bots/api#getmyshortdescription) for more information. 2023-04-06 13:47:53 -04:00
Netkas
5c1bb7c936 Minor change in CHANGELOG.md 2023-04-06 13:46:03 -04:00
Netkas
4869c439ff Minor corrections to the PhpDoc in \TgBotLib > Bot > getMyDescription 2023-04-06 13:40:39 -04:00
Netkas
8730f82abf Added the ability to set different bot short descriptions for different user languages using the method \TgBotLib\Bot > setMyShortDescription() see [setMyShortDescription](https://core.telegram.org/bots/api#setmyshortdescription) for more information. 2023-04-06 13:39:51 -04:00
Netkas
ccd910938b Added the ability to get the current bot description in the given language as the class [BotDescription](https://core.telegram.org/bots/api#botdescription) using the method \TgBotLib\Bot > getMyDescription() 2023-04-06 13:33:29 -04:00
Netkas
7252854c44 Added the ability to set different bot descriptions for different user languages using the method \TgBotLib\Bot > setMyDescription() 2023-04-06 13:22:09 -04:00
Netkas
855925d4bd Bumped version to 6.6.0 2023-04-06 13:17:33 -04:00
Netkas
bfa19191a2 Merge remote-tracking branch 'origin/dev' into dev 2023-03-01 19:15:09 -05:00
Netkas
d06f012797 Updated Run Configurations 2023-03-01 19:14:58 -05:00
Netkas
72a09a2663 Updated CHANGELOG.md 2023-03-01 19:14:35 -05:00
Netkas
ffe62c1ae2 Updated CHANGELOG.md 2023-02-28 22:19:59 -05:00
Netkas
2e1f699e29 Bumped version to 6.5.4 2023-02-28 22:19:16 -05:00
Netkas
cc22e23a06 Removed unused destruct() 2023-02-28 22:18:43 -05:00
Netkas
2a0ba0eaf7 Bumped version 2023-02-28 21:16:28 -05:00