Ruben Bermudez
92c7b1c3ce
Merge pull request #1070 from lacinoire/add-test
...
Add test for MapDBVar.toString
2022-06-15 01:01:44 +02:00
Carolin Brandt
91de0dd3a3
Add test for MapDBVar.toString
2022-05-18 16:33:09 +02:00
AndreicaRadu
3b080a149a
Wrong assertion always true(compares same object)
...
Probably due to carelessness the same object is compared and the assertion is always true. Sonarlint raised this issue.
2022-05-08 18:16:04 +03:00
Ruben
e779402e74
Api Version 6.0
2022-04-17 20:40:17 +01:00
Victor
aff5385685
Fix ability bot test
2021-07-08 17:42:27 +03:00
rubenlagus
ff6ce9f764
ApiVersion 5.3
2021-07-04 03:14:10 +01:00
Shang Jihao
d3e58de851
fix issue 869
2021-04-25 18:09:24 +08: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
rubenlagus
3275c10913
More cleanup
2020-10-31 17:43:32 +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
3f07bfdff1
Updated ExtensionTest and wiki
2020-10-08 16:11:45 +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
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
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
Abbas Abou Daya
a419a88ce1
Add test
2020-07-18 02:04:57 -07:00
Abbas Abou Daya
54096d2e85
Add test
2020-07-18 00:43:28 -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
202fb72c3f
Handle the poll flag in the getChatId method
2020-05-09 14:02:36 -07: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
rubenlagus
7cfcca3ae3
Fix error importing project
2019-11-19 00:42:17 +00:00
Ruben Bermudez
1ebbc68485
Merge branch 'dev' into add-ability-toggle
2019-10-12 01:00:28 +01:00
Ruben Bermudez
d1f060fb04
Merge pull request #668 from addo37/add-replyflow
...
Add state machine capability to AbilityBot via ReplyFlow
2019-10-08 23:08:48 +01:00
Ruben Bermudez
51df90464e
Merge pull request #666 from addo37/fix-execute-async
...
Fix executeAsync in SilentSender to properly call sender.executeAsync
2019-10-08 23:07:25 +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
Abbas Abou Daya
ed7333a21e
Fix executeAsync in SilentSender to properly call sender.executeAsync
2019-09-16 23:40:20 -07:00
Abbas Abou Daya
aa3448544e
Support backup and recovery of db vars
2019-09-16 22:37:16 -07:00
Abbas Abou Daya
c633f1fcc2
Modified tests to accommodate JUnit5 and Mockito API changes
2019-07-08 23:18:08 -07:00
rubenlagus
7b5acf0987
Update travis yalm
2019-07-08 20:37:04 +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
159de38b29
added tests for ability extension functionality
2018-11-10 22:07:41 +01:00
Ruben Bermudez
7daebe1318
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:04:51 +02:00
chmilevfa
753d1d2ed8
Fixes after merge
2018-07-16 19:54:26 +02:00
chmilevfa
ad3dbfdd58
Merge branch 'dev' into java9-support
...
# Conflicts:
# telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/bot/AbilityBot.java
# telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/objects/EndUser.java
# telegrambots-abilities/src/main/java/org/telegram/abilitybots/api/objects/MessageContext.java
# telegrambots-spring-boot-starter/src/main/java/org/telegram/telegrambots/starter/TelegramBotStarterConfiguration.java
# telegrambots/src/main/java/org/telegram/telegrambots/bots/DefaultBotOptions.java
2018-07-16 19:37:30 +02:00
chmilevfa
db9ae4f586
telegrambots-meta java 9 supported
2018-07-08 01:41:21 +02:00
Abbas Abou Daya
b5bfaced7e
Separate AbilityBot logic and implement Webhook
2018-05-28 18:12:31 -04:00
Abbas Abou Daya
714857555d
Enhance DBContext with a single variable getter, pushes forward #425
2018-05-27 04:16:19 -04:00