Commit Graph

52 Commits

Author SHA1 Message Date
ruben
c3925e035d Api version 6.6 2023-05-30 01:32:15 +01:00
Chase
402a4c46ea
Pass token in constructor (#1167) 2023-01-04 12:27:28 +01:00
Ruben Bermudez
69e4a6a149
Merge pull request #1055 from LamGC/change-exception-log-format 2022-06-15 02:26:53 +02:00
rubenlagus
ce4760d994 Allow Long setters for ChatIds 2022-06-14 22:20:22 +02:00
LamGC
80ef86b90d
Change exception log information.
Output exception details in exception handling to help developers troubleshoot problems.
At the same time, by checking whether the debug level is enabled, too many output logs in the production environment can be avoided. (I guess the original design was for this reason)
2022-04-18 11:56:33 +08:00
Victor
0ec2e32bc9 Add an access to the user in ChatMember interface 2021-07-08 15:46:41 +03:00
rubenlagus
ff6ce9f764 ApiVersion 5.3 2021-07-04 03:14:10 +01:00
rubenlagus
6653ffe937 API 5.1 2021-03-09 10:59:28 +00:00
Ruben Bermudez
7287c38444
Merge pull request #859 from Narryel/dev
add multiple reply declaration support
2021-03-06 11:15:38 +00:00
Valentin Afanasiev
39a5678543 add comments to BaseAbilityBot.java and static construction method to ReplyCollection.java 2021-01-31 22:05:52 +03:00
Valentin Afanasiev
ec4f81b94a revert indentation changes 2021-01-26 13:39:41 +03:00
Valentin Afanasiev
eea4c3adc1 revert indentation changes 2021-01-26 13:33:01 +03:00
Valentin Afanasiev
aac8afe209 add multiple reply declaration support 2021-01-25 19:57:48 +03:00
Chase22
e7cb0e6ced Inject bot instance into the reply update consumer
Also added deprecated methods to still allow the old behaviour, discarding the bot reference in that case.

The condition could have a bot instance injected as well, which would require rewriting the Flag register though.
2020-11-24 17:07:55 +01:00
rubenlagus
447c9d3f92 Update 5.0 and lombok 2020-11-03 01:32:26 +00:00
Ruben Bermudez
814955c2a6
Merge pull request #813 from christianblos/feature/ability-extension-list
Be able to add AbilityExtensions in Bot constructor
2020-10-23 00:26:26 +01:00
Ruben Bermudez
aa030fa148
Merge pull request #812 from christianblos/feature/lazy-load-abilities
Feature/lazy load abilities
2020-10-23 00:25:46 +01:00
Christian Blos
247ca5f984 Don't expose extensions in BaseAbilityBot 2020-10-08 15:46:31 +02:00
Christian Blos
b715f2a154 Be able to add AbilityExtensions in Bot constructor 2020-10-05 18:07:06 +02:00
Christian Blos
74e305c2a7 Load abilities when bot gets registered 2020-10-05 17:08:26 +02:00
Christian Blos
a106e3190c Be able to access AbilityBot via MessageContext 2020-10-02 21:57:57 +02:00
Abbas Abou Daya
402c36e6b2 Fix matching longest ability name on continuous text feature 2020-08-01 05:56:50 -07:00
Ruben Bermudez
196d0a3924
Merge pull request #785 from oskov/update-comments-for-AbilityBot
Simple comment update
2020-07-31 01:29:31 +01:00
Ruben Bermudez
280b9f2686
Merge pull request #780 from addo37/improve-token-fetch
Add customization options for command processing
2020-07-31 01:12:55 +01:00
Ruben Bermudez
4a4267768c
Merge pull request #779 from addo37/access-privacy
Ease the access modifier on getPrivacy and other auxiliary methods
2020-07-31 01:12:06 +01:00
Ruben Bermudez
fdb60e7b53
Merge pull request #778 from addo37/safe-get-user
Make getUser a safer method by returning a non-null user
2020-07-31 01:10:40 +01:00
oskov
12619422c0 Seems to have forgotten about the comment after refactoring 2020-07-23 23:13:45 +03:00
Abbas Abou Daya
4991eef1f1 Add wiki and rename no space feature 2020-07-18 01:50:16 -07:00
Abbas Abou Daya
e6aae3c282 Allow users to customize command prefix, split regex and NoSpaceText 2020-07-18 01:27:39 -07:00
Abbas Abou Daya
709ed0f212 Ease the access modifier on getPrivacy and other auxiliary methods 2020-07-18 01:07:57 -07:00
Abbas Abou Daya
5281caad39 Make getUser a safer method by returning an EMPTY_USER on null 2020-07-18 00:36:29 -07:00
Abbas Abou Daya
2c1ba312b3 Wrap reply calls with a try-catch clause to avoid dynamic exceptions 2020-07-17 22:55:25 -07:00
Abbas Abou Daya
fd91b3a2ba Fix reply flow registration when using ability definitions 2020-06-14 18:39:49 -07:00
Ruben Bermudez
28f60e3024
Merge pull request #731 from addo37/ability-stats
Add basic statistics to Abilities and Replies
2020-05-31 19:08:57 +01:00
Abbas Abou Daya
9ffc547cdf Add basic statistics to Abilities and Replies 2020-04-27 21:40:47 -07:00
Abbas Abou Daya
40c17126ae Spawn the EMPTY_USER and add the proper tests 2020-04-26 13:22:05 -07:00
Ruben Bermudez
99e9b31f40
Merge pull request #730 from addo37/replyflow-commit
Prevent loss of DB state after bot termination
2020-04-26 01:57:07 +01:00
Abbas Abou Daya
05566742c0 Fix handling of poll updates without user information 2020-04-25 17:32:38 -07:00
Abbas Abou Daya
5120595cb0 Move the commit to the end of the update pipeline 2020-02-29 16:22:48 -08:00
UnAfraid
2d27f9e60f Post merge fixes 2019-10-14 20:08:16 +03:00
Ruben Bermudez
15fe637998
Merge branch 'dev' into slf4j 2019-10-12 01:02:15 +01:00
Ruben Bermudez
1ebbc68485
Merge branch 'dev' into add-ability-toggle 2019-10-12 01:00:28 +01:00
Abbas Abou Daya
861b7f24f9 Add Abillity toggles and export default abilities to their own class 2019-09-29 23:00:16 -07:00
Abbas Abou Daya
0ff63149f7 Add ReplyFlow implementation, tests, and wiki
This commit also has a some minor test refactoring.
2019-09-25 23:25:11 -07:00
UnAfraid
ef1bd09a6a Replacing log4j with slf4j 2019-09-09 20:10:26 +03:00
rubenlagus
830b873776 Remove BotLogger 2019-07-27 13:19:54 +01:00
rubenlagus
679ad618b9 Java 11, initial version 2019-07-08 20:22:51 +01:00
Abbas Abou Daya
2f05976d0a Consolidated ExtensionTest objects and minor refactoring 2019-01-03 05:46:09 +02:00
romangraef
d515d8e44f
Added the extensions to abilities 2018-11-10 00:51:00 +01: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