Description
All requests should be sent to proper endpoints.
Endpoint "https://botapi.aitu.io/bot/v1/updates/" is used for the following methods:
- retrieveUpdate;
- SendMessage ;
- EditMessage;
- DeleteMessage;
- ForwardMessage;
- KickFromGroup;
- ChangeGroupAvatar;
- DeleteGroupAvatar;
- ChangeGroupTitle;
- ChangeGroupDescription;
Endpoint "https://botapi.aitu.io/bot/v1/upload/" is used for the handleUploadFiles method.
Endpoint "https://botapi.aitu.io/bot/v1/download/" is used for the handleDownloadFile method.
Endpoint "https://botapi.aitu.io/bot/v1/getMe/" is used for the getMe method.
Endpoint "https://botapi.aitu.io/bot/v1/avatar/" is used for the uploadAvatar method.
Endpoint "https://botapi.aitu.io/bot/v1/avatar/{fileId}/" is used for the downloadAvatar method. It's neccesarry to put file Id of avatar instead of {fileId} value in a endpoint string.
Endpoint "https://botapi.aitu.io/bot/v1/channels/{channelId}/" is used for the getChannelInfo method. It's neccesarry to put peer Id of a channel instead of {channelId} value in a endpoint string.
Endpoint "https://botapi.aitu.io/bot/v1/channels/{channelId}/admins/" is used for the getChannelAdmins method. It's neccesarry to put peer Id of a channel instead of {channelId} value in a endpoint string.
Endpoint "https://botapi.aitu.io/bot/v1/channels/{channelId}/messages/" is used for the getChannelMessages method. It's neccesarry to put peer Id of a channel instead of {channelId} value in a endpoint string.
Endpoint "https://botapi.aitu.io/bot/v1/user/{userId}/avatar/" is used for the getAvatars method. It's neccesarry to put peer Id of a user instead of {userId} value in a endpoint string.
Endpoint "https://botapi.aitu.io/bot/v1/webhook/" is used for the following methods: