Rename entities in class InputMedia

According to [official documentation](https://core.telegram.org/bots/api#sendphoto), field `entities` should be named as `caption_entities`.
This commit is contained in:
yangshoulai 2021-12-07 14:36:59 +08:00 committed by GitHub
parent 2212afc864
commit 9888db476a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ public abstract class InputMedia implements Validable, BotApiObject {
public static final String MEDIA_FIELD = "media"; public static final String MEDIA_FIELD = "media";
public static final String CAPTION_FIELD = "caption"; public static final String CAPTION_FIELD = "caption";
public static final String PARSEMODE_FIELD = "parse_mode"; public static final String PARSEMODE_FIELD = "parse_mode";
public static final String ENTITIES_FIELD = "entities"; public static final String ENTITIES_FIELD = "caption_entities";
/** /**
* File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), * File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended),