diff --git a/documents/functions/channels.md b/documents/functions/channels.md index f2681c6..fe08fcc 100644 --- a/documents/functions/channels.md +++ b/documents/functions/channels.md @@ -40,8 +40,6 @@ * **Invite to channel** - [TelegramCore::channelsInviteToChannel](methods/invitetochannel.md) -* **Kick from channel** - [TelegramCore::channelsKickFromChannel](methods/kickfromchannel.md) - * **Export invite** - [TelegramCore::channelsExportInvite](methods/exportinvite.md) * **Delete channel** - [TelegramCore::channelsDeleteChannel](methods/deletechannel.md) @@ -56,3 +54,7 @@ * **Get admined public channels** - [TelegramCore::channelsGetAdminedPublicChannels](methods/getadminedpublicchannels.md) +* **Edit banned** - [TelegramCore::channelsEditBanned](methods/editbanned.md) + +* **Get admin log** - [TelegramCore::channelsGetAdminLog](methods/getadminlog.md) + diff --git a/documents/functions/index.md b/documents/functions/index.md index 54ed102..a2c270d 100644 --- a/documents/functions/index.md +++ b/documents/functions/index.md @@ -12,6 +12,8 @@ * [Help](help.md) +* [Langpack](langpack.md) + * [Messages](messages.md) * [Payments](payments.md) @@ -20,6 +22,8 @@ * [Photos](photos.md) +* [Stickers](stickers.md) + * [Updates](updates.md) * [Upload](upload.md) diff --git a/documents/functions/langpack.md b/documents/functions/langpack.md new file mode 100644 index 0000000..67a4483 --- /dev/null +++ b/documents/functions/langpack.md @@ -0,0 +1,12 @@ +# Langpack + +## Methods: + +* **Get lang pack** - [TelegramCore::langpackGetLangPack](methods/getlangpack.md) + +* **Get strings** - [TelegramCore::langpackGetStrings](methods/getstrings.md) + +* **Get difference** - [TelegramCore::langpackGetDifference](methods/getdifference.md) + +* **Get languages** - [TelegramCore::langpackGetLanguages](methods/getlanguages.md) + diff --git a/documents/functions/messages.md b/documents/functions/messages.md index 0f8c394..058e99f 100644 --- a/documents/functions/messages.md +++ b/documents/functions/messages.md @@ -172,3 +172,5 @@ * **Set bot precheckout results** - [TelegramCore::messagesSetBotPrecheckoutResults](methods/setbotprecheckoutresults.md) +* **Upload media** - [TelegramCore::messagesUploadMedia](methods/uploadmedia.md) + diff --git a/documents/functions/methods/addstickertoset.md b/documents/functions/methods/addstickertoset.md new file mode 100644 index 0000000..aa93a7a --- /dev/null +++ b/documents/functions/methods/addstickertoset.md @@ -0,0 +1,57 @@ +# Stickers.addStickerToSet + +## Function: + +TelegramCore::stickersAddStickerToSet + +## Schema: + +```c++ +stickers.addStickerToSet#8653febe stickerset:InputStickerSet sticker:InputStickerSetItem = messages.StickerSet; +``` +## Parameters: + +|Name|Type|Default| +|----|----|-------| +|stickerset|[InputStickerSet](../../types/inputstickerset.md)|| +|sticker|[InputStickerSetItem](../../types/inputstickersetitem.md)|| +|callBack|Callback<[MessagesStickerSet](../../types/messagesstickerset.md)>|0| +|timeout|qint32|TelegramCore::timeOut()| + +## Callback Result: + +|Name|Type| +|----|----| +|msgId|qint64| +|result|[MessagesStickerSet](../../types/messagesstickerset.md)| +|error|TelegramCore::CallbackError| + +## Signals: + +```c++ +addStickerToSetAnswer(qint64 msgId, const MessagesStickerSet & result) +``` +```c++ +addStickerToSetError(qint64 msgId, qint32 errorCode, const QString &errorText) +``` + +## Events: + +```c++ +onAddStickerToSetAnswer(qint64 msgId, const MessagesStickerSet & result) +``` +```c++ +onAddStickerToSetError(qint64 msgId, qint32 errorCode, const QString &errorText) +``` + +## Macros: + +* TG_ADD_STICKER_TO_SET_CALLBACK + +## Examples: + +```c++ +tg->addStickerToSet(stickerset, sticker, [=](TG_ADD_STICKER_TO_SET_CALLBACK){ + ... +}, 30000); +``` diff --git a/documents/functions/methods/changestickerposition.md b/documents/functions/methods/changestickerposition.md new file mode 100644 index 0000000..cb15e4f --- /dev/null +++ b/documents/functions/methods/changestickerposition.md @@ -0,0 +1,57 @@ +# Stickers.changeStickerPosition + +## Function: + +TelegramCore::stickersChangeStickerPosition + +## Schema: + +```c++ +stickers.changeStickerPosition#4ed705ca sticker:InputDocument position:int = Bool; +``` +## Parameters: + +|Name|Type|Default| +|----|----|-------| +|sticker|[InputDocument](../../types/inputdocument.md)|| +|position|qint32|| +|callBack|Callback<bool>|0| +|timeout|qint32|TelegramCore::timeOut()| + +## Callback Result: + +|Name|Type| +|----|----| +|msgId|qint64| +|result|bool| +|error|TelegramCore::CallbackError| + +## Signals: + +```c++ +changeStickerPositionAnswer(qint64 msgId, bool result) +``` +```c++ +changeStickerPositionError(qint64 msgId, qint32 errorCode, const QString &errorText) +``` + +## Events: + +```c++ +onChangeStickerPositionAnswer(qint64 msgId, bool result) +``` +```c++ +onChangeStickerPositionError(qint64 msgId, qint32 errorCode, const QString &errorText) +``` + +## Macros: + +* TG_CHANGE_STICKER_POSITION_CALLBACK + +## Examples: + +```c++ +tg->changeStickerPosition(sticker, position, [=](TG_CHANGE_STICKER_POSITION_CALLBACK){ + ... +}, 30000); +``` diff --git a/documents/functions/methods/createstickerset.md b/documents/functions/methods/createstickerset.md new file mode 100644 index 0000000..a5f4f10 --- /dev/null +++ b/documents/functions/methods/createstickerset.md @@ -0,0 +1,60 @@ +# Stickers.createStickerSet + +## Function: + +TelegramCore::stickersCreateStickerSet + +## Schema: + +```c++ +stickers.createStickerSet#9bd86e6a flags:# masks:flags.0?true user_id:InputUser title:string short_name:string stickers:Vector = messages.StickerSet; +``` +## Parameters: + +|Name|Type|Default| +|----|----|-------| +|masks|bool|| +|userId|[InputUser](../../types/inputuser.md)|| +|title|QString|| +|shortName|QString|| +|stickers|QList<[InputStickerSetItem](../../types/inputstickersetitem.md)>|| +|callBack|Callback<[MessagesStickerSet](../../types/messagesstickerset.md)>|0| +|timeout|qint32|TelegramCore::timeOut()| + +## Callback Result: + +|Name|Type| +|----|----| +|msgId|qint64| +|result|[MessagesStickerSet](../../types/messagesstickerset.md)| +|error|TelegramCore::CallbackError| + +## Signals: + +```c++ +createStickerSetAnswer(qint64 msgId, const MessagesStickerSet & result) +``` +```c++ +createStickerSetError(qint64 msgId, qint32 errorCode, const QString &errorText) +``` + +## Events: + +```c++ +onCreateStickerSetAnswer(qint64 msgId, const MessagesStickerSet & result) +``` +```c++ +onCreateStickerSetError(qint64 msgId, qint32 errorCode, const QString &errorText) +``` + +## Macros: + +* TG_CREATE_STICKER_SET_CALLBACK + +## Examples: + +```c++ +tg->createStickerSet(masks, user_id, title, short_name, stickers, [=](TG_CREATE_STICKER_SET_CALLBACK){ + ... +}, 30000); +``` diff --git a/documents/functions/methods/editadmin.md b/documents/functions/methods/editadmin.md index d4699f0..b19165d 100644 --- a/documents/functions/methods/editadmin.md +++ b/documents/functions/methods/editadmin.md @@ -7,7 +7,7 @@ TelegramCore::channelsEditAdmin ## Schema: ```c++ -channels.editAdmin#eb7611d0 channel:InputChannel user_id:InputUser role:ChannelParticipantRole = Updates; +channels.editAdmin#20b88214 channel:InputChannel user_id:InputUser admin_rights:ChannelAdminRights = Updates; ``` ## Parameters: @@ -15,7 +15,7 @@ channels.editAdmin#eb7611d0 channel:InputChannel user_id:InputUser role:ChannelP |----|----|-------| |channel|[InputChannel](../../types/inputchannel.md)|| |userId|[InputUser](../../types/inputuser.md)|| -|role|[ChannelParticipantRole](../../types/channelparticipantrole.md)|| +|adminRights|[ChannelAdminRights](../../types/channeladminrights.md)|| |callBack|Callback<[UpdatesType](../../types/updatestype.md)>|0| |timeout|qint32|TelegramCore::timeOut()| @@ -52,7 +52,7 @@ onEditAdminError(qint64 msgId, qint32 errorCode, const QString &errorText) ## Examples: ```c++ -tg->editAdmin(channel, user_id, role, [=](TG_EDIT_ADMIN_CALLBACK){ +tg->editAdmin(channel, user_id, admin_rights, [=](TG_EDIT_ADMIN_CALLBACK){ ... }, 30000); ``` diff --git a/documents/functions/methods/editbanned.md b/documents/functions/methods/editbanned.md new file mode 100644 index 0000000..c795c12 --- /dev/null +++ b/documents/functions/methods/editbanned.md @@ -0,0 +1,58 @@ +# Channels.editBanned + +## Function: + +TelegramCore::channelsEditBanned + +## Schema: + +```c++ +channels.editBanned#bfd915cd channel:InputChannel user_id:InputUser banned_rights:ChannelBannedRights = Updates; +``` +## Parameters: + +|Name|Type|Default| +|----|----|-------| +|channel|[InputChannel](../../types/inputchannel.md)|| +|userId|[InputUser](../../types/inputuser.md)|| +|bannedRights|[ChannelBannedRights](../../types/channelbannedrights.md)|| +|callBack|Callback<[UpdatesType](../../types/updatestype.md)>|0| +|timeout|qint32|TelegramCore::timeOut()| + +## Callback Result: + +|Name|Type| +|----|----| +|msgId|qint64| +|result|[UpdatesType](../../types/updatestype.md)| +|error|TelegramCore::CallbackError| + +## Signals: + +```c++ +editBannedAnswer(qint64 msgId, const UpdatesType & result) +``` +```c++ +editBannedError(qint64 msgId, qint32 errorCode, const QString &errorText) +``` + +## Events: + +```c++ +onEditBannedAnswer(qint64 msgId, const UpdatesType & result) +``` +```c++ +onEditBannedError(qint64 msgId, qint32 errorCode, const QString &errorText) +``` + +## Macros: + +* TG_EDIT_BANNED_CALLBACK + +## Examples: + +```c++ +tg->editBanned(channel, user_id, banned_rights, [=](TG_EDIT_BANNED_CALLBACK){ + ... +}, 30000); +``` diff --git a/documents/functions/methods/getadminlog.md b/documents/functions/methods/getadminlog.md new file mode 100644 index 0000000..ed8adc9 --- /dev/null +++ b/documents/functions/methods/getadminlog.md @@ -0,0 +1,62 @@ +# Channels.getAdminLog + +## Function: + +TelegramCore::channelsGetAdminLog + +## Schema: + +```c++ +channels.getAdminLog#33ddf480 flags:# channel:InputChannel q:string events_filter:flags.0?ChannelAdminLogEventsFilter admins:flags.1?Vector max_id:long min_id:long limit:int = channels.AdminLogResults; +``` +## Parameters: + +|Name|Type|Default| +|----|----|-------| +|channel|[InputChannel](../../types/inputchannel.md)|| +|q|QString|| +|eventsFilter|[ChannelAdminLogEventsFilter](../../types/channeladminlogeventsfilter.md)|| +|admins|QList<[InputUser](../../types/inputuser.md)>|| +|maxId|qint64|| +|minId|qint64|| +|limit|qint32|| +|callBack|Callback<[ChannelsAdminLogResults](../../types/channelsadminlogresults.md)>|0| +|timeout|qint32|TelegramCore::timeOut()| + +## Callback Result: + +|Name|Type| +|----|----| +|msgId|qint64| +|result|[ChannelsAdminLogResults](../../types/channelsadminlogresults.md)| +|error|TelegramCore::CallbackError| + +## Signals: + +```c++ +getAdminLogAnswer(qint64 msgId, const ChannelsAdminLogResults & result) +``` +```c++ +getAdminLogError(qint64 msgId, qint32 errorCode, const QString &errorText) +``` + +## Events: + +```c++ +onGetAdminLogAnswer(qint64 msgId, const ChannelsAdminLogResults & result) +``` +```c++ +onGetAdminLogError(qint64 msgId, qint32 errorCode, const QString &errorText) +``` + +## Macros: + +* TG_GET_ADMIN_LOG_CALLBACK + +## Examples: + +```c++ +tg->getAdminLog(channel, q, events_filter, admins, max_id, min_id, limit, [=](TG_GET_ADMIN_LOG_CALLBACK){ + ... +}, 30000); +``` diff --git a/documents/functions/methods/getlangpack.md b/documents/functions/methods/getlangpack.md new file mode 100644 index 0000000..5e2f1fc --- /dev/null +++ b/documents/functions/methods/getlangpack.md @@ -0,0 +1,56 @@ +# Langpack.getLangPack + +## Function: + +TelegramCore::langpackGetLangPack + +## Schema: + +```c++ +langpack.getLangPack#9ab5c58e lang_code:string = LangPackDifference; +``` +## Parameters: + +|Name|Type|Default| +|----|----|-------| +|langCode|QString|| +|callBack|Callback<[LangPackDifference](../../types/langpackdifference.md)>|0| +|timeout|qint32|TelegramCore::timeOut()| + +## Callback Result: + +|Name|Type| +|----|----| +|msgId|qint64| +|result|[LangPackDifference](../../types/langpackdifference.md)| +|error|TelegramCore::CallbackError| + +## Signals: + +```c++ +getLangPackAnswer(qint64 msgId, const LangPackDifference & result) +``` +```c++ +getLangPackError(qint64 msgId, qint32 errorCode, const QString &errorText) +``` + +## Events: + +```c++ +onGetLangPackAnswer(qint64 msgId, const LangPackDifference & result) +``` +```c++ +onGetLangPackError(qint64 msgId, qint32 errorCode, const QString &errorText) +``` + +## Macros: + +* TG_GET_LANG_PACK_CALLBACK + +## Examples: + +```c++ +tg->getLangPack(lang_code, [=](TG_GET_LANG_PACK_CALLBACK){ + ... +}, 30000); +``` diff --git a/documents/functions/methods/getlanguages.md b/documents/functions/methods/getlanguages.md new file mode 100644 index 0000000..c70abdf --- /dev/null +++ b/documents/functions/methods/getlanguages.md @@ -0,0 +1,55 @@ +# Langpack.getLanguages + +## Function: + +TelegramCore::langpackGetLanguages + +## Schema: + +```c++ +langpack.getLanguages#800fd57d = Vector; +``` +## Parameters: + +|Name|Type|Default| +|----|----|-------| +|callBack|Callback<QList<[LangPackLanguage](../../types/langpacklanguage.md)>>|0| +|timeout|qint32|TelegramCore::timeOut()| + +## Callback Result: + +|Name|Type| +|----|----| +|msgId|qint64| +|result|QList<[LangPackLanguage](../../types/langpacklanguage.md)>| +|error|TelegramCore::CallbackError| + +## Signals: + +```c++ +getLanguagesAnswer(qint64 msgId, const QList<LangPackLanguage> & result) +``` +```c++ +getLanguagesError(qint64 msgId, qint32 errorCode, const QString &errorText) +``` + +## Events: + +```c++ +onGetLanguagesAnswer(qint64 msgId, const QList<LangPackLanguage> & result) +``` +```c++ +onGetLanguagesError(qint64 msgId, qint32 errorCode, const QString &errorText) +``` + +## Macros: + +* TG_GET_LANGUAGES_CALLBACK + +## Examples: + +```c++ +tg->getLanguages([=](TG_GET_LANGUAGES_CALLBACK){ + ... +}, 30000); +``` diff --git a/documents/functions/methods/getstrings.md b/documents/functions/methods/getstrings.md new file mode 100644 index 0000000..5c38709 --- /dev/null +++ b/documents/functions/methods/getstrings.md @@ -0,0 +1,57 @@ +# Langpack.getStrings + +## Function: + +TelegramCore::langpackGetStrings + +## Schema: + +```c++ +langpack.getStrings#2e1ee318 lang_code:string keys:Vector = Vector; +``` +## Parameters: + +|Name|Type|Default| +|----|----|-------| +|langCode|QString|| +|keys|QList<QString>|| +|callBack|Callback<QList<[LangPackString](../../types/langpackstring.md)>>|0| +|timeout|qint32|TelegramCore::timeOut()| + +## Callback Result: + +|Name|Type| +|----|----| +|msgId|qint64| +|result|QList<[LangPackString](../../types/langpackstring.md)>| +|error|TelegramCore::CallbackError| + +## Signals: + +```c++ +getStringsAnswer(qint64 msgId, const QList<LangPackString> & result) +``` +```c++ +getStringsError(qint64 msgId, qint32 errorCode, const QString &errorText) +``` + +## Events: + +```c++ +onGetStringsAnswer(qint64 msgId, const QList<LangPackString> & result) +``` +```c++ +onGetStringsError(qint64 msgId, qint32 errorCode, const QString &errorText) +``` + +## Macros: + +* TG_GET_STRINGS_CALLBACK + +## Examples: + +```c++ +tg->getStrings(lang_code, keys, [=](TG_GET_STRINGS_CALLBACK){ + ... +}, 30000); +``` diff --git a/documents/functions/methods/gettoppeers.md b/documents/functions/methods/gettoppeers.md index c899fe2..210aa2e 100644 --- a/documents/functions/methods/gettoppeers.md +++ b/documents/functions/methods/gettoppeers.md @@ -7,7 +7,7 @@ TelegramCore::contactsGetTopPeers ## Schema: ```c++ -contacts.getTopPeers#d4982db5 flags:# correspondents:flags.0?true bots_pm:flags.1?true bots_inline:flags.2?true groups:flags.10?true channels:flags.15?true offset:int limit:int hash:int = contacts.TopPeers; +contacts.getTopPeers#d4982db5 flags:# correspondents:flags.0?true bots_pm:flags.1?true bots_inline:flags.2?true phone_calls:flags.3?true groups:flags.10?true channels:flags.15?true offset:int limit:int hash:int = contacts.TopPeers; ``` ## Parameters: @@ -16,6 +16,7 @@ contacts.getTopPeers#d4982db5 flags:# correspondents:flags.0?true bots_pm:flags. |correspondents|bool|| |botsPm|bool|| |botsInline|bool|| +|phoneCalls|bool|| |groups|bool|| |channels|bool|| |offset|qint32|| @@ -57,7 +58,7 @@ onGetTopPeersError(qint64 msgId, qint32 errorCode, const QString &errorText) ## Examples: ```c++ -tg->getTopPeers(correspondents, bots_pm, bots_inline, groups, channels, offset, limit, hash, [=](TG_GET_TOP_PEERS_CALLBACK){ +tg->getTopPeers(correspondents, bots_pm, bots_inline, phone_calls, groups, channels, offset, limit, hash, [=](TG_GET_TOP_PEERS_CALLBACK){ ... }, 30000); ``` diff --git a/documents/functions/methods/removestickerfromset.md b/documents/functions/methods/removestickerfromset.md new file mode 100644 index 0000000..a706a7e --- /dev/null +++ b/documents/functions/methods/removestickerfromset.md @@ -0,0 +1,56 @@ +# Stickers.removeStickerFromSet + +## Function: + +TelegramCore::stickersRemoveStickerFromSet + +## Schema: + +```c++ +stickers.removeStickerFromSet#4255934 sticker:InputDocument = Bool; +``` +## Parameters: + +|Name|Type|Default| +|----|----|-------| +|sticker|[InputDocument](../../types/inputdocument.md)|| +|callBack|Callback<bool>|0| +|timeout|qint32|TelegramCore::timeOut()| + +## Callback Result: + +|Name|Type| +|----|----| +|msgId|qint64| +|result|bool| +|error|TelegramCore::CallbackError| + +## Signals: + +```c++ +removeStickerFromSetAnswer(qint64 msgId, bool result) +``` +```c++ +removeStickerFromSetError(qint64 msgId, qint32 errorCode, const QString &errorText) +``` + +## Events: + +```c++ +onRemoveStickerFromSetAnswer(qint64 msgId, bool result) +``` +```c++ +onRemoveStickerFromSetError(qint64 msgId, qint32 errorCode, const QString &errorText) +``` + +## Macros: + +* TG_REMOVE_STICKER_FROM_SET_CALLBACK + +## Examples: + +```c++ +tg->removeStickerFromSet(sticker, [=](TG_REMOVE_STICKER_FROM_SET_CALLBACK){ + ... +}, 30000); +``` diff --git a/documents/functions/methods/search.md b/documents/functions/methods/search.md index dc29f73..7a0a8e2 100644 --- a/documents/functions/methods/search.md +++ b/documents/functions/methods/search.md @@ -7,7 +7,7 @@ TelegramCore::messagesSearch ## Schema: ```c++ -messages.search#d4569248 flags:# peer:InputPeer q:string filter:MessagesFilter min_date:int max_date:int offset:int max_id:int limit:int = messages.Messages; +messages.search#f288a275 flags:# peer:InputPeer q:string from_id:flags.0?InputUser filter:MessagesFilter min_date:int max_date:int offset:int max_id:int limit:int = messages.Messages; ``` ## Parameters: @@ -15,6 +15,7 @@ messages.search#d4569248 flags:# peer:InputPeer q:string filter:MessagesFilter m |----|----|-------| |peer|[InputPeer](../../types/inputpeer.md)|| |q|QString|| +|fromId|[InputUser](../../types/inputuser.md)|| |filter|[MessagesFilter](../../types/messagesfilter.md)|| |minDate|qint32|| |maxDate|qint32|| @@ -57,7 +58,7 @@ onSearchError(qint64 msgId, qint32 errorCode, const QString &errorText) ## Examples: ```c++ -tg->search(peer, q, filter, min_date, max_date, offset, max_id, limit, [=](TG_SEARCH_CALLBACK){ +tg->search(peer, q, from_id, filter, min_date, max_date, offset, max_id, limit, [=](TG_SEARCH_CALLBACK){ ... }, 30000); ``` diff --git a/documents/functions/methods/uploadmedia.md b/documents/functions/methods/uploadmedia.md new file mode 100644 index 0000000..da05a59 --- /dev/null +++ b/documents/functions/methods/uploadmedia.md @@ -0,0 +1,57 @@ +# Messages.uploadMedia + +## Function: + +TelegramCore::messagesUploadMedia + +## Schema: + +```c++ +messages.uploadMedia#519bc2b1 peer:InputPeer media:InputMedia = MessageMedia; +``` +## Parameters: + +|Name|Type|Default| +|----|----|-------| +|peer|[InputPeer](../../types/inputpeer.md)|| +|media|[InputMedia](../../types/inputmedia.md)|| +|callBack|Callback<[MessageMedia](../../types/messagemedia.md)>|0| +|timeout|qint32|TelegramCore::timeOut()| + +## Callback Result: + +|Name|Type| +|----|----| +|msgId|qint64| +|result|[MessageMedia](../../types/messagemedia.md)| +|error|TelegramCore::CallbackError| + +## Signals: + +```c++ +uploadMediaAnswer(qint64 msgId, const MessageMedia & result) +``` +```c++ +uploadMediaError(qint64 msgId, qint32 errorCode, const QString &errorText) +``` + +## Events: + +```c++ +onUploadMediaAnswer(qint64 msgId, const MessageMedia & result) +``` +```c++ +onUploadMediaError(qint64 msgId, qint32 errorCode, const QString &errorText) +``` + +## Macros: + +* TG_UPLOAD_MEDIA_CALLBACK + +## Examples: + +```c++ +tg->uploadMedia(peer, media, [=](TG_UPLOAD_MEDIA_CALLBACK){ + ... +}, 30000); +``` diff --git a/documents/functions/stickers.md b/documents/functions/stickers.md new file mode 100644 index 0000000..a38a1ca --- /dev/null +++ b/documents/functions/stickers.md @@ -0,0 +1,12 @@ +# Stickers + +## Methods: + +* **Create sticker set** - [TelegramCore::stickersCreateStickerSet](methods/createstickerset.md) + +* **Remove sticker from set** - [TelegramCore::stickersRemoveStickerFromSet](methods/removestickerfromset.md) + +* **Change sticker position** - [TelegramCore::stickersChangeStickerPosition](methods/changestickerposition.md) + +* **Add sticker to set** - [TelegramCore::stickersAddStickerToSet](methods/addstickertoset.md) + diff --git a/documents/types/channeladminlogevent.md b/documents/types/channeladminlogevent.md new file mode 100644 index 0000000..c4d1b12 --- /dev/null +++ b/documents/types/channeladminlogevent.md @@ -0,0 +1,23 @@ +# ChannelAdminLogEvent + +## Types + +* [typeChannelAdminLogEvent](#channeladminlogeventtypechanneladminlogevent) + +## ChannelAdminLogEvent::typeChannelAdminLogEvent + +#### Schema: + +```c++ +channelAdminLogEvent#3b5a3e40 id:long date:int user_id:int action:ChannelAdminLogEventAction = ChannelAdminLogEvent; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|id|qint64| +|date|qint32| +|userId|qint32| +|action|[ChannelAdminLogEventAction](channeladminlogeventaction.md)| + diff --git a/documents/types/channeladminlogeventaction.md b/documents/types/channeladminlogeventaction.md new file mode 100644 index 0000000..5254e2e --- /dev/null +++ b/documents/types/channeladminlogeventaction.md @@ -0,0 +1,216 @@ +# ChannelAdminLogEventAction + +## Types + +* [typeChannelAdminLogEventActionChangeTitle](#channeladminlogeventactiontypechanneladminlogeventactionchangetitle) +* [typeChannelAdminLogEventActionChangeAbout](#channeladminlogeventactiontypechanneladminlogeventactionchangeabout) +* [typeChannelAdminLogEventActionChangeUsername](#channeladminlogeventactiontypechanneladminlogeventactionchangeusername) +* [typeChannelAdminLogEventActionChangePhoto](#channeladminlogeventactiontypechanneladminlogeventactionchangephoto) +* [typeChannelAdminLogEventActionToggleInvites](#channeladminlogeventactiontypechanneladminlogeventactiontoggleinvites) +* [typeChannelAdminLogEventActionToggleSignatures](#channeladminlogeventactiontypechanneladminlogeventactiontogglesignatures) +* [typeChannelAdminLogEventActionUpdatePinned](#channeladminlogeventactiontypechanneladminlogeventactionupdatepinned) +* [typeChannelAdminLogEventActionEditMessage](#channeladminlogeventactiontypechanneladminlogeventactioneditmessage) +* [typeChannelAdminLogEventActionDeleteMessage](#channeladminlogeventactiontypechanneladminlogeventactiondeletemessage) +* [typeChannelAdminLogEventActionParticipantJoin](#channeladminlogeventactiontypechanneladminlogeventactionparticipantjoin) +* [typeChannelAdminLogEventActionParticipantLeave](#channeladminlogeventactiontypechanneladminlogeventactionparticipantleave) +* [typeChannelAdminLogEventActionParticipantInvite](#channeladminlogeventactiontypechanneladminlogeventactionparticipantinvite) +* [typeChannelAdminLogEventActionParticipantToggleBan](#channeladminlogeventactiontypechanneladminlogeventactionparticipanttoggleban) +* [typeChannelAdminLogEventActionParticipantToggleAdmin](#channeladminlogeventactiontypechanneladminlogeventactionparticipanttoggleadmin) + +## ChannelAdminLogEventAction::typeChannelAdminLogEventActionChangeTitle + +#### Schema: + +```c++ +channelAdminLogEventActionChangeTitle#e6dfb825 prev_value:string new_value:string = ChannelAdminLogEventAction; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|prevValue|QString| +|newValue|QString| + +## ChannelAdminLogEventAction::typeChannelAdminLogEventActionChangeAbout + +#### Schema: + +```c++ +channelAdminLogEventActionChangeAbout#55188a2e prev_value:string new_value:string = ChannelAdminLogEventAction; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|prevValue|QString| +|newValue|QString| + +## ChannelAdminLogEventAction::typeChannelAdminLogEventActionChangeUsername + +#### Schema: + +```c++ +channelAdminLogEventActionChangeUsername#6a4afc38 prev_value:string new_value:string = ChannelAdminLogEventAction; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|prevValue|QString| +|newValue|QString| + +## ChannelAdminLogEventAction::typeChannelAdminLogEventActionChangePhoto + +#### Schema: + +```c++ +channelAdminLogEventActionChangePhoto#b82f55c3 prev_photo:ChatPhoto new_photo:ChatPhoto = ChannelAdminLogEventAction; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|prevPhoto|[ChatPhoto](chatphoto.md)| +|newPhoto|[ChatPhoto](chatphoto.md)| + +## ChannelAdminLogEventAction::typeChannelAdminLogEventActionToggleInvites + +#### Schema: + +```c++ +channelAdminLogEventActionToggleInvites#1b7907ae new_value:Bool = ChannelAdminLogEventAction; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|newValue|bool| + +## ChannelAdminLogEventAction::typeChannelAdminLogEventActionToggleSignatures + +#### Schema: + +```c++ +channelAdminLogEventActionToggleSignatures#26ae0971 new_value:Bool = ChannelAdminLogEventAction; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|newValue|bool| + +## ChannelAdminLogEventAction::typeChannelAdminLogEventActionUpdatePinned + +#### Schema: + +```c++ +channelAdminLogEventActionUpdatePinned#e9e82c18 message:Message = ChannelAdminLogEventAction; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|message|[Message](message.md)| + +## ChannelAdminLogEventAction::typeChannelAdminLogEventActionEditMessage + +#### Schema: + +```c++ +channelAdminLogEventActionEditMessage#709b2405 prev_message:Message new_message:Message = ChannelAdminLogEventAction; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|prevMessage|[Message](message.md)| +|newMessage|[Message](message.md)| + +## ChannelAdminLogEventAction::typeChannelAdminLogEventActionDeleteMessage + +#### Schema: + +```c++ +channelAdminLogEventActionDeleteMessage#42e047bb message:Message = ChannelAdminLogEventAction; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|message|[Message](message.md)| + +## ChannelAdminLogEventAction::typeChannelAdminLogEventActionParticipantJoin + +#### Schema: + +```c++ +channelAdminLogEventActionParticipantJoin#183040d3 = ChannelAdminLogEventAction; +``` + +#### Parameters: + + +## ChannelAdminLogEventAction::typeChannelAdminLogEventActionParticipantLeave + +#### Schema: + +```c++ +channelAdminLogEventActionParticipantLeave#f89777f2 = ChannelAdminLogEventAction; +``` + +#### Parameters: + + +## ChannelAdminLogEventAction::typeChannelAdminLogEventActionParticipantInvite + +#### Schema: + +```c++ +channelAdminLogEventActionParticipantInvite#e31c34d8 participant:ChannelParticipant = ChannelAdminLogEventAction; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|participant|[ChannelParticipant](channelparticipant.md)| + +## ChannelAdminLogEventAction::typeChannelAdminLogEventActionParticipantToggleBan + +#### Schema: + +```c++ +channelAdminLogEventActionParticipantToggleBan#e6d83d7e prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|prevParticipant|[ChannelParticipant](channelparticipant.md)| +|newParticipant|[ChannelParticipant](channelparticipant.md)| + +## ChannelAdminLogEventAction::typeChannelAdminLogEventActionParticipantToggleAdmin + +#### Schema: + +```c++ +channelAdminLogEventActionParticipantToggleAdmin#d5676710 prev_participant:ChannelParticipant new_participant:ChannelParticipant = ChannelAdminLogEventAction; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|prevParticipant|[ChannelParticipant](channelparticipant.md)| +|newParticipant|[ChannelParticipant](channelparticipant.md)| + diff --git a/documents/types/channeladminlogeventsfilter.md b/documents/types/channeladminlogeventsfilter.md new file mode 100644 index 0000000..856597c --- /dev/null +++ b/documents/types/channeladminlogeventsfilter.md @@ -0,0 +1,33 @@ +# ChannelAdminLogEventsFilter + +## Types + +* [typeChannelAdminLogEventsFilter](#channeladminlogeventsfiltertypechanneladminlogeventsfilter) + +## ChannelAdminLogEventsFilter::typeChannelAdminLogEventsFilter + +#### Schema: + +```c++ +channelAdminLogEventsFilter#ea107ae4 flags:# join:flags.0?true leave:flags.1?true invite:flags.2?true ban:flags.3?true unban:flags.4?true kick:flags.5?true unkick:flags.6?true promote:flags.7?true demote:flags.8?true info:flags.9?true settings:flags.10?true pinned:flags.11?true edit:flags.12?true delete:flags.13?true = ChannelAdminLogEventsFilter; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|join|bool| +|leave|bool| +|invite|bool| +|ban|bool| +|unban|bool| +|kick|bool| +|unkick|bool| +|promote|bool| +|demote|bool| +|info|bool| +|settings|bool| +|pinned|bool| +|edit|bool| +|deleteValue|bool| + diff --git a/documents/types/channeladminrights.md b/documents/types/channeladminrights.md new file mode 100644 index 0000000..79adaad --- /dev/null +++ b/documents/types/channeladminrights.md @@ -0,0 +1,28 @@ +# ChannelAdminRights + +## Types + +* [typeChannelAdminRights](#channeladminrightstypechanneladminrights) + +## ChannelAdminRights::typeChannelAdminRights + +#### Schema: + +```c++ +channelAdminRights#5d7ceba5 flags:# change_info:flags.0?true post_messages:flags.1?true edit_messages:flags.2?true delete_messages:flags.3?true ban_users:flags.4?true invite_users:flags.5?true invite_link:flags.6?true pin_messages:flags.7?true add_admins:flags.9?true = ChannelAdminRights; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|changeInfo|bool| +|postMessages|bool| +|editMessages|bool| +|deleteMessages|bool| +|banUsers|bool| +|inviteUsers|bool| +|inviteLink|bool| +|pinMessages|bool| +|addAdmins|bool| + diff --git a/documents/types/channelbannedrights.md b/documents/types/channelbannedrights.md new file mode 100644 index 0000000..c4a11b3 --- /dev/null +++ b/documents/types/channelbannedrights.md @@ -0,0 +1,28 @@ +# ChannelBannedRights + +## Types + +* [typeChannelBannedRights](#channelbannedrightstypechannelbannedrights) + +## ChannelBannedRights::typeChannelBannedRights + +#### Schema: + +```c++ +channelBannedRights#58cf4249 flags:# view_messages:flags.0?true send_messages:flags.1?true send_media:flags.2?true send_stickers:flags.3?true send_gifs:flags.4?true send_games:flags.5?true send_inline:flags.6?true embed_links:flags.7?true until_date:int = ChannelBannedRights; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|viewMessages|bool| +|sendMessages|bool| +|sendMedia|bool| +|sendStickers|bool| +|sendGifs|bool| +|sendGames|bool| +|sendInline|bool| +|embedLinks|bool| +|untilDate|qint32| + diff --git a/documents/types/channelparticipant.md b/documents/types/channelparticipant.md index 343e5d5..864fb6f 100644 --- a/documents/types/channelparticipant.md +++ b/documents/types/channelparticipant.md @@ -4,10 +4,9 @@ * [typeChannelParticipant](#channelparticipanttypechannelparticipant) * [typeChannelParticipantSelf](#channelparticipanttypechannelparticipantself) -* [typeChannelParticipantModerator](#channelparticipanttypechannelparticipantmoderator) -* [typeChannelParticipantEditor](#channelparticipanttypechannelparticipanteditor) -* [typeChannelParticipantKicked](#channelparticipanttypechannelparticipantkicked) * [typeChannelParticipantCreator](#channelparticipanttypechannelparticipantcreator) +* [typeChannelParticipantAdmin](#channelparticipanttypechannelparticipantadmin) +* [typeChannelParticipantBanned](#channelparticipanttypechannelparticipantbanned) ## ChannelParticipant::typeChannelParticipant @@ -40,12 +39,12 @@ channelParticipantSelf#a3289a6d user_id:int inviter_id:int date:int = ChannelPar |inviterId|qint32| |date|qint32| -## ChannelParticipant::typeChannelParticipantModerator +## ChannelParticipant::typeChannelParticipantCreator #### Schema: ```c++ -channelParticipantModerator#91057fef user_id:int inviter_id:int date:int = ChannelParticipant; +channelParticipantCreator#e3e2e1f9 user_id:int = ChannelParticipant; ``` #### Parameters: @@ -53,52 +52,41 @@ channelParticipantModerator#91057fef user_id:int inviter_id:int date:int = Chann |Name|Type| |----|----| |userId|qint32| -|inviterId|qint32| -|date|qint32| -## ChannelParticipant::typeChannelParticipantEditor +## ChannelParticipant::typeChannelParticipantAdmin #### Schema: ```c++ -channelParticipantEditor#98192d61 user_id:int inviter_id:int date:int = ChannelParticipant; +channelParticipantAdmin#a82fa898 flags:# can_edit:flags.0?true user_id:int inviter_id:int promoted_by:int date:int admin_rights:ChannelAdminRights = ChannelParticipant; ``` #### Parameters: |Name|Type| |----|----| +|canEdit|bool| |userId|qint32| |inviterId|qint32| +|promotedBy|qint32| |date|qint32| +|adminRights|[ChannelAdminRights](channeladminrights.md)| -## ChannelParticipant::typeChannelParticipantKicked +## ChannelParticipant::typeChannelParticipantBanned #### Schema: ```c++ -channelParticipantKicked#8cc5e69a user_id:int kicked_by:int date:int = ChannelParticipant; +channelParticipantBanned#222c1886 flags:# left:flags.0?true user_id:int kicked_by:int date:int banned_rights:ChannelBannedRights = ChannelParticipant; ``` #### Parameters: |Name|Type| |----|----| +|left|bool| |userId|qint32| |kickedBy|qint32| |date|qint32| - -## ChannelParticipant::typeChannelParticipantCreator - -#### Schema: - -```c++ -channelParticipantCreator#e3e2e1f9 user_id:int = ChannelParticipant; -``` - -#### Parameters: - -|Name|Type| -|----|----| -|userId|qint32| +|bannedRights|[ChannelBannedRights](channelbannedrights.md)| diff --git a/documents/types/channelparticipantsfilter.md b/documents/types/channelparticipantsfilter.md index 01e3d2d..ec6ed9f 100644 --- a/documents/types/channelparticipantsfilter.md +++ b/documents/types/channelparticipantsfilter.md @@ -6,6 +6,8 @@ * [typeChannelParticipantsAdmins](#channelparticipantsfiltertypechannelparticipantsadmins) * [typeChannelParticipantsKicked](#channelparticipantsfiltertypechannelparticipantskicked) * [typeChannelParticipantsBots](#channelparticipantsfiltertypechannelparticipantsbots) +* [typeChannelParticipantsBanned](#channelparticipantsfiltertypechannelparticipantsbanned) +* [typeChannelParticipantsSearch](#channelparticipantsfiltertypechannelparticipantssearch) ## ChannelParticipantsFilter::typeChannelParticipantsRecent @@ -34,11 +36,14 @@ channelParticipantsAdmins#b4608969 = ChannelParticipantsFilter; #### Schema: ```c++ -channelParticipantsKicked#3c37bb7a = ChannelParticipantsFilter; +channelParticipantsKicked#a3b54985 q:string = ChannelParticipantsFilter; ``` #### Parameters: +|Name|Type| +|----|----| +|q|QString| ## ChannelParticipantsFilter::typeChannelParticipantsBots @@ -51,3 +56,31 @@ channelParticipantsBots#b0d1865b = ChannelParticipantsFilter; #### Parameters: +## ChannelParticipantsFilter::typeChannelParticipantsBanned + +#### Schema: + +```c++ +channelParticipantsBanned#1427a5e1 q:string = ChannelParticipantsFilter; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|q|QString| + +## ChannelParticipantsFilter::typeChannelParticipantsSearch + +#### Schema: + +```c++ +channelParticipantsSearch#656ac4b q:string = ChannelParticipantsFilter; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|q|QString| + diff --git a/documents/types/channelsadminlogresults.md b/documents/types/channelsadminlogresults.md new file mode 100644 index 0000000..07d3e52 --- /dev/null +++ b/documents/types/channelsadminlogresults.md @@ -0,0 +1,22 @@ +# ChannelsAdminLogResults + +## Types + +* [typeChannelsAdminLogResults](#channelsadminlogresultstypechannelsadminlogresults) + +## ChannelsAdminLogResults::typeChannelsAdminLogResults + +#### Schema: + +```c++ +channels.adminLogResults#ed8af74d events:Vector chats:Vector users:Vector = channels.AdminLogResults; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|events|QList<[ChannelAdminLogEvent](channeladminlogevent.md)>| +|chats|QList<[Chat](chat.md)>| +|users|QList<[User](user.md)>| + diff --git a/documents/types/chat.md b/documents/types/chat.md index 299ee07..6b297be 100644 --- a/documents/types/chat.md +++ b/documents/types/chat.md @@ -68,7 +68,7 @@ chatForbidden#7328bdb id:int title:string = Chat; #### Schema: ```c++ -channel#a14dca52 flags:# creator:flags.0?true kicked:flags.1?true left:flags.2?true editor:flags.3?true moderator:flags.4?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true democracy:flags.10?true signatures:flags.11?true min:flags.12?true id:int access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int version:int restriction_reason:flags.9?string = Chat; +channel#cb44b1c flags:# creator:flags.0?true left:flags.2?true broadcast:flags.5?true verified:flags.7?true megagroup:flags.8?true restricted:flags.9?true democracy:flags.10?true signatures:flags.11?true min:flags.12?true id:int access_hash:flags.13?long title:string username:flags.6?string photo:ChatPhoto date:int version:int restriction_reason:flags.9?string admin_rights:flags.14?ChannelAdminRights banned_rights:flags.15?ChannelBannedRights = Chat; ``` #### Parameters: @@ -76,10 +76,7 @@ channel#a14dca52 flags:# creator:flags.0?true kicked:flags.1?true left:flags.2?t |Name|Type| |----|----| |creator|bool| -|kicked|bool| |left|bool| -|editor|bool| -|moderator|bool| |broadcast|bool| |verified|bool| |megagroup|bool| @@ -95,13 +92,15 @@ channel#a14dca52 flags:# creator:flags.0?true kicked:flags.1?true left:flags.2?t |date|qint32| |version|qint32| |restrictionReason|QString| +|adminRights|[ChannelAdminRights](channeladminrights.md)| +|bannedRights|[ChannelBannedRights](channelbannedrights.md)| ## Chat::typeChannelForbidden #### Schema: ```c++ -channelForbidden#8537784f flags:# broadcast:flags.5?true megagroup:flags.8?true id:int access_hash:long title:string = Chat; +channelForbidden#289da732 flags:# broadcast:flags.5?true megagroup:flags.8?true id:int access_hash:long title:string until_date:flags.16?int = Chat; ``` #### Parameters: @@ -113,4 +112,5 @@ channelForbidden#8537784f flags:# broadcast:flags.5?true megagroup:flags.8?true |id|qint32| |accessHash|qint64| |title|QString| +|untilDate|qint32| diff --git a/documents/types/chatfull.md b/documents/types/chatfull.md index cb5246b..edcafb7 100644 --- a/documents/types/chatfull.md +++ b/documents/types/chatfull.md @@ -29,7 +29,7 @@ chatFull#2e02a614 id:int participants:ChatParticipants chat_photo:Photo notify_s #### Schema: ```c++ -channelFull#c3d5512f flags:# can_view_participants:flags.3?true can_set_username:flags.6?true id:int about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector migrated_from_chat_id:flags.4?int migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int = ChatFull; +channelFull#95cb5f57 flags:# can_view_participants:flags.3?true can_set_username:flags.6?true id:int about:string participants_count:flags.0?int admins_count:flags.1?int kicked_count:flags.2?int banned_count:flags.2?int read_inbox_max_id:int read_outbox_max_id:int unread_count:int chat_photo:Photo notify_settings:PeerNotifySettings exported_invite:ExportedChatInvite bot_info:Vector migrated_from_chat_id:flags.4?int migrated_from_max_id:flags.4?int pinned_msg_id:flags.5?int = ChatFull; ``` #### Parameters: @@ -43,6 +43,7 @@ channelFull#c3d5512f flags:# can_view_participants:flags.3?true can_set_username |participantsCount|qint32| |adminsCount|qint32| |kickedCount|qint32| +|bannedCount|qint32| |readInboxMaxId|qint32| |readOutboxMaxId|qint32| |unreadCount|qint32| diff --git a/documents/types/config.md b/documents/types/config.md index dff305a..46bb53b 100644 --- a/documents/types/config.md +++ b/documents/types/config.md @@ -9,7 +9,7 @@ #### Schema: ```c++ -config#cb601684 flags:# phonecalls_enabled:flags.1?true date:int expires:int test_mode:Bool this_dc:int dc_options:Vector chat_size_max:int megagroup_size_max:int forwarded_count_max:int online_update_period_ms:int offline_blur_timeout_ms:int offline_idle_timeout_ms:int online_cloud_timeout_ms:int notify_cloud_delay_ms:int notify_default_delay_ms:int chat_big_size:int push_chat_period_ms:int push_chat_limit:int saved_gifs_limit:int edit_time_limit:int rating_e_decay:int stickers_recent_limit:int tmp_sessions:flags.0?int pinned_dialogs_count_max:int call_receive_timeout_ms:int call_ring_timeout_ms:int call_connect_timeout_ms:int call_packet_timeout_ms:int me_url_prefix:string disabled_features:Vector = Config; +config#7feec888 flags:# phonecalls_enabled:flags.1?true date:int expires:int test_mode:Bool this_dc:int dc_options:Vector chat_size_max:int megagroup_size_max:int forwarded_count_max:int online_update_period_ms:int offline_blur_timeout_ms:int offline_idle_timeout_ms:int online_cloud_timeout_ms:int notify_cloud_delay_ms:int notify_default_delay_ms:int chat_big_size:int push_chat_period_ms:int push_chat_limit:int saved_gifs_limit:int edit_time_limit:int rating_e_decay:int stickers_recent_limit:int tmp_sessions:flags.0?int pinned_dialogs_count_max:int call_receive_timeout_ms:int call_ring_timeout_ms:int call_connect_timeout_ms:int call_packet_timeout_ms:int me_url_prefix:string suggested_lang_code:flags.2?string lang_pack_version:flags.2?int disabled_features:Vector = Config; ``` #### Parameters: @@ -45,5 +45,7 @@ config#cb601684 flags:# phonecalls_enabled:flags.1?true date:int expires:int tes |callConnectTimeoutMs|qint32| |callPacketTimeoutMs|qint32| |meUrlPrefix|QString| +|suggestedLangCode|QString| +|langPackVersion|qint32| |disabledFeatures|QList<[DisabledFeature](disabledfeature.md)>| diff --git a/documents/types/dcoption.md b/documents/types/dcoption.md index d1527dc..d6c165c 100644 --- a/documents/types/dcoption.md +++ b/documents/types/dcoption.md @@ -9,7 +9,7 @@ #### Schema: ```c++ -dcOption#5d8c6cc flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:flags.2?true cdn:flags.3?true id:int ip_address:string port:int = DcOption; +dcOption#5d8c6cc flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:flags.2?true cdn:flags.3?true static:flags.4?true id:int ip_address:string port:int = DcOption; ``` #### Parameters: @@ -20,6 +20,7 @@ dcOption#5d8c6cc flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:fla |mediaOnly|bool| |tcpoOnly|bool| |cdn|bool| +|staticValue|bool| |id|qint32| |ipAddress|QString| |port|qint32| diff --git a/documents/types/index.md b/documents/types/index.md index 1cad926..20790e4 100644 --- a/documents/types/index.md +++ b/documents/types/index.md @@ -16,12 +16,20 @@ * [CdnPublicKey](cdnpublickey.md) +* [ChannelAdminLogEvent](channeladminlogevent.md) + +* [ChannelAdminLogEventAction](channeladminlogeventaction.md) + +* [ChannelAdminLogEventsFilter](channeladminlogeventsfilter.md) + +* [ChannelAdminRights](channeladminrights.md) + +* [ChannelBannedRights](channelbannedrights.md) + * [ChannelMessagesFilter](channelmessagesfilter.md) * [ChannelParticipant](channelparticipant.md) -* [ChannelParticipantRole](channelparticipantrole.md) - * [ChannelParticipantsFilter](channelparticipantsfilter.md) * [Chat](chat.md) @@ -142,6 +150,8 @@ * [InputStickerSet](inputstickerset.md) +* [InputStickerSetItem](inputstickersetitem.md) + * [InputStickeredMedia](inputstickeredmedia.md) * [InputUser](inputuser.md) @@ -158,6 +168,12 @@ * [LabeledPrice](labeledprice.md) +* [LangPackDifference](langpackdifference.md) + +* [LangPackLanguage](langpacklanguage.md) + +* [LangPackString](langpackstring.md) + * [MaskCoords](maskcoords.md) * [Message](message.md) @@ -284,6 +300,8 @@ * [AuthSentCodeType](authsentcodetype.md) +* [ChannelsAdminLogResults](channelsadminlogresults.md) + * [ChannelsChannelParticipant](channelschannelparticipant.md) * [ChannelsChannelParticipants](channelschannelparticipants.md) diff --git a/documents/types/inputstickersetitem.md b/documents/types/inputstickersetitem.md new file mode 100644 index 0000000..1623623 --- /dev/null +++ b/documents/types/inputstickersetitem.md @@ -0,0 +1,22 @@ +# InputStickerSetItem + +## Types + +* [typeInputStickerSetItem](#inputstickersetitemtypeinputstickersetitem) + +## InputStickerSetItem::typeInputStickerSetItem + +#### Schema: + +```c++ +inputStickerSetItem#ffa0a496 flags:# document:InputDocument emoji:string mask_coords:flags.0?MaskCoords = InputStickerSetItem; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|document|[InputDocument](inputdocument.md)| +|emoji|QString| +|maskCoords|[MaskCoords](maskcoords.md)| + diff --git a/documents/types/langpackdifference.md b/documents/types/langpackdifference.md new file mode 100644 index 0000000..28e419e --- /dev/null +++ b/documents/types/langpackdifference.md @@ -0,0 +1,23 @@ +# LangPackDifference + +## Types + +* [typeLangPackDifference](#langpackdifferencetypelangpackdifference) + +## LangPackDifference::typeLangPackDifference + +#### Schema: + +```c++ +langPackDifference#f385c1f6 lang_code:string from_version:int version:int strings:Vector = LangPackDifference; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|langCode|QString| +|fromVersion|qint32| +|version|qint32| +|strings|QList<[LangPackString](langpackstring.md)>| + diff --git a/documents/types/langpacklanguage.md b/documents/types/langpacklanguage.md new file mode 100644 index 0000000..e08f23b --- /dev/null +++ b/documents/types/langpacklanguage.md @@ -0,0 +1,22 @@ +# LangPackLanguage + +## Types + +* [typeLangPackLanguage](#langpacklanguagetypelangpacklanguage) + +## LangPackLanguage::typeLangPackLanguage + +#### Schema: + +```c++ +langPackLanguage#117698f1 name:string native_name:string lang_code:string = LangPackLanguage; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|name|QString| +|nativeName|QString| +|langCode|QString| + diff --git a/documents/types/langpackstring.md b/documents/types/langpackstring.md new file mode 100644 index 0000000..3a4d8f0 --- /dev/null +++ b/documents/types/langpackstring.md @@ -0,0 +1,57 @@ +# LangPackString + +## Types + +* [typeLangPackString](#langpackstringtypelangpackstring) +* [typeLangPackStringPluralized](#langpackstringtypelangpackstringpluralized) +* [typeLangPackStringDeleted](#langpackstringtypelangpackstringdeleted) + +## LangPackString::typeLangPackString + +#### Schema: + +```c++ +langPackString#cad181f6 key:string value:string = LangPackString; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|key|QString| +|value|QString| + +## LangPackString::typeLangPackStringPluralized + +#### Schema: + +```c++ +langPackStringPluralized#6c47ac9f flags:# key:string zero_value:flags.0?string one_value:flags.1?string two_value:flags.2?string few_value:flags.3?string many_value:flags.4?string other_value:string = LangPackString; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|key|QString| +|zeroValue|QString| +|oneValue|QString| +|twoValue|QString| +|fewValue|QString| +|manyValue|QString| +|otherValue|QString| + +## LangPackString::typeLangPackStringDeleted + +#### Schema: + +```c++ +langPackStringDeleted#2979eeb2 key:string = LangPackString; +``` + +#### Parameters: + +|Name|Type| +|----|----| +|key|QString| + diff --git a/documents/types/page.md b/documents/types/page.md index c3b2b65..51a337d 100644 --- a/documents/types/page.md +++ b/documents/types/page.md @@ -10,7 +10,7 @@ #### Schema: ```c++ -pagePart#8dee6c44 blocks:Vector photos:Vector videos:Vector = Page; +pagePart#8e3f9ebe blocks:Vector photos:Vector documents:Vector = Page; ``` #### Parameters: @@ -19,14 +19,14 @@ pagePart#8dee6c44 blocks:Vector photos:Vector videos:Vector photos:Vector videos:Vector = Page; +pageFull#556ec7aa blocks:Vector photos:Vector documents:Vector = Page; ``` #### Parameters: @@ -35,5 +35,5 @@ pageFull#d7a19d69 blocks:Vector photos:Vector videos:Vector