Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ec0ba3
commit 4d5de89
Showing
39 changed files
with
1,230 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<InputStickerSetItem> = 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); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<InputUser> 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); | ||
``` |
Oops, something went wrong.