Commit graph

700 commits

Author SHA1 Message Date
netkas
8119e791e4 Add RestrictChatMember method to bot library 2024-11-05 21:22:33 -05:00
netkas
2377b239f3 Add UnbanChatMember method to TgBotLib 2024-11-05 19:26:16 -05:00
netkas
9e2e19d593 Add BanChatMember method to TgBotLib 2024-11-05 19:24:25 -05:00
netkas
d9dd03f601 Refactor user profile photos request handling. 2024-11-05 19:22:13 -05:00
netkas
3cac471f1e Add GetFile method to fetch file details from Telegram API 2024-11-05 19:21:54 -05:00
netkas
44260ccaee Add 'GetUserProfilePhotos' method support 2024-11-05 19:19:14 -05:00
netkas
ee2dff1e31 Add new source folder and fix method enums 2024-11-05 15:44:03 -05:00
netkas
2900b708da Handle exceptions in command and event handlers 2024-11-05 15:42:34 -05:00
netkas
12a091ce80 Refactor command inclusion logic in getText and getCaption 2024-11-05 13:11:04 -05:00
netkas
b826d0d4dd Add includeCommand parameter to getAnyText method 2024-11-05 13:07:25 -05:00
netkas
6c6d7abb56 Add command stripping option to getText and getCaption 2024-11-05 11:54:23 -05:00
netkas
946e110131 Add child process management for polling updates 2024-11-04 22:04:58 -05:00
netkas
87f9321280 Add abstract handle method in UpdateEvent 2024-11-04 15:19:29 -05:00
netkas
f03490cb6c Improve command handling in PollingBot 2024-11-04 13:49:50 -05:00
netkas
439ccdb123 Improve command handling in PollingBot 2024-11-04 01:22:30 -05:00
netkas
a4af8fd1b7 Refactor command handler invocation in PollingBot 2024-11-04 01:20:06 -05:00
netkas
42c3138d3b Refactor command handling in PollingBot 2024-11-04 01:19:44 -05:00
netkas
e2bc3010af Fix nullable update handling in PollingBot 2024-11-04 01:17:47 -05:00
netkas
ba6e991b23 Add method to retrieve any available message 2024-11-04 01:17:15 -05:00
netkas
513344b4a6 Add command handling in PollingBot 2024-11-04 01:17:03 -05:00
netkas
7cfd6c0c5f Add methods to retrieve text and commands from messages 2024-11-04 01:16:55 -05:00
netkas
6b9ecaa153 Add CommandEvent to EventType enum 2024-11-04 01:16:47 -05:00
netkas
53824b7126 Add method to retrieve event handlers by command 2024-11-04 01:16:35 -05:00
netkas
1cf82401c3 Add CommandEvent class to handle bot commands 2024-11-04 01:16:21 -05:00
netkas
89d52f81aa Add net.nosial.optslib dependency 2024-11-04 01:06:23 -05:00
netkas
3e860ea089 Refactor README: Remove detailed sections 2024-11-04 00:58:24 -05:00
netkas
e88e18995e Add forking capability for update processing 2024-11-04 00:56:21 -05:00
netkas
1eaf2e7d91 Remove unused imports across multiple files 2024-11-03 18:26:12 -05:00
netkas
7623f488ee Rename UpdateEventType to EventType for consistency 2024-11-03 18:25:42 -05:00
netkas
a24c617c9f Remove EventType enumeration 2024-11-03 18:25:15 -05:00
netkas
a89e968a40 Oops 2024-11-03 18:23:34 -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
7b16b2bbc6 Add SetMessageReaction method 2024-11-03 18:05:05 -05:00
netkas
547c19888a Add GetWebhookInfo method to fetch webhook info 2024-11-03 17:55:47 -05:00
netkas
e6f80ae85c Refactor return type of DeleteWebhook::execute method 2024-11-03 17:54:29 -05:00
netkas
76b6590f79 Add DeleteWebhook method to handle webhook deletions 2024-11-03 17:46:16 -05:00
netkas
e7f89d7e0d Fix incorrect event type mapping for shipping query 2024-11-03 17:31:59 -05:00
netkas
f26f1c963f Update documentation com 2024-11-03 17:28:51 -05:00
netkas
56c7fb04d2 Refactor event type determination logic 2024-11-03 17:22:45 -05:00
netkas
4829853d0e Add Edited Message Event support 2024-11-03 17:20:16 -05:00
netkas
2a08cc51de Add support for handling channel post events 2024-11-03 17:18:39 -05:00
netkas
041c2dc84c Add support for edited channel post events 2024-11-03 17:15:47 -05:00
netkas
325e29a930 Add BusinessConnection event support 2024-11-03 17:14:07 -05:00
netkas
2b8f9afa49 Remove unused import from UpdateEventType enum 2024-11-03 17:12:00 -05:00
netkas
2f87996bd3 Add support for business message events 2024-11-03 17:11:16 -05:00
netkas
b40ee01d6e Add support for edited business messages 2024-11-02 00:27:17 -04:00
netkas
775a5ab71f Add support for deleted business messages event 2024-11-02 00:24:18 -04:00
netkas
b4a7d69c3c Removed UpdateEventType.php deprecated 2024-11-02 00:22:32 -04:00
netkas
bcf23f3834 Add support for message reaction event handling 2024-11-02 00:22:25 -04:00
netkas
ada256566e Add support for message reaction count events 2024-11-02 00:20:28 -04:00