|
14 | 14 | [![Duplicated Lines (%)][sonar-duplicated-lines-icon]][sonar-path]
|
15 | 15 | [![Security Rating][sonar-security-rating-icon]][sonar-path]
|
16 | 16 |
|
17 |
| -#### Supported Telegram Bot API v4.9 (June 4, 2020) |
| 17 | +#### Supported Telegram Bot API 5.0 (November 4, 2020) |
18 | 18 |
|
19 | 19 | ## Installation
|
20 | 20 |
|
@@ -58,41 +58,44 @@ $bot = new \TgBotApi\BotApiBase\BotApi('<bot key>', $apiClient, new \TgBotApi\Bo
|
58 | 58 |
|
59 | 59 | |Method|Allowed type|response|
|
60 | 60 | |:--|:--|:--|
|
61 |
| -|add|AddStickerToSetMethod|bool| |
62 |
| -|answer|AnswerCallbackQueryMethod, AnswerInlineQueryMethod, AnswerPreCheckoutQueryMethod, AnswerShippingQueryMethod|bool| |
63 |
| -|create|CreateNewStickerSetMethod|bool| |
64 |
| -|delete|DeleteChatPhotoMethod, DeleteChatStickerSetMethod, DeleteMessageMethod, DeleteStickerFromSetMethod, DeleteWebhookMethod|bool| |
65 |
| -|edit|EditMessageCaptionMethod, EditMessageLiveLocationMethod, EditMessageMediaMethod, EditMessageReplyMarkupMethod, EditMessageTextMethod|bool| |
66 |
| -|forward|ForwardMessageMethod|MessageType| |
67 |
| -|kick|KickChatMemberMethod|bool| |
68 |
| -|leave|LeaveChatMethod|bool| |
69 |
| -|pin|PinChatMessageMethod|bool| |
70 |
| -|promote|PromoteChatMemberMethod|bool| |
71 |
| -|restrict|RestrictChatMemberMethod|bool| |
72 |
| -|send|SendPhotoMethod, SendAudioMethod, SendDocumentMethod, SendVideoMethod, SendAnimationMethod, SendVoiceMethod, SendVideoNoteMethod, SendGameMethod, SendInvoiceMethod, SendLocationMethod, SendVenueMethod, SendContactMethod, SendStickerMethod, SendMessageMethod, SendPollMethod, SendDiceMethod|MessageType| |
73 |
| -|set|SetChatDescriptionMethod, SetChatPhotoMethod, SetChatStickerSetMethod, SetChatTitleMethod, SetGameScoreMethod, SetStickerPositionInSetMethod, SetWebhookMethod, SetPassportDataErrorsMethod, SetChatPermissionsMethod, SetChatAdministratorCustomTitleMethod, SetMyCommandMethod, SetStickerSetThumbMethod|bool| |
74 |
| -|stop|StopMessageLiveLocationMethod|bool| |
75 |
| -|stopPoll|StopPollMethod|Poll| |
76 |
| -|unban|UnbanChatMemberMethod|bool| |
77 |
| -|unpin|UnpinChatMessageMethod|bool| |
78 |
| -|upload|UploadStickerFileMethod|FileType| |
79 |
| -|exportChatInviteLink|ExportChatInviteLinkMethod|string| |
80 |
| -|sendChatAction|SendChatActionMethod|bool| |
81 |
| -|getUpdates|GetUpdatesMethod|UpdateType[]| |
82 |
| -|getMe|GetMeMethod|UserType| |
83 |
| -|getMyCommands|GetMyCommandsMethod|BotCommandType| |
84 |
| -|getUserProfilePhotos|GetUserProfilePhotosMethod|UserProfilePhotosType| |
85 |
| -|getWebhookInfo|GetWebhookInfoMethod|WebhookInfoType| |
86 |
| -|getChatMembersCount|GetChatMembersCountMethod|int| |
87 |
| -|getChat|GetChatMethod|ChatType| |
88 |
| -|getChatAdministrators|GetChatAdministratorsMethod|ChatMemberType[]| |
89 |
| -|getChatMember|GetChatMemberMethod|ChatMemberType| |
90 |
| -|getGameHighScores|GetGameHighScoresMethod|GameHighScoreType[]| |
91 |
| -|getStickerSet|GetStickerSetMethod|StickerSetType| |
92 |
| -|getFile|GetFileMethod|FileType| |
93 |
| -|sendMediaGroup|SendMediaGroupMethod|MessageType[]| |
94 |
| -|getAbsoluteFilePath|FileType|string| |
95 |
| -|call($method, [string $type])|any method class, [optional expected type]|array or excepted type object| |
| 61 | +|`add`|AddStickerToSetMethod|bool| |
| 62 | +|`answer`|AnswerCallbackQueryMethod, AnswerInlineQueryMethod, AnswerPreCheckoutQueryMethod, AnswerShippingQueryMethod|bool| |
| 63 | +|`create`|CreateNewStickerSetMethod|bool| |
| 64 | +|`delete`|DeleteChatPhotoMethod, DeleteChatStickerSetMethod, DeleteMessageMethod, DeleteStickerFromSetMethod, DeleteWebhookMethod|bool| |
| 65 | +|`edit`|EditMessageCaptionMethod, EditMessageLiveLocationMethod, EditMessageMediaMethod, EditMessageReplyMarkupMethod, EditMessageTextMethod|bool| |
| 66 | +|`forward`|ForwardMessageMethod|MessageType| |
| 67 | +|`kick`|KickChatMemberMethod|bool| |
| 68 | +|`leave`|LeaveChatMethod|bool| |
| 69 | +|`pin`|PinChatMessageMethod|bool| |
| 70 | +|`promote`|PromoteChatMemberMethod|bool| |
| 71 | +|`restrict`|RestrictChatMemberMethod|bool| |
| 72 | +|`send`|SendPhotoMethod, SendAudioMethod, SendDocumentMethod, SendVideoMethod, SendAnimationMethod, SendVoiceMethod, SendVideoNoteMethod, SendGameMethod, SendInvoiceMethod, SendLocationMethod, SendVenueMethod, SendContactMethod, SendStickerMethod, SendMessageMethod, SendPollMethod, SendDiceMethod|MessageType| |
| 73 | +|`set`|SetChatDescriptionMethod, SetChatPhotoMethod, SetChatStickerSetMethod, SetChatTitleMethod, SetGameScoreMethod, SetStickerPositionInSetMethod, SetWebhookMethod, SetPassportDataErrorsMethod, SetChatPermissionsMethod, SetChatAdministratorCustomTitleMethod, SetMyCommandMethod, SetStickerSetThumbMethod|bool| |
| 74 | +|`stop`|StopMessageLiveLocationMethod|bool| |
| 75 | +|`stopPoll`|StopPollMethod|Poll| |
| 76 | +|`unban`|UnbanChatMemberMethod|bool| |
| 77 | +|`unpin`|UnpinChatMessageMethod, UnpinAllChatMessagesMethod|bool| |
| 78 | +|`upload`|UploadStickerFileMethod|FileType| |
| 79 | +|`exportChatInviteLink`|ExportChatInviteLinkMethod|string| |
| 80 | +|`sendChatAction`|SendChatActionMethod|bool| |
| 81 | +|`getUpdates`|GetUpdatesMethod|UpdateType[]| |
| 82 | +|`getMe`|GetMeMethod|UserType| |
| 83 | +|`getMyCommands`|GetMyCommandsMethod|BotCommandType| |
| 84 | +|`getUserProfilePhotos`|GetUserProfilePhotosMethod|UserProfilePhotosType| |
| 85 | +|`getWebhookInfo`|GetWebhookInfoMethod|WebhookInfoType| |
| 86 | +|`getChatMembersCount`|GetChatMembersCountMethod|int| |
| 87 | +|`getChat`|GetChatMethod|ChatType| |
| 88 | +|`getChatAdministrators`|GetChatAdministratorsMethod|ChatMemberType[]| |
| 89 | +|`getChatMember`|GetChatMemberMethod|ChatMemberType| |
| 90 | +|`getGameHighScores`|GetGameHighScoresMethod|GameHighScoreType[]| |
| 91 | +|`getStickerSet`|GetStickerSetMethod|StickerSetType| |
| 92 | +|`getFile`|GetFileMethod|FileType| |
| 93 | +|`sendMediaGroup`|SendMediaGroupMethod|MessageType[]| |
| 94 | +|`getAbsoluteFilePath`|FileType|string| |
| 95 | +|`logOut`|LogOutMethod|bool| |
| 96 | +|`close`|CloseMethod|bool| |
| 97 | +|`copyMessage`|CopyMessageMethod|MessageIdType| |
| 98 | +|`call($method, [string $type])`|any method class, [optional expected type]|array or excepted type object| |
96 | 99 |
|
97 | 100 | Implemented all methods and types referenced by [official Api](https://core.telegram.org/bots/api)
|
98 | 101 |
|
@@ -152,7 +155,7 @@ If you discover any security related issues, please email wformps@gmail.com inst
|
152 | 155 | The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
|
153 | 156 |
|
154 | 157 | [ico-php-v]: https://img.shields.io/travis/php-v/tg-bot-api/bot-api-base.svg?style=flat-square
|
155 |
| -[ico-bot-api]: https://img.shields.io/badge/Bot%20API-4.9-blue.svg?style=flat-square |
| 158 | +[ico-bot-api]: https://img.shields.io/badge/Bot%20API-5.0-blue.svg?style=flat-square |
156 | 159 | [ico-version]: https://img.shields.io/packagist/v/tg-bot-api/bot-api-base.svg?style=flat-square
|
157 | 160 | [ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
|
158 | 161 | [ico-travis]: https://img.shields.io/travis/tg-bot-api/bot-api-base/master.svg?style=flat-square
|
|
0 commit comments