Commit Graph

85 Commits

Author SHA1 Message Date
Timo Schulz
e51d6eaa4b fix missing blank ;) 2016-05-21 15:00:40 +02:00
Timo Schulz
3dd0b87ca0 move command bot functionality to own bot base class, to avoid api change for future releases 2016-05-21 14:56:08 +02:00
Timo Schulz
2bff35b8b9 remove AbsSender Interface from BotCommand and add reference for sending messages 2016-05-20 19:23:44 +02:00
Timo Schulz
265915daf6 bring chatId of SendMessage back to String instead of Long 2016-05-20 18:39:06 +02:00
tschulz
1bb4d12983 change chat id to chat object to be able to work with username 2016-05-20 12:03:00 +02:00
tschulz
5fe18aefa3 rename Command class and fix visibility of execute method 2016-05-20 11:56:15 +02:00
tschulz
9958d677e2 add command init character to help command response 2016-05-20 11:18:41 +02:00
tschulz
618fb80333 fix typo 2016-05-20 11:16:39 +02:00
tschulz
f49cb8b62f Modify TelegramLongPollingBot to support commands 2016-05-20 11:14:58 +02:00
tschulz
92aa4e218e Add java doc 2016-05-20 11:13:29 +02:00
tschulz
10d39077eb add chat command detection to message (properties field) 2016-05-20 11:12:48 +02:00
tschulz
f2da0a6558 Implement Command Registry 2016-05-20 11:12:22 +02:00
tschulz
2089dfbe23 Implement basic help command, which provides an overview over all registered commands 2016-05-20 11:11:38 +02:00
tschulz
91191ee63b Add method to retrieve all registered commands 2016-05-20 11:10:35 +02:00
tschulz
5d0f508b5a Create interface for the registry of all comannds of a bot 2016-05-20 11:08:16 +02:00
tschulz
f775d5c00c Create and implement basic command 2016-05-20 11:07:14 +02:00
tschulz
88ae4a7516 Make Chat id a long attribute everywhere 2016-05-20 11:02:32 +02:00
Rubenlagus
f7d7ed14bb Added new api fields 2016-05-07 18:41:48 +02:00
Rubenlagus
848c228fea Close #46 2016-05-05 23:00:08 +02:00
Rubenlagus
f92a4616b1 Merge branch 'antonu17-fix_response_creation' into dev 2016-05-05 21:25:17 +02:00
kit
4f427ba5d8 Fix response processing on methods: sendDocument sendPhoto sendVideo sendSticker sendVoice 2016-05-02 12:32:01 +06:00
kit
7f9e4494e7 Add Contact getters 2016-05-02 12:21:41 +06:00
Ruben Bermudez
0d86836e14 Merge pull request #61 from rubenlagus/dev
Fix toString method
2016-05-01 23:03:08 +02:00
Rubenlagus
66c6c5257d Fix toString method 2016-05-01 23:02:22 +02:00
Ruben Bermudez
38d3a046ff Merge pull request #60 from rubenlagus/dev
Added logger
2016-05-01 22:55:33 +02:00
Rubenlagus
b2c09a902d Added logger 2016-05-01 22:44:22 +02:00
Ruben Bermudez
aee15fffb5 Merge pull request #55 from rubenlagus/dev
Fix compile bug
2016-04-29 14:28:17 +02:00
Rubenlagus
1f1cdf5d18 Fix compile bug 2016-04-29 14:27:09 +02:00
Ruben Bermudez
52ba1afad8 Merge pull request #52 from camilosampedro/patch-1
Changed the json cahed object class to Sticker
2016-04-29 12:23:24 +02:00
Ruben Bermudez
017c4b2b1d Add global exception catch with sleep time 2016-04-28 09:15:11 +02:00
Camilo A. Sampedro Restrepo
dc23b47b23 Changed the json cahed object class to Sticker
It was generating a `InlineQueryResultCachedGif` instead of `InlineQueryResultCachedSticker`, producing a wrong behavior.
2016-04-24 22:20:42 -05:00
Rubenlagus
ffa98c5928 Closes #44
Closes #9
2016-04-22 15:19:44 +02:00
Rubenlagus
6431adfe87 Support editing messagess sent "via bot" upon editing, an empty message is returned if successful 2016-04-21 22:36:30 +02:00
Rubenlagus
a601e983ec Fix CallbackQuery bug 2016-04-21 21:29:17 +02:00
tolwi
85e3d74f47 fix_inline_response 2016-04-19 13:14:54 +03:00
Rubenlagus
1ba0502c4c Merge #30 2016-04-17 17:35:48 +02:00
Rubenlagus
08efa94fcd Merge #30 and some fixes 2016-04-17 17:34:38 +02:00
Rubenlagus
1c66511bff Add compatibility with java7
Merge #21
2016-04-17 17:10:09 +02:00
Rubenlagus
a84f073a0a Remove unneeded constructure
Merge #31
2016-04-17 17:07:13 +02:00
Rubenlagus
c1a0b25c9c Merge branch 'TerminusMKB-master' into dev 2016-04-17 16:56:54 +02:00
Rubenlagus
fe5336034a Renamed ignored exception
Merge #37
2016-04-17 16:54:08 +02:00
Rubenlagus
a5cae5ac35 Merge branch 'Vinpasso-master' into dev 2016-04-17 16:47:22 +02:00
Rubenlagus
cbe5613549 Fix error in pull requests
Merge #36
2016-04-17 16:43:27 +02:00
Vinpasso
3df8631a6d Closeable Bot Sessions
Return a Bot Session Class when registering a Bot that can be closed as
needed
Give Threads a default Name to distinguish them in Debug Mode
2016-04-17 15:50:54 +02:00
Michael Arlt
28c2f3336b fixed types integer and string
sorry, did mess up
2016-04-17 15:41:36 +02:00
Michael Arlt
9275f91b02 adding missing values 2016-04-17 15:33:41 +02:00
TerminusMKB
bd9c66fec4 Added getters and setters to AnswerCallbackQuery
Added getters to CallbackQuery
InlineKeyboardMarkup is fixed and refactored
2016-04-14 14:23:59 +03:00
Alexander Babai
62f9e49201 Message move back some methods 2016-04-12 23:53:44 +03:00
Alexander Babai
cf91e024ca TelegramBotsApi methods to builder style 2016-04-12 23:35:33 +03:00
Alexander Babai
94ea153a18 objects classes: enable/dissable methods to builder style 2016-04-12 23:31:14 +03:00