[telegram] Add support for sendVideo (MP4) and sendAnimation (GIF) (#8969)

* Add sendVideo and sendAnimation features.
* Re-order functions to keep inline with other functions.
* Readme change to trigger new build.
* Add ability to use raw file paths to send video and animations.
* Change Paths.get to Path.of as JavaDocs recommend.
* Allow absolute paths in SendPhoto methods and update readme.md
* Support for no caption with photo.
* Add absolute path support for png and webp.
* Add all file types requested.
* Remove multiple OR and only do lowercase once.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
This commit is contained in:
Matthew Skinner
2020-11-11 14:50:58 +11:00
committed by GitHub
parent 5a1428dddc
commit 7e5be7ef47
5 changed files with 236 additions and 40 deletions

View File

@@ -22,7 +22,7 @@
<dependency>
<groupId>com.github.pengrad</groupId>
<artifactId>java-telegram-bot-api</artifactId>
<version>4.4.0</version>
<version>4.9.0</version>
<scope>compile</scope>
</dependency>
<dependency>