Commit Graph

78 Commits

Author SHA1 Message Date
eleksir
408dccd1b5 Fix variable name in Brain.pm that explodes bot 2025-05-08 15:06:12 +03:00
eleksir
5448c9bfdb Add type Reaction 2025-05-08 14:56:25 +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
ebaf2c9b38 Add logOut() method to Teapot lib 2024-08-22 21:29:49 +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
d4d830715b Add comments fo couple of fields in banChatMember method 2023-01-14 20:50:02 +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
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
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
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
b4e6685213 Add support for Bot API 6.3 2022-11-06 22:08:02 +03:00
eleksir
f9658ac5e8 Actually add admin mute command 2022-10-09 02:06:54 +03:00
eleksir
cefdec95c4 Forgot to sed /voice/video/g in message.pm 2022-05-01 11:50:00 +03:00
eleksir
216a139c18 Update Teapot lib to comply with api v5.6, v5.7, v6.0 2022-04-16 19:51:26 +03:00
eleksir
a9bb74b440 Perlcritic overhaul, apply to Teapot lib too 2022-02-12 17:50:23 +03:00
eleksir
e84241c340 Use JSON::PP explicitly rather than implicitly 2022-02-03 01:58:07 +03:00
eleksir
73258dce1c Fix canTalk() usage in sendChatAction() 2022-02-03 01:36:47 +03:00
eleksir
d1f7f3c230 Add missing use in RedisLib.pm and also fix usage of canTalk() there 2022-02-03 01:22:21 +03:00
eleksir
76f286c770 Fix error handling in canDeleteMessage 2022-02-03 00:40:42 +03:00
eleksir
cfe6f76627 Fix internal mechanics CanTalk() and replyMd() to work with external calls 2022-02-02 18:12:01 +03:00
eleksir
22afd51e07 Do not use _brain in ChatPermissions.pm 2022-01-28 21:02:14 +03:00
eleksir
8d35bb2452 Update api with fields from v5.4 and v5.5 2021-12-07 20:11:56 +03:00
eleksir
47e82449e7 Update present api implementation to botapi v5.3 2021-06-26 10:00:51 +03:00
eleksir
dca58a3deb Add undocumented voice field to ChatMemberUpdated object 2021-06-12 14:09:40 +03:00
eleksir
b8c3f4957c Update objects of Teapot::Bot according Bot API docs. Add missing fields.
+ Add missing fields some of existing objects
* Fix copy-paste errors in Teapot::Bot::Object::PollAnswer
2021-05-01 01:05:31 +03:00
eleksir
ec6c63a954 Add 'text' field to ChatMemberUpdated, looks like they miss to document it 2021-04-30 23:53:51 +03:00
eleksir
62650bd8ad Update to api 5.2 changes (no payments-2.0) 2021-04-30 23:42:54 +03:00
eleksir
8e2414288b Fix some errors of tg api v5.1 transition 2021-04-25 01:34:58 +03:00
eleksir
615213ee41 Merge branch 'master' into update_teapot_bot_lib_to_api_v5.1 2021-04-24 11:47:44 +03:00
eleksir
e7ef39366b Try not to die inside Mojo::Reactor::Poll if some incorrect data lands in update 2021-04-22 19:24:59 +03:00
eleksir
5d17018490 Update Teapot::Bot to v5.1 api data types, add some debug 2021-04-04 22:44:28 +03:00
eleksir
b8fb89358e Try not to die if tg api call timeouts or api returns garbage 2021-03-30 20:04:21 +03:00
eleksir
04cb3d2357 First run with admin module: fix typos in ChatMember.pm, Brain.pm, admin.pm, botlib.pm 2021-02-23 18:16:24 +03:00
eleksir
79004942bd Teapot lib: document canTalk() function 2021-02-22 23:49:42 +03:00
eleksir
52724accee Teapot lib: Implement ability to delete message in chat 2021-02-22 23:45:37 +03:00
eleksir
94f37408d7 InlineKeyboardButton: remove doubling field 2021-01-04 18:15:08 +03:00
eleksir
380bff679e Add google_place_id and google_place_type fields to Venue object 2020-12-22 01:32:50 +03:00
eleksir
7d3d17f807 Add small_file_unique_id and big_file_unique_id fields to ChatPhoto object 2020-12-22 01:30:15 +03:00
eleksir
a9c049da13 Add horizontal_accuracy, live_period, heading, proximity_alert_radius, to Location object 2020-12-22 01:26:39 +03:00
eleksir
ade7cefe5a ChatMember.pm: Add is_anonymous field, rename until -> until_date 2020-12-22 01:22:11 +03:00
eleksir
6d7830024c Update Poll object fields 2020-12-22 01:13:06 +03:00
eleksir
33616284ca Add PollAnswer object 2020-12-22 01:12:38 +03:00
eleksir
d8728b383e Chat.pm: add linked_chat_id and location fields 2020-12-22 00:46:32 +03:00