Commit graph

170 commits

Author SHA1 Message Date
96c3e190cb
Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultLocation 2023-08-09 18:25:42 -04:00
8e45540d78
Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultLocation 2023-08-09 17:49:27 -04:00
ddf897f143
Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultGif 2023-08-09 17:47:02 -04:00
d80637250d
Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultGif 2023-08-09 17:39:37 -04:00
32f089203a
Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultGame 2023-08-09 17:31:12 -04:00
7573fc2205
Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultContact 2023-08-09 15:45:59 -04:00
b81fa4fa4f
Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultAudio 2023-08-09 15:41:55 -04:00
3d99e58d25
Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultArticle 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`
2023-08-09 15:32:45 -04:00
176ea791bf
Added set methods to \TgBotLib\Objects\Telegram\InputMessageContent\InputVenueMessageContent
https://git.n64.cc/nosial/libs/tgbot/-/issues/3
2023-04-30 15:24:47 -04:00
40d25a15f1
Added set methods to \TgBotLib\Objects\Telegram\InputMessageContent\InputTextMessageContent
https://git.n64.cc/nosial/libs/tgbot/-/issues/3
2023-04-30 14:01:51 -04:00
5ce6f737f5 Added set methods to \TgBotLib\Objects\Telegram\InputMessageContent\InputLocationMessageContent
https://git.n64.cc/nosial/libs/tgbot/-/issues/3
2023-04-27 23:48:29 -04:00
d0219425c1 Added new methods to \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent
- \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setTitle
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setDescription
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setPayload
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setProviderToken
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setCurrency
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::addPrice
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::clearPrices
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setMaxTipAmount
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setSuggestionsTipAmounts
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setProviderData
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setPhotoUrl
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setPhotoSize
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setPhotoWidth
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setPhotoHeight
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setNeedName
 - jetbrains://php-storm/navigate/reference?project=tgbot&fqn=\TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setNeedPhoneNumber
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setNeedEmail
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setNeedShippingAddress
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setSendPhoneNumberToProvider
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setSendEmailToProvider
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setIsFlexible

Renamed \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::isIsFlexible to \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::isFlexible

https://git.n64.cc/nosial/libs/tgbot/-/issues/3
2023-04-27 16:18:29 -04:00
b8d3a20a5c Added new methods to \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent
- \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setTitle
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setDescription
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setPayload
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setProviderToken
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setCurrency
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::addPrice
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::clearPrices
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setMaxTipAmount
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setSuggestionsTipAmounts
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setProviderData
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setPhotoUrl
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setPhotoSize
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setPhotoWidth
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setPhotoHeight
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setNeedName
 - jetbrains://php-storm/navigate/reference?project=tgbot&fqn=\TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setNeedPhoneNumber
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setNeedEmail
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setNeedShippingAddress
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setSendPhoneNumberToProvider
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setSendEmailToProvider
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::setIsFlexible

Renamed \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::isIsFlexible to \TgBotLib\Objects\Telegram\InputMessageContent\InputInvoiceMessageContent::isFlexible

https://git.n64.cc/nosial/libs/tgbot/-/issues/3
2023-04-27 16:18:16 -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.
https://git.n64.cc/nosial/libs/tgbot/-/issues/3
2023-04-27 14:32:32 -04:00
581fa42715 Refactored \TgBotLib\Objects\Telegram\InputMessageContent\InputContactMessageContent and added
- \TgBotLib\Objects\Telegram\InputMessageContent\InputContactMessageContent::setPhoneNumber
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputContactMessageContent::setFirstName
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputContactMessageContent::setLastName
 - \TgBotLib\Objects\Telegram\InputMessageContent\InputContactMessageContent::setVcard

https://git.n64.cc/nosial/libs/tgbot/-/issues/3
2023-04-27 14:23:14 -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.
https://git.n64.cc/nosial/libs/tgbot/-/issues/3
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.
https://git.n64.cc/nosial/libs/tgbot/-/issues/3
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.
https://git.n64.cc/nosial/libs/tgbot/-/issues/3
2023-04-24 19:10:04 -04:00
22a99eb06a Minoe change 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.
https://git.n64.cc/nosial/libs/tgbot/-/issues/3
2023-04-24 16:15:03 -04:00
89b240f2eb Minor correction by renaming fields thumb_* to thumbnail_
https://git.n64.cc/nosial/libs/tgbot/-/issues/3
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.
https://git.n64.cc/nosial/libs/tgbot/-/issues/3
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.
https://git.n64.cc/nosial/libs/tgbot/-/issues/3
2023-04-24 14:01:22 -04:00
9deb9e2c00 Minor correction in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultVoice 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.
https://git.n64.cc/nosial/libs/tgbot/-/issues/3
2023-04-23 20:49:24 -04:00
c3ecb75d6c Added constructors to InlineQuery objects 2023-04-23 20:40:53 -04:00
b1db812097 Added object \TgBotLib\Objects\Telegram\InlineQueryResult\InlineQueryResultAudio, see [InlineQueryResultAudio](https://core.telegram.org/bots/api#inlinequeryresultaudio) for more information.
https://git.n64.cc/nosial/libs/tgbot/-/issues/3
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.
https://git.n64.cc/nosial/libs/tgbot/-/issues/3
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.
https://git.n64.cc/nosial/libs/tgbot/-/issues/3
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. 2023-04-23 18:36:34 -04:00
01399f0723 Added object \TgBotLib\Objects\Telegram\InlineQueryResult\InlineQueryResultGif, see [InlineQueryResultGif](https://core.telegram.org/bots/api#inlinequeryresultgif) for more information. 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. 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.
https://git.n64.cc/nosial/libs/tgbot/-/issues/3
2023-04-23 17:46:09 -04:00
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
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
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
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
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
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