Commit Graph

172 Commits

Author SHA1 Message Date
rubenlagus
95216b90c5 Pom cleanup 2020-11-03 03:04:14 +00:00
Ruben Bermudez
ab00b182e8 Remove Guice 2020-11-03 02:57:36 +00:00
rubenlagus
fb5626de7a CompletableFuture support 2020-11-03 02:24:07 +00: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
rubenlagus
ac83b5d517 Update version 2020-10-28 22:16:13 +00:00
Ruben Bermudez
02674a2a39
Merge pull request #804 from Chase22/configure-longpolling
Add timeout and limit for long-polling updates to DefaultBotOptions
2020-10-21 19:34:23 +01: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
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
rubenlagus
749c6d3b6f Fixes #767, #766, #761, #763, #776, #772, #771, #780 2020-08-01 12:49:46 +01:00
rubenlagus
72b239e851 Update version 4.9 2020-06-04 22:18:36 +01:00
rubenlagus
f84ec0b020 Version 4.8.1 2020-04-26 02:11:41 +01:00
Ruben Bermudez
bd0c96f5e0
Merge pull request #719 from galimru/dev
The fix to workaround OpenJDK bug which throw internal error
2020-04-26 00:48:33 +01:00
rubenlagus
571d58e13f Update version Api 4.8 2020-04-24 09:03:23 +01:00
Ruben Bermudez
14633b4040 Update version Api 4.7 2020-04-01 09:10:13 +01:00
galimru
1b18b1ccdb unwrap cause from internal exception and prevent from breaking thread (ref #629) 2020-01-28 12:59:27 +04:00
galimru
55e27c1167 added the fix to workaround openjdk bug which thrown internal error (ref #629) 2020-01-27 21:15:04 +04:00
rubenlagus
d61ade0487 Update 4.6 2020-01-23 23:23:29 +00:00
rubenlagus
6b1cea5e82 Update version 4.5 2019-12-31 03:36:57 +01:00
Eugene Kortov
ff96318fef Add DI for TelegramFileDownloader, fix it for proxy usage
- add DI for TelegramFileDownloader
- replace volatile variables with final
2019-11-20 16:45:38 +04:00
Ruben Bermudez
27649a99cf Update dependencies 2019-11-19 01:01:49 +00:00
Ruben Bermudez
0cbc21b142 Update version 4.4.0.2 2019-11-19 00:43:25 +00:00
rubenlagus
44c814256d Bug fixes and pom dependencies upgrades 2019-11-19 00:43:21 +00:00
rubenlagus
7cfcca3ae3 Fix error importing project 2019-11-19 00:42:17 +00:00
Ruben Bermudez
15fe637998
Merge branch 'dev' into slf4j 2019-10-12 01:02:15 +01:00
UnAfraid
ef1bd09a6a Replacing log4j with slf4j 2019-09-09 20:10:26 +03:00
nagorny
afe35b4b14 Fixed #652 2019-08-24 18:57:34 +03:00
rubenlagus
b19ae64899 Fix text to Junit5 2019-07-29 00:24:30 +01:00
Ruben Bermudez
d7875bba34 Merge branch 'Chase22-Feature/Refactor-file-download' into java11 2019-07-28 23:47:04 +01:00
Ruben Bermudez
e551c64eea Merge branch 'Feature/Refactor-file-download' of https://github.com/Chase22/TelegramBots into Chase22-Feature/Refactor-file-download 2019-07-28 23:38:50 +01:00
rubenlagus
87bd7aefd2 Update version in poms 2019-07-28 21:27:12 +01:00
rubenlagus
830b873776 Remove BotLogger 2019-07-27 13:19:54 +01:00
rubenlagus
04248e64a7 Update pom to support earlier versions as well 2019-07-08 20:42:42 +01:00
rubenlagus
679ad618b9 Java 11, initial version 2019-07-08 20:22:51 +01:00
Ruben Bermudez
7c11293d07 Fix #628 2019-06-15 18:10:27 +01:00
Ruben Bermudez
7c64bf5f1b Update version 2019-06-08 20:39:08 +01:00
Ruben Bermudez
25e69f8055 Closes #625 2019-06-08 20:33:28 +01:00
Rubenlagus
b3914c5e76 Api version 4.3 2019-06-01 12:50:17 +01:00
Ruben Bermudez
d78acbdda0 Update poms and fix guava 2019-04-05 00:52:35 +01:00
Ruben Bermudez
3861b29b25 Improves #498 2019-04-03 02:24:15 +01:00
chase
ed18c2c265 Add test for TelegramFileDownloader 2019-03-26 22:39:54 +01:00
chase
ef0d78eb4c Move TelegramFileDownloader and finish implementation
The fileDownloader now offers all necessary methods. Still needs some
polishing
2019-03-26 22:39:36 +01:00
chase
a317001d4b Add TelegramFileDownloader
Add a seperate file downloader to look at the download code more
isolated. Might be merged back into DefaultAbsSender later
2019-03-24 20:22:55 +01:00
Rubenlagus
1883320445 Update versions 2019-01-27 23:37:46 +00:00
Ruben Bermudez
261384b9d7 Update more unsafe dependencies 2019-01-27 23:36:57 +00:00
Rubenlagus
f998cc2509 Update versions 2019-01-02 16:19:43 +01:00
Rubenlagus
e203abfab5 Update versions 2019-01-02 16:12:05 +01:00
Ruben Bermudez
293d903083 Fix #563 2019-01-02 15:56:45 +01:00
Ruben Bermudez
885a2b69ff Merge branch 'typo-fix' of https://github.com/aNNiMON/TelegramBots into aNNiMON-typo-fix 2019-01-02 15:04:53 +01:00
Erik-Berndt Scheper
28740da0df Update dependencies to fix https://github.com/rubenlagus/TelegramBots/issues/547 2018-11-14 07:09:41 +01:00
Victor
ce05d68e81 Fix wrong class and method names 2018-11-07 12:34:50 +02:00
ezachateyskiy
584b9d5f98
Fix wrong path for SendAnimation command 2018-09-15 02:07:17 +03:00
Ruben Bermudez
f415afb568 #Fix 507 2018-08-21 21:27:54 +01:00
Ruben Bermudez
7f8df47f0b Update version 4.1 2018-08-21 20:59:55 +01:00
Ruben Bermudez
e52b7c48a7 Update version 2018-08-09 02:50:04 +02: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
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
Ruben Bermudez
a75ca5f08d Version 4.0.0 2018-07-27 00:27:26 +02:00
chmilevfa
0357fdb137 Properly update version to 3.6.2 2018-07-16 19:43:45 +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
e1e829151b Remove anonymous bot instantiation in ABs, refactor webhook functions 2018-06-04 04:47:21 -04:00
AzZu
ff73a43337 Update version to 3.6.2
Cause new version does not support the old methods of enabling a proxy
2018-05-06 23:32:33 +03:00
AzZu
6087b37483 remove unused imports 2018-05-06 23:32:06 +03:00
AzZu
346a9dc045 added proxy feature
So now, it's support http, socks4 and socks5 proxys
2018-05-06 23:31:48 +03:00
AzZu
95dd4e3a3f remove http proxy feature
Cause apache.http package does not provide socks proxy feature
2018-05-06 23:31:33 +03:00
Ruben Bermudez
28a9cf1fdb Version 3.6.1 2018-04-20 01:44:04 +02:00
Vyacheslav N. Boyko
28f80e1bcd reworked proxy using 2018-04-17 11:46:48 +03:00
Vyacheslav N. Boyko
b9c32c55d8 implemented authorization via http proxy 2018-04-16 18:01:00 +03:00
Vyacheslav N. Boyko
378c8aaddc implemented authorization via http proxy 2018-04-16 17:58:51 +03:00
Ruben Bermudez
6db6c4bf0d Update version 3.6 2018-02-14 20:36:22 +01:00
Ruben Bermudez
7d6fdcbf69 Merge branch 'SocketException' of https://github.com/myplacedk/TelegramBots into myplacedk-SocketException 2018-02-13 21:51:07 +01:00
Javier Cardona
a1a8c460e2 #336 Added shutdown call for execution service to default long polling bot 2017-11-21 13:14:12 -06:00
Niels Ulrik Andersen
e2aed55b11 Clean up a bit in DefaultBotSession 2017-11-19 16:59:23 +01:00
Niels Ulrik Andersen
4cf29bd75f Clean up some thread usage, seems to close #168. 2017-11-19 12:41:38 +01:00
Ruben Bermudez
49c0fef3c5 Update version 3.5 2017-11-17 15:47:22 +01:00
ng1905
0132f25178
Fix if statement
Missing ')'
2017-11-06 07:19:11 +01:00
ng1905
216e910411
Do not log stack trace when stopping bot
When stopping a LongPollingBot, no exception should be logged due to closing the socket.
2017-11-06 07:11:22 +01:00
Ruben Bermudez
babb9d8be5 Update API version 3.4 2017-10-11 19:27:12 +02:00
Ruben Bermudez
9317c6f5a9 Merge pull request #284 from vantuz-subhuman/#269
#269 Fixed update queue polling order and added `TelegramBatchLongPollingBot`
2017-10-06 18:23:10 +02:00
vantuz-subhuman
cb92eca883 #269: Deleted TelegramBatchLongPollingBot, added onUpdatesReceived method to basic LongPollingBot interface 2017-09-21 00:46:41 +03:00
Ruben Bermudez
06c55a9c74 Update API version 3.3 2017-08-23 09:06:32 +02:00
vsubhuman
0fb556518a #269 Extracted UpdatesSupplier insede DefaultBotSession and created tests 2017-08-03 13:29:02 +03:00
vsubhuman
fefe0cff05 #269 Added TelegramBatchLongPollingBotTest 2017-08-03 12:19:19 +03:00
vsubhuman
5741e4ba97 #269 Fixed update queue polling order and added TelegramBatchLongPollingBot 2017-08-03 00:30:51 +03:00
Ruben Bermudez
ffcdbd126e Update version 3.2 2017-07-21 16:17:48 +02:00
Ruben Bermudez
8183b77fce Merge remote-tracking branch 'origin/dev' into dev 2017-07-20 22:38:06 +02:00
Ruben Bermudez
c90151d1a7 Closes #270 2017-07-20 22:37:19 +02:00
Roman Golyshev
cbcfab5d1e Refactor default abs sender (#272)
* refactor-default-abs-sender: move all returns to `try` scope

- it makes clear that return would not happen if some exception has been thrown

* refactor-default-abs-sender: extract `sendHttpPostRequest` method

* refactor-default-abs-sender: inline usage of `sendHttpPostRequest` in most occurrences

* refactor-default-abs-sender: extract creation of `HttpPost` with configuration to method

* refactor-default-abs-sender: rearrange code to ease up refactoring

* refactor-default-abs-sender: extract `sendMethodRequest` method

* refactor-default-abs-sender: move temporary file names to variables

* refactor-default-abs-sender: extract files downloading to separate methods

* refactor-default-abs-sender: extract creation of `Runnable` for async file download to method

* refactor-default-abs-sender: extract `assertParamNotNull` method

* refactor-default-abs-sender: rename `tryToDownloadToTemporaryFile` method
2017-07-20 22:28:59 +02:00
Roman Gordeev
01175ed03d Explicit Contenttype for textBody (#274) 2017-07-20 18:55:02 +02:00
Ruben Bermudez
0e6e9e7e99 Closes #266 2017-07-10 02:16:21 +02:00
Ruben Bermudez
38c99cb78d Closes #264 2017-07-09 02:48:49 +02:00
Ruben Bermudez
356034f324 Merges #256 2017-06-30 14:32:34 +02:00
Ruben Bermudez
3fe39ad76a Version 3.1 2017-06-30 14:15:48 +02:00
Ruben Bermudez
0a7180fb36 Fix TODO 2017-06-18 05:38:23 +02:00
Ruben Bermudez
0ec6b55216 Version 3.0.2
Create new extensions module
2017-06-18 05:34:13 +02:00
Ruben Bermudez
2113944180 Merge branch 'dev' of https://github.com/rubenlagus/TelegramBots into dev 2017-06-18 05:01:24 +02:00
Ruben Bermudez
30f5bff40c Close #250 2017-06-18 05:00:07 +02:00
Ruben Bermudez
ad2b7e485e Merge pull request #230 from JetCoder1/dev
Create TimedSendLongPollingBot.java
2017-06-18 04:50:17 +02:00