Commit Graph

285 Commits

Author SHA1 Message Date
eleksir
f97557868b User sendMessage directly via global object, without sugar 2025-05-09 16:19:49 +03:00
eleksir
b024d5f13a Do not send "Typing" as it cause errors, replace it with sleep. 2025-05-09 11:59:18 +03:00
eleksir
bc270457a4 Use correct fields for last_name and user id in updated member event (when new user joins) 2025-05-08 21:16:29 +03:00
eleksir
ba4ff36daf Solve myterious riddle with users some sneaking unnoted by bot, which is a bummer! 2025-05-08 17:51:41 +03:00
eleksir
ec59703000 Fix reaction username in logs 2025-05-08 17:27:52 +03:00
eleksir
59a1a3538b I have nothing to do with chat reactions, so log it and skip 2025-05-08 17:20:50 +03:00
eleksir
6e76d85899 Add quirk for api incosistency in reactions 2025-05-08 17:11:16 +03:00
eleksir
d21bab68ef Make proper use of Reaction stuff in Teapot lib 2025-05-08 15:49:25 +03:00
eleksir
408dccd1b5 Fix variable name in Brain.pm that explodes bot 2025-05-08 15:06:12 +03:00
eleksir
a568c6f146 Do not include in repo data/Admin directory 2025-05-08 15:03:45 +03:00
eleksir
5448c9bfdb Add type Reaction 2025-05-08 14:56:25 +03:00
eleksir
da182ae62f Do not call logOut() since we have no webhooks and for faster restarts. 2025-04-27 13:07:15 +03:00
eleksir
82df563f40 Add list of allowed updates explicitly, add Close() method for telegram connection 2025-04-27 13:05:31 +03:00
eleksir
7bd0c3428f Set explicitly ["chat_member","message_reaction","message_reaction_count"] as additional updates i want to receive 2025-04-24 22:01:29 +03:00
eleksir
7904957aaa Implement commands w п weather погода погодка погадка without arguments 2025-02-09 14:51:10 +03:00
eleksir
132ebeffa4 Fix crash on condition check in !admin {obutts,oboobs} # command 2024-10-25 09:44:37 +03:00
eleksir
4f9675f1d2 Import JSON::PP explicitly in lib/BotLib.pm 2024-08-22 21:44:09 +03:00
eleksir
1667772268 Make use of logOut() method 2024-08-22 21:42:58 +03:00
eleksir
ebaf2c9b38 Add logOut() method to Teapot lib 2024-08-22 21:29:49 +03:00
eleksir
b9c88ad4e7 Dump SendMessage() error only if we not handle it properly 2023-08-29 17:28:35 -07:00
eleksir
6a4c2bd076 Add command пословиться 2023-05-19 00:16:14 +03:00
eleksir
2f9b79d77d Add missing semicolon in Teapot/Bot/Object/Chat.pm 2023-04-16 17:06:33 +03:00
eleksir
8eb83ac2b8 Update internal version number of Teapot lib 2023-04-16 17:03:39 +03:00
eleksir
df3c198bce Add general support for BotAPI v6.6 2023-04-16 16:58:59 +03:00
eleksir
f019b98b1f Add partial BotAPI v6.5 support 2023-04-16 16:31:12 +03:00
eleksir
ecf4f94dca Add general support for BotAPI v6.4 2023-04-16 16:03:38 +03:00
eleksir
cea6920d78 Change loglevel for known errors to notice while handling sendMessage errors 2023-01-14 20:52:03 +03:00
eleksir
d4d830715b Add comments fo couple of fields in banChatMember method 2023-01-14 20:50:02 +03:00
eleksir
be5c654045 Rework BotAPI error handling, this time it looks kinda working, still wip, though 2023-01-07 17:19:16 +03:00
eleksir
5edf5a7e0c Fine tune GET polling requests timings, update Teapot lib pod-docs, bump Teapot lib version where missed last time 2023-01-07 16:56:56 +03:00
eleksir
780ec4fe29 Correctly handle successful response from banChatMember and restrictChatMember in BotLib.pm 2023-01-07 16:53:47 +03:00
eleksir
fc56f99433 Try to catch and log as most Bot API errors as we can in BotLib.pm 2023-01-02 21:27:34 +03:00
eleksir
5b93e43280 Only creator can toggle admin mute 2023-01-02 19:54:22 +03:00
eleksir
c5b4d1c866 Try to catch and log as most Bot API errors as we can in TelegramBot.pm 2023-01-02 19:34:38 +03:00
eleksir
5a5e4b5ead 5/5 Fix formatting in TelegramBot.pm 2023-01-02 19:21:19 +03:00
eleksir
e8765c0e88 4/5 Try to handle errors on sending message in RedisLib.pm 2023-01-02 19:20:31 +03:00
eleksir
3dc75936ea 3/5 Allow to enable mute-by-command not only to creator of chat 2023-01-02 19:08:02 +03:00
eleksir
1f3675de8f 2/5 Lift up error to caller in Teapot lib, introduce can_talk() in Brain.pm 2023-01-02 19:06:02 +03:00
eleksir
3668620bd8 1/5 Fix formatting in bin/aleesa-telegram 2023-01-02 19:04:28 +03:00
eleksir
5411d6df7f Fix fetching error message 2022-12-15 02:21:17 +03:00
eleksir
f6a5a05e58 Disable chat in morning greet list if chat id is not found 2022-12-15 02:19:01 +03:00
eleksir
6e084995a7 Use proper functions to check state of services in migration 2022-12-15 02:03:02 +03:00
eleksir
43c08e156f Return only if migration performed 2022-12-12 17:31:18 +03:00
eleksir
b84f8bb245 Move IsCensored to Admin.pm 2022-12-12 17:26:50 +03:00
eleksir
d43cb5995b Add settings migration when group -> supergroup promotion event discovered 2022-12-12 17:10:02 +03:00
eleksir
7d74a86dad In channel context Hightlight() is pointless 2022-12-12 15:19:41 +03:00
eleksir
d539c8c9cf DeeJay utility functions to Util.pm 2022-12-12 13:32:44 +03:00
eleksir
bd9f66930b In _post_request() try to catch error message as raw and return it to upper layer 2022-12-12 12:41:54 +03:00
eleksir
9618369a45 Add debug for api errors 2022-11-26 14:22:11 +03:00
eleksir
770fce4cfe Update dependencies 2022-11-26 14:16:19 +03:00