-
Notifications
You must be signed in to change notification settings - Fork 70
Home
Nikolay Goduiko edited this page Jan 10, 2019
·
5 revisions
Allowed methods:
| Method | Allowed type | response |
|---|---|---|
| add | AddStickerToSetMethod | bool |
| answer | AnswerCallbackQueryMethod, AnswerInlineQueryMethod, AnswerPreCheckoutQueryMethod, AnswerShippingQueryMethod | bool |
| create | CreateNewStickerSetMethod | bool |
| delete | DeleteChatPhotoMethod, DeleteChatStickerSetMethod, DeleteMessageMethod, DeleteStickerFromSetMethod, DeleteWebhookMethod | bool |
| edit | EditMessageCaptionMethod, EditMessageLiveLocationMethod, EditMessageMediaMethod, EditMessageReplyMarkupMethod, EditMessageTextMethod | bool |
| forward | ForwardMethod | MessageType |
| kick | KickChatMemberMethod | bool |
| leave | LeaveChatMethod | bool |
| pin | PinChatMessageMethod | bool |
| promote | PromoteChatMemberMethod | bool |
| restrict | RestrictChatMemberMethod | bool |
| send | SendPhotoMethod, SendAudioMethod, SendDocumentMethod, SendVideoMethod, SendAnimationMethod, SendVoiceMethod, SendVideoNoteMethod, SendGameMethod, SendInvoiceMethod, SendLocationMethod, SendVenueMethod, SendContactMethod, SendStickerMethod, SendMessageMethod | MessageType |
| set | SetChatDescriptionMethod, SetChatPhotoMethod, SetChatStickerSetMethod, SetChatTitleMethod, SetGameScoreMethod, SetStickerPositionInSetMethod, SetWebhookMethod, SetPassportDataErrorsMethod | bool |
| stop | StopMessageLiveLocationMethod | bool |
| unban | UnbanChatMemberMethod | bool |
| unpin | UnpinChatMessageMethod | bool |
| upload | uploadStickerFile | FileType |
| exportChatInviteLink | ExportChatInviteLinkMethod | string |
| sendChatAction | SendChatActionMethod | bool |
| getUpdates | GetUpdatesMethod | UpdateType[] |
| getMe | GetMeMethod | UserType |
| getUserProfilePhotos | GetUserProfilePhotosMethod | UserProfilePhotosType |
| getWebhookInfo | GetWebhookInfoMethod | WebhookInfoType |
| getChatMembersCount | GetChatMembersCountMethod | int |
| getChat | GetChatMethod | ChatType |
| getChatAdministrators | GetChatAdministratorsMethod | ChatMemberType[] |
| getChatMember | GetChatMemberMethod | ChatMemberType |
| getGameHighScores | GameHighScoreType[] | GameHighScoreType[] |
| getStickerSet | GetStickerSetMethod | StickerSetType |
| getFile | GetFileMethod | FileType |
| sendMediaGroup | sendMediaGroup | MessageType[] |
| getAbsoluteFilePath | FileType | string |
| call($method, [string $type]) | any method class, [optional expected type] | array or excepted type object |