Commit Graph

857 Commits

Author SHA1 Message Date
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
Chase22
2009ef411d Add timeout and update limit for long-polling updates to DefaultBotOptions
Just a little commit to make the long-polling timeout and long-polling limit configurable via the BotOptions. Mainly for Testing
2020-09-21 19:31:50 +02:00
Andrea Cavalli
d5db07d12e java 14 support 2020-09-21 11:59:34 +02:00
Mouamle
13f6b1f336 used slf4j for logging instead of exception.printStackTrace() 2020-09-08 01:18:18 +03:00
Mouamle
6fcd4d85c1 Made webhook bots print exceptions stacktrace to stderr instead of silently swallowing them. 2020-09-05 03:53:42 +03:00
Andy Costanza
f3626b7bf1 feat(spring boot): Upgrade spring boot dependency to 2.3.3.RELEASE 2020-08-25 17:25:36 +02:00
Andrea Cavalli
73b8f90ee2 Merge commit '203b26587f771f9b9bf0f97f8df04e18612a5fe5' 2020-08-21 12:35:54 +02:00
Andy Costanza
3c5163990b feat(spring boot): Upgrade spring boot dependency to 2.3.2.RELEASE
I'll fix UT too because in Spring Boot 2.3.X, ApplicationContextRunner
disables bean overriding by default. To enable it, I set
withAllowBeanDefinitionOverriding to
true.

https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.3-Release-Notes#applicationcontextrunner-disables-bean-overriding-by-default
for more informations
2020-08-11 12:29:35 +02:00
Andy Costanza
b79911b45f fix(javadoc): add missing configuration to generate javadoc
the error message before this fix was:
Failed to execute goal
org.apache.maven.plugins:maven-javadoc-plugin:3.1.0:jar (default) on
project telegrambots-meta: MavenReportException: Error while generating
Javadoc: Unable to find javadoc command: The environment variable
JAVA_HOME is not correctly set.
2020-08-11 12:17:33 +02:00
Ruben Bermudez
203b26587f
Merge pull request #788 from rubenlagus/dev
Dev
2020-08-02 11:38:03 +01:00
Ruben Bermudez
e6b9fd892f
Merge pull request #789 from addo37/fix-longest-match
Fix matching longest ability name on continuous text feature
2020-08-01 16:02:46 +01:00
Abbas Abou Daya
402c36e6b2 Fix matching longest ability name on continuous text feature 2020-08-01 05:56:50 -07:00
rubenlagus
749c6d3b6f Fixes #767, #766, #761, #763, #776, #772, #771, #780 2020-08-01 12:49:46 +01: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
Ruben Bermudez
cec61f95a1
Merge pull request #777 from addo37/prevent-reply-crash
Wrap reply calls with a try-catch clause to avoid dynamic exceptions
2020-07-31 01:09:20 +01:00
oskov
12619422c0 Seems to have forgotten about the comment after refactoring 2020-07-23 23:13:45 +03:00
Abbas Abou Daya
a419a88ce1 Add test 2020-07-18 02:04:57 -07: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
54096d2e85 Add test 2020-07-18 00:43:28 -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
2adce4685e Merge commit '1a2e7c9773dbb7d251d30f1f8e3d6538dcd92600' 2020-07-17 18:53:57 +02:00
Ruben Bermudez
023772142a
Merge pull request #763 from FireFrogSEO/master
SEND_DATA_TO_PROVIDER fieldsanf methods
2020-07-11 15:52:58 +01:00
Ruben Bermudez
427f1ee8d2
Merge pull request #761 from b1sar/master
Update README.md
2020-07-11 15:50:37 +01:00
Ruben Bermudez
f6a4489498
Merge pull request #766 from addo37/ability-replyflow
Fix reply flow registration when using ability definitions
2020-07-11 15:47:51 +01:00
Ruben Bermudez
de3246058b
Merge pull request #767 from UnAfraid/patch-2
Update FAQ.md
2020-07-11 15:46:12 +01:00
Rumen Nikiforov
7c993feaeb
Update README.md
Fixed SpringApplicationRun for spring boot starter readme as well
2020-06-15 11:53:37 +03:00
Rumen Nikiforov
129c6d0c2f
Update FAQ.md
Fixed typo in SpringApplicationRun
Fixed inconsistency in sendMessage example
Fixed link to my webhook example
2020-06-15 11:47:34 +03:00
Abbas Abou Daya
fd91b3a2ba Fix reply flow registration when using ability definitions 2020-06-14 18:39:49 -07:00
Vladimir
223c6cccc0 added SEND_PHONE_NUMBER_TO_PROVIDER and SEND_EMAIL_TO_PROVIDER fields and methods for them 2020-06-09 12:48:25 +03:00
Vladimir
03fdafd54f added SEND_PHONE_NUMBER_TO_PROVIDER and SEND_EMAIL_TO_PROVIDER fields and methods for them 2020-06-07 15:28:55 +03:00
Vladimir
504db77a7a renamed PRIVIDER_DATA_FIELD to PROVIDER_DATA_FIELD in SendInvoice.java 2020-06-07 14:59:56 +03:00
Vladimir
8f0b31d3f1
Merge pull request #1 from rubenlagus/master
update to 4.9
2020-06-07 14:17:03 +03:00
Cebrail Yılmaz
4b1783e198
Update README.md
Altough the current version is 4.9, the readme was using version 4.1.2 which made me encounter lots of bugs. Fixed it.
2020-06-07 10:59:05 +03:00
Ruben Bermudez
1a2e7c9773
Merge pull request #758 from rubenlagus/dev
Dev
2020-06-04 23:06:36 +01:00
rubenlagus
72b239e851 Update version 4.9 2020-06-04 22:18:36 +01: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
Ruben Bermudez
765c47b77b
Merge pull request #751 from addo37/fix-poll-user-v2
Fix processing updates with no user info
2020-05-31 19:08:39 +01:00
Ruben Bermudez
05db723802
Merge pull request #752 from UnAfraid/patch-1
Fixed typo in State-Machines wiki page
2020-05-31 19:08:04 +01:00
Ruben Bermudez
39af4ced4c
Merge pull request #753 from UnAfraid/cleanup/idea_project_files
Removed Bots.ipr legacy intellij project file
2020-05-31 19:07:29 +01:00
Abbas Abou Daya
202fb72c3f Handle the poll flag in the getChatId method 2020-05-09 14:02:36 -07:00
1578534726 Ported to java 11 2020-05-05 22:30:22 +02:00
Abbas Abou Daya
9ffc547cdf Add basic statistics to Abilities and Replies 2020-04-27 21:40:47 -07:00