Commit Graph

23 Commits

Author SHA1 Message Date
Christian Blos 5b465e79f3 Removed unnecessary onRegister() overrides 2020-10-08 15:07:14 +02:00
Christian Blos 74e305c2a7 Load abilities when bot gets registered 2020-10-05 17:08:26 +02:00
oskov 12619422c0 Seems to have forgotten about the comment after refactoring 2020-07-23 23:13:45 +03:00
Abbas Abou Daya 861b7f24f9 Add Abillity toggles and export default abilities to their own class 2019-09-29 23:00:16 -07:00
Ruben Bermudez 4ea716cfea Merge branch 'webhook' of https://github.com/addo37/TelegramBots into addo37-webhook
# Conflicts:
#	telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/bot/AbilityBot.java
#	telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/db/DBContext.java
#	telegrambots/src/main/java/org/telegram/telegrambots/bots/DefaultAbsSender.java
#	telegrambots/src/main/java/org/telegram/telegrambots/bots/TelegramLongPollingBot.java
#	telegrambots/src/main/java/org/telegram/telegrambots/bots/TelegramWebhookBot.java
2018-07-27 01:06:23 +02:00
Abbas Abou Daya e1e829151b Remove anonymous bot instantiation in ABs, refactor webhook functions 2018-06-04 04:47:21 -04:00
Abbas Abou Daya b5bfaced7e Separate AbilityBot logic and implement Webhook 2018-05-28 18:12:31 -04:00
Abbas Abou Daya 7bee69c68d Fix wiki doc and javadoc 2018-05-23 19:11:26 -04:00
Abbas Abou Daya 889fd46834 Expose abilities and replies, add report command and reformat /commands, closes #436 2018-05-23 18:59:03 -04:00
Abbas Abou Daya 7d216a1fae Fix todos, all ability bot messages are now properly localized 2018-05-22 03:12:47 -04:00
Abbas Abou Daya a819d7f178 Cleanup and refactoring 2018-05-21 07:01:45 -04:00
davioooh 9347d064c1 Refactor localized messages retrievement 2018-05-21 05:57:43 -04:00
davioooh ab86947cc3 Fix issues
- export message codes
- standardize message codes
- format/spacing
2018-05-21 05:57:43 -04:00
davioooh bd7092921a Remove locale retrieval to avoid exception 2018-05-21 05:57:43 -04:00
davioooh c8f1c69fb2 Complete externalization of messages 2018-05-21 05:57:43 -04:00
davioooh d77887fd2c Add basic internationalization support 2018-05-21 05:57:43 -04:00
Abbas Abou Daya 677b401fc6 Check if the message is a group or super group message for GROUP_ADMIN, #390 2018-05-08 03:39:21 +03:00
Abbas Abou Daya b9da279fdf Remove group update check for GROUP_ADMIN
GetChatAdministrators only returns admins when there IS a group, there's no need to explicitly check for groups here.
2018-05-08 03:18:34 +03:00
Abbas Abou Daya dc9f34196e Make abilities case-insensitive, fix msg markdown bug and add group-admin privacy 2018-02-04 03:23:41 -05:00
Abbas Abou Daya 1f5706b525 Change global flag to always return true and make ability flags as predicates 2017-10-31 23:06:03 -04:00
Abbas Abou Daya adddadfba5 Refreshed MessageSender and added a silent sender 2017-10-28 22:15:53 -04:00
Abbas Abou Daya 8c9d3c3ad7 Fixed JDK compilation error (due to bug #JDK-8044546) 2017-07-11 21:18:40 +03:00
Abbas Abou Daya 6df6627821 Added AbilityBot module 2017-07-11 21:18:40 +03:00