Commit graph

  • 2f701a899f Updated CHANGELOG.md netkas 2024-09-29 21:47:42 -04:00
  • 323c3531ba Refactor enums to use native PHP 8.1 syntax netkas 2024-09-29 21:46:55 -04:00
  • eac0490ae8 Bumped version to 7.10.0 netkas 2024-09-29 21:40:43 -04:00
  • 3e035e5d7d Updated .gitignore netkas 2024-09-29 21:36:43 -04:00
  • ae61b3fadf Add CI workflow and update build configurations netkas 2024-09-29 21:36:05 -04:00
  • a9b314879a
    Bumped version to 6.7.1 Netkas 2023-08-13 21:11:42 -04:00
  • 8c664e8127
    * Updated \TgBotLib\Bot::sendPhoto() to accept URLs as a parameter for the photo field. * Updated \TgBotLib\Bot::sendAudio() to accept URLs as a parameter for the audio field. * Updated \TgBotLib\Bot::sendDocument() to accept URLs as a parameter for the document field. * Updated \TgBotLib\Bot::sendVideo() to accept URLs as a parameter for the video field. * Updated \TgBotLib\Bot::sendAnimation() to accept URLs as a parameter for the animation field. * Updated \TgBotLib\Bot::sendVoice() to accept URLs as a parameter for the voice field. Netkas 2023-08-13 21:11:32 -04:00
  • 0dbf477f7b
    Merge branch 'master' into dev 6.7.0 Netkas 2023-08-10 14:32:04 -04:00
  • ada7676ef9
    Updated CI Netkas 2023-08-10 14:27:20 -04:00
  • db38d46fb3
    Updated CHANGELOG.md Netkas 2023-08-10 14:25:22 -04:00
  • 54e81b4137
    * Fixed type in \TgBotLib\Objects\Telegram > Message > fromArray() where forum_topic_created is being parsed for forum_topic_edited instead of forum_topic_edited Netkas 2023-08-10 14:25:05 -04:00
  • fbc472d8de
    Updated method \TgBotLib > Bot > handleGetUpdates() to handle exceptions Netkas 2023-08-09 20:02:59 -04:00
  • 8a4dfddae6
    Minor correction Netkas 2023-08-09 19:52:35 -04:00
  • 857d20774d
    Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultVoice.php Netkas 2023-08-09 19:51:47 -04:00
  • 1b4e4a806f
    Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultVideo.php Netkas 2023-08-09 19:47:03 -04:00
  • 1deb1aaa6c
    Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultVenue Netkas 2023-08-09 19:40:37 -04:00
  • 77ce3969aa
    Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultPhoto Netkas 2023-08-09 19:24:18 -04:00
  • a1ec9fdb13
    Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultMpeg4Gif Netkas 2023-08-09 18:52:00 -04:00
  • 96c3e190cb
    Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultLocation Netkas 2023-08-09 18:25:42 -04:00
  • 8e45540d78
    Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultLocation Netkas 2023-08-09 17:49:27 -04:00
  • ddf897f143
    Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultGif Netkas 2023-08-09 17:47:02 -04:00
  • d80637250d
    Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultGif Netkas 2023-08-09 17:39:37 -04:00
  • 32f089203a
    Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultGame Netkas 2023-08-09 17:31:12 -04:00
  • 7573fc2205
    Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultContact Netkas 2023-08-09 15:45:59 -04:00
  • b81fa4fa4f
    Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultAudio Netkas 2023-08-09 15:41:55 -04:00
  • 3d99e58d25
    Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultArticle Netkas 2023-08-09 15:35:18 -04:00
  • 5ec6f7271a
    * 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 Netkas 2023-08-09 15:32:45 -04:00
  • 176ea791bf
    Added set methods to \TgBotLib\Objects\Telegram\InputMessageContent\InputVenueMessageContent Netkas 2023-04-30 15:24:47 -04:00
  • 40d25a15f1
    Added set methods to \TgBotLib\Objects\Telegram\InputMessageContent\InputTextMessageContent Netkas 2023-04-30 14:01:51 -04:00
  • 5ce6f737f5 Added set methods to \TgBotLib\Objects\Telegram\InputMessageContent\InputLocationMessageContent Netkas 2023-04-27 23:48:29 -04:00
  • 2389839a37 Removed unused 'CurrencyNotSupportedException' Netkas 2023-04-27 20:43:30 -04:00
  • 3c91058235 Implemented Telegram's currency API \TgBotLib\Classes\Utilities::getCurrency to get basic information about the currency of the specified country, see [Telegram's currency API](https://core.telegram.org/bots/payments) for more information. Netkas 2023-04-27 20:42:11 -04:00
  • e025f34a2e Merge remote-tracking branch 'github/dev' into dev Netkas 2023-04-27 16:18:41 -04:00
  • d0219425c1 Added new methods to \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent Netkas 2023-04-27 16:18:29 -04:00
  • b8d3a20a5c Added new methods to \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent Netkas 2023-04-27 16:17:36 -04:00
  • 4ce61e5af7 Added new methods to \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent Netkas 2023-04-27 16:17:36 -04:00
  • 26c0a197dc Updated documentation for \TgBotLib\Bot::editMessageMedia Netkas 2023-04-27 14:49:42 -04:00
  • 3d6cc15894 Added method \TgBotLib\Bot::answerWebAppQuery to answer a callback query sent from a web app, which returns the newly added \TgBotLib\Objects\Telegram\SentWebAppMessage object on success. Netkas 2023-04-27 14:32:32 -04:00
  • 581fa42715 Refactored \TgBotLib\Objects\Telegram\InputMessageContent\InputContactMessageContent and added Netkas 2023-04-27 14:23:14 -04:00
  • e463b81948 Refactored CHANGELOG.md Netkas 2023-04-24 19:23:17 -04:00
  • bcbb742b9f 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. Netkas 2023-04-24 19:22:06 -04:00
  • 6fb6f74406 Added object \TgBotLib\Objects\Telegram\InlineQueryResult\InlineQueryResultGame, see [InlineQueryResultGame](https://core.telegram.org/bots/api#inlinequeryresultgame) for more information. Netkas 2023-04-24 19:14:36 -04:00
  • c0b25c7b0e Added object \TgBotLib\Objects\Telegram\InlineQueryResult\InlineQueryResultContact, see [InlineQueryResultContact](https://core.telegram.org/bots/api#inlinequeryresultcontact) for more information. Netkas 2023-04-24 19:10:04 -04:00
  • 22a99eb06a Minoe change Netkas 2023-04-24 16:27:05 -04:00
  • 61249cb18d Added object \TgBotLib\Objects\Telegram\InlineQueryResult\InlineQueryResultVenue, see [InlineQueryResultVenue](https://core.telegram.org/bots/api#inlinequeryresultvenue) for more information. Netkas 2023-04-24 16:15:03 -04:00
  • 89b240f2eb Minor correction by renaming fields thumb_* to thumbnail_ Netkas 2023-04-24 14:31:01 -04:00
  • 144095b228 Added object \TgBotLib\Objects\Telegram\InlineQueryResult\InlineQueryResultLocation, see [InlineQueryResultLocation](https://core.telegram.org/bots/api#inlinequeryresultlocation) for more information. Netkas 2023-04-24 14:27:23 -04:00
  • 05b877d38a Added object \TgBotLib\Objects\Telegram\InlineQueryResult\InlineQueryResultDocument, see [InlineQueryResultDocument](https://core.telegram.org/bots/api#inlinequeryresultdocument) for more information. Netkas 2023-04-24 14:01:22 -04:00
  • 9deb9e2c00 Minor correction in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultVoice Netkas 2023-04-24 13:47:50 -04:00
  • d14ee4eae4 Added object \TgBotLib\Objects\Telegram\InlineQueryResult\InlineQueryResultVoice, see [InlineQueryResultVoice](https://core.telegram.org/bots/api#inlinequeryresultvoice) for more information. Netkas 2023-04-23 20:49:24 -04:00
  • c3ecb75d6c Added constructors to InlineQuery objects Netkas 2023-04-23 20:40:53 -04:00
  • 51cce667f7 Updated README.md with more information on how to install NCC Netkas 2023-04-23 20:28:35 -04:00
  • b1db812097 Added object \TgBotLib\Objects\Telegram\InlineQueryResult\InlineQueryResultAudio, see [InlineQueryResultAudio](https://core.telegram.org/bots/api#inlinequeryresultaudio) for more information. Netkas 2023-04-23 20:25:33 -04:00
  • 41c1d0fc4c Added object \TgBotLib\Objects\Telegram\InlineQueryResult\InlineQueryResultVideo, see [InlineQueryResultVideo](https://core.telegram.org/bots/api#inlinequeryresultvideo) for more information. Netkas 2023-04-23 18:58:24 -04:00
  • 277a33f2d3 Added field via_chat_folder_invite_link to \TgBotLib\Objects\Telegram\ChatMemberUpdated to represent the invite link, which was used by the user to join the chat; for joining by invite link events only. Netkas 2023-04-23 18:40:37 -04:00
  • 67b7b68b4c Added object \TgBotLib\Objects\Telegram\InlineQueryResult\InlineQueryResultMpeg4Gif, see [InlineQueryResultMpeg4Gif](https://core.telegram.org/bots/api#inlinequeryresultmpeg4gif) for more information. Netkas 2023-04-23 18:36:34 -04:00
  • 1707a44796 Added abstract class \TgBotLib\Abstracts\ThumbnailMimeType to represent the mime type of thumbnail, photo, or a file / sticker thumbnail. Netkas 2023-04-23 18:24:42 -04:00
  • 01399f0723 Added object \TgBotLib\Objects\Telegram\InlineQueryResult\InlineQueryResultGif, see [InlineQueryResultGif](https://core.telegram.org/bots/api#inlinequeryresultgif) for more information. Netkas 2023-04-23 18:24:04 -04:00
  • 79446bfcbd Added object \TgBotLib\Objects\Telegram\InlineQueryResult\InlineQueryResultPhoto, see [InlineQueryResultPhoto](https://core.telegram.org/bots/api#inlinequeryresultphoto) for more information. Netkas 2023-04-23 18:02:54 -04:00
  • f518ca0030 Added object \TgBotLib\Objects\Telegram\InlineQueryResult\InlineQueryResultArticle, see [InlineQueryResultArticle](https://core.telegram.org/bots/api#inlinequeryresultarticle) for more information. Netkas 2023-04-23 17:46:09 -04:00
  • 8ca48b008e Updated CHANGELOG.md Netkas 2023-04-23 17:37:31 -04:00
  • b2928875cd Added methods \TgBotLib\Classes\Validate::url, \TgBotLib\Classes\Validate::length, & \TgBotLib\Classes\Validate::isHttps to \TgBotLib\Classes\Validate Netkas 2023-04-23 17:34:35 -04:00
  • f8c02bceb3 Added methods \TgBotLib\Objects\Telegram\InlineKeyboardMarkup::removeRow & \TgBotLib\Objects\Telegram\InlineKeyboardMarkup::addRow to \TgBotLib\Objects\Telegram\InlineKeyboardMarkup Netkas 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 Netkas 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 Netkas 2023-04-23 16:52:40 -04:00
  • 841d4ff11d Updated CHANGELOG.md Netkas 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() Netkas 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. Netkas 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. Netkas 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. Netkas 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. Netkas 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. Netkas 2023-04-23 14:48:55 -04:00
  • ac27d427e1 Minor correction in CHANGELOG.md Netkas 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. Netkas 2023-04-23 14:42:51 -04:00
  • 18a3c7ef6f Bumped version to 6.7.0 Netkas 2023-04-23 13:33:29 -04:00
  • ad83558169 Merge branch 'dev' 6.6.0 Netkas 2023-04-10 21:00:20 -04:00
  • 949017a123 Updated CHANGELOG.md Netkas 2023-04-10 21:00:11 -04:00
  • b3b66a2634 Merge branch 'master' of https://git.n64.cc/nosial/libs/tgbot Netkas 2023-04-10 20:59:32 -04:00
  • 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. Netkas 2023-04-10 20:58:16 -04:00
  • 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. Netkas 2023-04-10 20:56:03 -04:00
  • 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. Netkas 2023-04-10 20:50:50 -04:00
  • d171c61e7f Added method \TgBotLib\Bot > deleteStickerSet() to delete a sticker set. See [deleteStickerSet](https://core.telegram.org/bots/api#deletestickerset) for more information. Netkas 2023-04-10 20:48:06 -04:00
  • 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. Netkas 2023-04-10 20:34:14 -04:00
  • 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. Netkas 2023-04-10 19:42:14 -04:00
  • b4e0f62e99 Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format Netkas 2023-04-10 19:38:06 -04:00
  • 97fe1f33ad Renamed thumb field in TgBotLib\Objects\Telegram > VideoNote to thumbnail Netkas 2023-04-10 19:21:05 -04:00
  • da8108c196 Renamed thumb field in TgBotLib\Objects\Telegram > Video to thumbnail Netkas 2023-04-10 19:16:32 -04:00
  • 70c6181cd8 Renamed thumb field in TgBotLib\Objects\Telegram > Sticker to thumbnail & Fixed TgBotLib\Objects\Telegram > Sticker > toArray() to properly return the premium_animation field Netkas 2023-04-10 19:13:27 -04:00
  • 3ae16b96e1 Renamed thumb field in TgBotLib\Objects\Telegram > Document to thumbnail Netkas 2023-04-10 19:06:19 -04:00
  • 688ea4f5b1 Updated php.xml Netkas 2023-04-10 19:04:41 -04:00
  • c6caabfcb4 Minor correction Netkas 2023-04-10 19:04:24 -04:00
  • af8fabceaa Renamed thumb field in TgBotLib\Objects\Telegram > Audio to thumbnail Netkas 2023-04-10 19:03:05 -04:00
  • 4d3ba7004e Renamed thumb field in TgBotLib\Objects\Telegram > Animation to thumbnail Netkas 2023-04-10 17:47:33 -04:00
  • 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. Netkas 2023-04-10 17:43:37 -04:00
  • 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. Netkas 2023-04-10 17:39:34 -04:00
  • 4dc5e9e20d Added abstract class \TgBotLib\Abstracts > StickerFormat to represent a sticker format ("static", "animated" or "video") Netkas 2023-04-10 17:37:43 -04:00
  • 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. Netkas 2023-04-10 16:10:19 -04:00
  • 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() Netkas 2023-04-10 16:05:17 -04:00
  • 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. Netkas 2023-04-07 01:37:01 -04:00
  • 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. Netkas 2023-04-06 13:54:48 -04:00