Update version to 2.3.3.2
This commit is contained in:
parent
c8aaa91187
commit
d1d8c74c98
16
README.md
16
README.md
@ -10,13 +10,11 @@ Feel free to fork this project, work on it and then make a pull request. Most of
|
||||
Please, **DO NOT PUSH ANY TOKEN OR API KEY**, I will never accept a pull request with that content.
|
||||
|
||||
## Webhooks vs GetUpdates
|
||||
Both ways are supported (but I still didn't tested webhooks).
|
||||
|
||||
I recommend using getUpdates methods.
|
||||
Both ways are supported, but I recommend long polling method.
|
||||
|
||||
## Usage
|
||||
|
||||
Just import add the library to your project using [Maven, Gradly, ...](https://jitpack.io/#rubenlagus/TelegramBots/v2.3.3.1) or download the jar(including all dependencies) from [here](https://github.com/rubenlagus/TelegramBots/releases/tag/v2.3.3.1)
|
||||
Just import add the library to your project using [Maven, Gradly, ...](https://jitpack.io/#rubenlagus/TelegramBots/v2.3.3.2) or download the jar(including all dependencies) from [here](https://github.com/rubenlagus/TelegramBots/releases/tag/v2.3.3.2)
|
||||
|
||||
In order to use Long Polling mode, just create your own bot extending `org.telegram.telegrambots.bots.TelegramLongPollingBot`.
|
||||
|
||||
@ -51,15 +49,15 @@ Once done, you just need to creat a `org.telegram.telegrambots.TelegramBotsApi`a
|
||||
## Example bots
|
||||
Open them and send them */help* command to get some information about their capabilities:
|
||||
|
||||
https://telegram.me/weatherbot
|
||||
https://telegram.me/weatherbot (**Use custom keyboards**)
|
||||
|
||||
https://telegram.me/directionsbot
|
||||
https://telegram.me/directionsbot (**Basic messages**)
|
||||
|
||||
https://telegram.me/filesbot
|
||||
https://telegram.me/filesbot (**Send files by file_id**)
|
||||
|
||||
https://telegram.me/TGlanguagesbot
|
||||
https://telegram.me/TGlanguagesbot (**Send files uploding them**)
|
||||
|
||||
https://telegram.me/RaeBot
|
||||
https://telegram.me/RaeBot (**Inline support**)
|
||||
|
||||
You can see code for those bots at [TelegramBotsExample](https://github.com/rubenlagus/TelegramBotsExample) project.
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
# How to use TelegramBots with Eclipse
|
||||
|
||||
If you **don't** need to modify the sources, you can just download the jar file from [here](https://github.com/rubenlagus/TelegramBots/releases) and import it as an external library.
|
||||
|
||||
If you need to modify the sources, follow these steps:
|
||||
|
||||
### Step 1: Install Maven
|
||||
To get started, you need to install the Maven-Plugin for Eclipse. Click on Help > Eclipse Marketplace. After it finished loading, search for “Maven”.
|
||||
@ -16,11 +19,9 @@ Now let’s setup the project-folder. Go to your Eclipse-Workspace and create a
|
||||
To import your project into the workspace you have to go to File > Import > (Folder) Maven > Existing Maven Projects > Next. Choose the folder, you have created in Step 3. In my case: **“TelegramBotApi”**. Click on finish and let Maven import the dependencies.
|
||||
|
||||
### Step 5: Setting the compliance level
|
||||
In this last step you need to change the Compiler compliance level. To do this right-click on your Project (in my case **“TelegramBotApi”**) > Properties > Java Compiler. Uncheck the “Use compliance from…” if necessary and set it to 1.7
|
||||
In this last step you need to change the Compiler compliance level. To do this right-click on your Project (in my case **“TelegramBotApi”**) > Properties > Java Compiler. Uncheck the “Use compliance from…” if necessary and set it to 1.8
|
||||
|
||||
*Now you are done. Everything should work fine. You need to set your Bot-Token in the BotConfig.java, afterwards you can run Main.java to check.*
|
||||
|
||||
**For a better intstruction sheet, visit [Google Drive]**
|
||||
*Now you are done. Everything should work fine.*
|
||||
|
||||
[Google Drive]:https://goo.gl/5jd40w
|
||||
[here]:https://github.com/rubenlagus/TelegramBots/archive/master.zip
|
||||
|
Loading…
Reference in New Issue
Block a user