netkas
8aac6544a6
Add SendGift method to send gifts to users
2024-11-28 15:38:35 -05:00
netkas
939c736e1e
Add support for retrieving available gifts
2024-11-28 15:33:04 -05:00
netkas
2cdd327abf
Add sticker methods to Bot class
2024-11-28 15:25:02 -05:00
netkas
25e62db274
Add new message control and editing methods to Bot
2024-11-28 15:12:27 -05:00
netkas
4dfa3f3c59
Add method editMessageMedia to Bot class
2024-11-28 00:45:34 -05:00
netkas
2db766529e
Add method to edit message captions
2024-11-28 00:41:20 -05:00
netkas
fb99adae74
Add editMessageText method to Bot class
2024-11-28 00:38:43 -05:00
netkas
ca194cfb52
Add methods to set and get default admin rights
2024-11-28 00:35:20 -05:00
netkas
73a09760b1
Add getChatMenuButton method to Bot class
2024-11-28 00:33:43 -05:00
netkas
646c77c4ba
Move UpdateEvent to Events and remove unused import
2024-11-06 15:02:43 -05:00
netkas
2900b708da
Handle exceptions in command and event handlers
2024-11-05 15:42:34 -05:00
netkas
946e110131
Add child process management for polling updates
2024-11-04 22:04:58 -05:00
netkas
f03490cb6c
Improve command handling in PollingBot
2024-11-04 13:49:50 -05:00
netkas
53824b7126
Add method to retrieve event handlers by command
2024-11-04 01:16:35 -05:00
netkas
7623f488ee
Rename UpdateEventType to EventType for consistency
2024-11-03 18:25:42 -05:00
netkas
32d8e233b8
- Remove nullsafe operator from location property
...
- Fix user serialization in TransactionPartnerUser
- Remove null check for stickers in StickerSet
- Fix nullable operator usage in ShippingQuery toArray method
- Remove null-safe operator for traveler and watcher
- Fix null-safe operator in PreCheckoutQuery.php
- Fix null safe operator usage in PollAnswer.php
- Refactor null checks in PassportData methods
- Remove nullsafe operator from chat property
- Refactor web_app handling in MenuButtonWebApp class
- Fix conditional assignment in InputMediaVideo
- Fix null coalescing and array mapping in InputMediaAudio
- Fix redundant null coalescing in caption_entities mapping
- Fix parsing of caption_entities field in InlineQueryResultPhoto
- Fix potential unnecessary null coalescing in caption_entities
- Fix redundant null coalescence check in reply_markup assignment
- Fix redundant null coalescing in array_map calls
- Refactor: remove unnecessary null coalescing operator
- Fix conditional check for caption_entities assignment
- Fix handling of input_message_content array conversion
- Fix potential null pointer issue in InlineQuery class
- Remove redundant null check in toArray method
- Fix redundant null coalesce operator in photo mapping
- Remove null safe operator for origin
- Fix redundant null coalescing in array_map calls.
- Fix optional chaining error in ChosenInlineResult.php
- Remove null-safe operator in toArray() method
- Fix null safe operator usage in ChatMemberRestricted
- Fix null-safe operator usage in ChatMemberOwner.php
- Fix null safe operator usage in ChatMemberMember.php
- Fix nullable operator usage in ChatMemberLeft class
- Fix null-safe operator in ChatMemberBanned serialization.
- Fix user attribute null coalescing in ChatMemberAdministrator
- Fix null-safe operator usage in ChatLocation conversion
- Remove null safe operator in toArray() method
- Fix nullable operator usage in ChatInviteLink serialization
- Fix potential null pointer issue in ChatBoostSourcePremium.
- Remove null safe operator in ChatBoostRemoved toArray method
- Fix 'from' property serialization in CallbackQuery
- Fix nullable operator usage on chat property
- Remove redundant type check for associative array
- Remove deprecated BotOld.php file
2024-11-03 18:19:27 -05:00
netkas
73d14179b1
Rename EventType to UpdateEventType for clarity
2024-11-01 18:11:11 -04:00
netkas
40fd31cc79
Add event handling system to Bot class
2024-11-01 15:46:24 -04:00
netkas
d702ddb120
Update logger dependencies and add Logger class
2024-11-01 14:01:25 -04:00
netkas
f2f26998ad
Fix object instantiation and add getUpdate functionality
2024-11-01 13:24:11 -04:00
netkas
5d1b07c4c4
Enable auto-retry feature and expand Bot functionality
2024-10-09 15:04:34 -04:00
netkas
dc9ca57e52
Add support for sending documents
2024-10-08 13:58:22 -04:00
netkas
3623b63eaa
Add sendAudio method to Bot
2024-10-08 13:41:56 -04:00
netkas
a9a6d5a2b3
Add SendPhoto method for sending photos in TgBotLib
2024-10-08 13:09:53 -04:00
netkas
294b25ad26
Add copyMessages method for bulk message copying
2024-10-08 12:32:47 -04:00
netkas
ae5a9130b6
Add CopyMessage method to TgBotLib
2024-10-08 00:26:09 -04:00
netkas
2e58fcf108
Add forwardMessages method for batch forwarding
2024-10-08 00:13:23 -04:00
netkas
17ff223461
Add forwardMessage method
2024-10-07 19:39:18 -04:00
netkas
7b32ae835e
Refactor Bot class to enhance method definitions
2024-10-07 13:03:30 -04:00
netkas
96cec88e74
Implement method overloading and argument parsing for Bot class
2024-10-07 11:53:16 -04:00
netkas
23aa1ace92
Removed Unused Imports
2024-10-06 19:01:42 -04:00
netkas
c645d6a727
Refactor sendRequest method to use method enums
2024-10-06 18:59:59 -04:00
netkas
bf0b8268de
Updated Bot
2024-10-06 16:13:03 -04:00
netkas
3dd46c8d27
Update bot token handling and refactor Bot class.
2024-09-30 02:35:42 -04:00
netkas
55e65e8948
Moved Types to their own namespace
2024-09-29 21:49:10 -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
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
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
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
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
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
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