Commit Graph

353 Commits

Author SHA1 Message Date
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
Ruben Bermudez
8b977fa851 Merge remote-tracking branch 'origin/dev' into dev 2017-07-20 22:26:39 +02:00
Ruben Bermudez
3c99f34532 Updates Pom and remove unused imports 2017-07-20 22:25:57 +02:00
Roman Gordeev
01175ed03d Explicit Contenttype for textBody (#274) 2017-07-20 18:55:02 +02:00
Abbas Abou Daya
8c9d3c3ad7 Fixed JDK compilation error (due to bug #JDK-8044546) 2017-07-11 21:18:40 +03:00
Abbas Abou Daya
6df6627821 Added AbilityBot module 2017-07-11 21:18:40 +03: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
97be7f72d5 Fix link 2017-06-30 14:23:31 +02:00
Ruben Bermudez
3fe39ad76a Version 3.1 2017-06-30 14:15:48 +02:00
Ruben Bermudez
dfc936d5df Fix version of extensions 2017-06-18 15:02:18 +02:00
Ruben Bermudez
082942ac9a Merges #249 2017-06-18 14:38:26 +02:00
Ruben Bermudez
4dd8205974 Merge branch 'xMandrake-dev' into dev 2017-06-18 14:24:42 +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
xDrake
799949e80f constructor correction 2017-06-10 09:08:23 +03:00
xDrake
5e5bbe4f77 new constructor in TelegramLongPollingCommandBot, to be able to set a botname in subclasses 2017-06-09 11:25:58 +03:00
Ruben Bermudez
0312a3bcb1 Version 3.0.1 2017-05-29 00:38:00 +02:00
Ruben Bermudez
f427662777 Merges #233 2017-05-29 00:32:09 +02:00
Ruben Bermudez
73958b06e4 Fix bug when setting webhook 2017-05-29 00:31:24 +02:00
Ruben Bermudez
96760f48c1 Merge pull request #221 from azhohov/dev
fix NPE
2017-05-29 00:29:08 +02:00
dapoldi
4cb53e7594 Merge pull request #240 from rubenlagus/revert-239-master
Revert "The holiday season is coming."
2017-05-19 08:57:51 +02:00
dapoldi
5f7818cffa Revert "The holiday season is coming." 2017-05-19 00:24:20 +02:00
dapoldi
630ca1325c Merge pull request #239 from rubenlagus/master
The holiday season is coming, Or ast least an API update.
2017-05-18 23:45:31 +02:00
JetCoder1
c2c217b1ee Create TimedSendLongPollingBot.java
LongPollingBot extinsion performing time-based sends obeying basic Telegram limits (no more 30 messages per second in different chats, no more 1 message per second in any single chat).
2017-05-12 17:12:01 +05:00
Ruben Bermudez
4e55995376 Closes #225 2017-05-12 01:52:47 +02:00
Ruben Bermudez
db229bb66e Support custom api url 2017-05-11 03:02:54 +02:00
Rubenlagus
48a7503c7f Api 3.0 2017-05-11 01:35:44 +02:00
Rubenlagus
e61a52dc11 Changed method to protected to allow overriding it 2017-05-09 01:53:40 +02:00
Rubenlagus
ca95a00b62 Fix constructors 2017-05-07 13:08:11 +02:00
Rubenlagus
5937a2e3a6 API 3.0 2017-05-03 01:40:55 +02:00
azhohov
7a35fb0ee8 fix NPE 2017-04-22 00:45:26 +03:00
Rubenlagus
fc712656fa Payments API 2017-03-27 00:49:08 +02:00
Rubenlagus
28197cc7c0 Merge #197 2017-02-26 03:10:28 +01:00
Ruben Bermudez
1588445060 Minor fix 2017-02-25 20:42:34 +01:00
Ruben Bermudez
7d6eab7ce2 Merge pull request #196 from rubenlagus/dev
Version 2.4.4.5
2017-02-25 20:39:14 +01:00
Rubenlagus
b5310cee57 Added changelog for 2.4.4.5 2017-02-25 20:23:11 +01:00
Rubenlagus
3e3019ff6e Update version 2.4.4.5 2017-02-25 20:13:26 +01:00
Rubenlagus
9c4b1bea68 Bug #183 2017-02-25 20:11:42 +01:00
Rubenlagus
341cca78dd Bug #183 2017-02-25 13:53:01 +01:00
Ruben Bermudez
a801e7ec4c Merge branch 'dev' of https://github.com/rubenlagus/TelegramBots into dev 2017-02-25 12:42:44 +01:00
Rubenlagus
f2ecf278cf Merge #192 2017-02-25 12:31:42 +01:00
Ruben Bermudez
657c67bb30 Merge pull request #190 from Manjago/dev
added maven-enforcer-plugin - Dependency Convergence rule
2017-02-25 12:21:07 +01:00
Ruben Bermudez
83e267a736 Merge pull request #191 from MonsterDeveloper/patch-1
Added HOW TO SEND PHOTOS BY FILE_ID into FAQ.md
2017-02-25 12:17:33 +01:00
Rubenlagus
a65e1ec97e Fix new validation 2017-02-22 23:23:55 +01:00
Andrew
78af132481 Added HOW TO SEND PHOTOS BY FILE_ID into FAQ.md 2017-02-04 12:38:17 +03:00