Commit Graph

9 Commits

Author SHA1 Message Date
chase
05c92d4037 Use stream to scan for annotations and to execute the methods 2019-01-19 09:49:44 +01:00
chase
ad195d8d59 Add annotation to allow bot to get botSession
A method annotated with @AfterBotRegistration will be invoked after
the bot is registered.

Optionally the method can have a parameter of
type BotSession to get passed the BotSession the bot was created with.
2018-12-19 22:19:22 +01: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
Lucas Oliveira
493568649a Spring Boot autoconfiguration improvements.
Unit test refactoring, now with autoconfiguration integration testing.
Bug fix that did not initialize the bots, even with the deprecated @EnableTelegramBots
* [Removed - If users wish to disable, just inform telegrambots.enabled = false].
Upgrade Spring boot 2.0.2
2018-06-09 15:06:38 -03:00
zhaoyi
d0651e60b4 Add unit test for spring boot start configuration 2018-05-14 15:17:07 +08:00
zhaoyi
dcc4f29ddd Make longPollingBots or webHookBots in spring boot configuration 2018-05-12 14:52:57 +08:00
Roman_Meerson
6b76e79f4d Added spring boot starter module 2018-04-17 14:01:48 +04:00