Commit graph

500 commits

Author SHA1 Message Date
netkas
1720455918 Add execute method to Methods enum 2024-09-30 02:48:39 -04:00
netkas
b37eeaf09c Added 'can_connect_to_business' & 'has_main_web_app' 2024-09-30 02:39:28 -04:00
netkas
fb381c5138 Add GetMe method to TgBotLib 2024-09-30 02:35:54 -04:00
netkas
3dd46c8d27 Update bot token handling and refactor Bot class. 2024-09-30 02:35:42 -04:00
netkas
20735b36db Update bot initialization to BotOld; configure PHPUnit 2024-09-30 02:35:30 -04:00
netkas
17e31c9bce Update interface method signatures to use BotOld 2024-09-30 02:35:17 -04:00
netkas
1231e7d387 Add StartCommand and update HashCommand to use BotOld 2024-09-30 02:35:01 -04:00
netkas
ee5f204fc1 Updated .gitignore 2024-09-30 02:34:36 -04:00
netkas
46167099bf Remove StartCommand test file 2024-09-30 02:34:17 -04:00
netkas
7aa6be4e9a Add unit tests and abstract bot method execution framework 2024-09-30 02:34:07 -04:00
netkas
69f7ff6a5a Moved Bot to BotOld 2024-09-30 02:33:48 -04:00
netkas
55e65e8948 Moved Types to their own namespace 2024-09-29 21:49:10 -04:00
netkas
2f701a899f Updated CHANGELOG.md 2024-09-29 21:47:42 -04:00
netkas
323c3531ba Refactor enums to use native PHP 8.1 syntax 2024-09-29 21:46:55 -04:00
netkas
eac0490ae8 Bumped version to 7.10.0 2024-09-29 21:40:43 -04:00
netkas
3e035e5d7d Updated .gitignore 2024-09-29 21:36:43 -04:00
netkas
ae61b3fadf Add CI workflow and update build configurations 2024-09-29 21:36:05 -04:00
0dbf477f7b
Merge branch 'master' into dev 2023-08-10 14:32:04 -04:00
ada7676ef9
Updated CI 2023-08-10 14:27:20 -04:00
db38d46fb3
Updated CHANGELOG.md 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
Updated README.md to reflect the new changes with TamerLib 2.+
2023-08-10 14:25:05 -04:00
fbc472d8de
Updated method \TgBotLib > Bot > handleGetUpdates() to handle exceptions 2023-08-09 20:02:59 -04:00
8a4dfddae6
Minor correction 2023-08-09 19:52:35 -04:00
857d20774d
Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultVoice.php 2023-08-09 19:51:47 -04:00
1b4e4a806f
Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultVideo.php 2023-08-09 19:47:03 -04:00
1deb1aaa6c
Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultVenue 2023-08-09 19:40:37 -04:00
77ce3969aa
Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultPhoto 2023-08-09 19:24:18 -04:00
a1ec9fdb13
Code fixes in \TgBotLib\Objects\Telegram\InlineQueryResult > InlineQueryResultMpeg4Gif 2023-08-09 18:52:00 -04:00
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
2389839a37 Removed unused 'CurrencyNotSupportedException'
https://git.n64.cc/nosial/libs/tgbot/-/issues/3
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.
https://git.n64.cc/nosial/libs/tgbot/-/issues/3
2023-04-27 20:42:11 -04:00
e025f34a2e Merge remote-tracking branch 'github/dev' into dev 2023-04-27 16:18:41 -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
4ce61e5af7 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:17:36 -04:00
26c0a197dc Updated documentation for \TgBotLib\Bot::editMessageMedia
https://git.n64.cc/nosial/libs/tgbot/-/issues/3
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.
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
e463b81948 Refactored CHANGELOG.md
https://git.n64.cc/nosial/libs/tgbot/-/issues/3
2023-04-24 19:23:17 -04:00