-
Notifications
You must be signed in to change notification settings - Fork 6
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
Showing
90 changed files
with
7,138 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# account.ClearRecentEmojiStatuses | ||
|
||
No description found | ||
|
||
## Example | ||
|
||
::::tabs | ||
:::tab{title="JavaScript"} | ||
```js | ||
const {Api, TelegramClient} = require('telegram'); | ||
const {StringSession} = require('telegram/sessions'); | ||
|
||
const session = new StringSession(''); // You should put your string session here | ||
const client = new TelegramClient(session, apiId, apiHash, {}); | ||
|
||
(async function run() { | ||
await client.connect() // This assumes you have already authenticated with .start() | ||
|
||
const result = await client.invoke(new Api.account.ClearRecentEmojiStatuses({})); | ||
console.log(result); // prints the result | ||
})(); | ||
``` | ||
::: | ||
|
||
:::tab{title="TypeScript"} | ||
```ts | ||
import {Api, TelegramClient} from 'telegram'; | ||
import {StringSession} from 'telegram/sessions'; | ||
|
||
const session = new StringSession(''); // You should put your string session here | ||
const client = new TelegramClient(session, apiId, apiHash, {}); | ||
|
||
(async function run() { | ||
await client.connect() // This assumes you have already authenticated with .start() | ||
|
||
const result: Api.Bool = await client.invoke(new Api.account.ClearRecentEmojiStatuses({})); | ||
console.log(result); // prints the result | ||
})(); | ||
``` | ||
::: | ||
:::: | ||
|
||
|
||
|
||
## Parameters | ||
|
||
| Name | Type | Description | | ||
| :--: | ---- | ----------- | | ||
|
||
|
||
|
||
## Result | ||
|
||
Bool | ||
|
||
## Possible errors | ||
|
||
| Code | Type | Description | | ||
| :--: | ---- | ----------- | | ||
|
||
|
||
|
||
## Can bots use this method? | ||
|
||
No | ||
|
||
## Related pages | ||
|
||
|
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,69 @@ | ||
# account.DeleteAutoSaveExceptions | ||
|
||
No description found | ||
|
||
## Example | ||
|
||
::::tabs | ||
:::tab{title="JavaScript"} | ||
```js | ||
const {Api, TelegramClient} = require('telegram'); | ||
const {StringSession} = require('telegram/sessions'); | ||
|
||
const session = new StringSession(''); // You should put your string session here | ||
const client = new TelegramClient(session, apiId, apiHash, {}); | ||
|
||
(async function run() { | ||
await client.connect() // This assumes you have already authenticated with .start() | ||
|
||
const result = await client.invoke(new Api.account.DeleteAutoSaveExceptions({})); | ||
console.log(result); // prints the result | ||
})(); | ||
``` | ||
::: | ||
|
||
:::tab{title="TypeScript"} | ||
```ts | ||
import {Api, TelegramClient} from 'telegram'; | ||
import {StringSession} from 'telegram/sessions'; | ||
|
||
const session = new StringSession(''); // You should put your string session here | ||
const client = new TelegramClient(session, apiId, apiHash, {}); | ||
|
||
(async function run() { | ||
await client.connect() // This assumes you have already authenticated with .start() | ||
|
||
const result: Api.Bool = await client.invoke(new Api.account.DeleteAutoSaveExceptions({})); | ||
console.log(result); // prints the result | ||
})(); | ||
``` | ||
::: | ||
:::: | ||
|
||
|
||
|
||
## Parameters | ||
|
||
| Name | Type | Description | | ||
| :--: | ---- | ----------- | | ||
|
||
|
||
|
||
## Result | ||
|
||
Bool | ||
|
||
## Possible errors | ||
|
||
| Code | Type | Description | | ||
| :--: | ---- | ----------- | | ||
|
||
|
||
|
||
## Can bots use this method? | ||
|
||
No | ||
|
||
## Related pages | ||
|
||
|
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,69 @@ | ||
# account.GetAutoSaveSettings | ||
|
||
No description found | ||
|
||
## Example | ||
|
||
::::tabs | ||
:::tab{title="JavaScript"} | ||
```js | ||
const {Api, TelegramClient} = require('telegram'); | ||
const {StringSession} = require('telegram/sessions'); | ||
|
||
const session = new StringSession(''); // You should put your string session here | ||
const client = new TelegramClient(session, apiId, apiHash, {}); | ||
|
||
(async function run() { | ||
await client.connect() // This assumes you have already authenticated with .start() | ||
|
||
const result = await client.invoke(new Api.account.GetAutoSaveSettings({})); | ||
console.log(result); // prints the result | ||
})(); | ||
``` | ||
::: | ||
|
||
:::tab{title="TypeScript"} | ||
```ts | ||
import {Api, TelegramClient} from 'telegram'; | ||
import {StringSession} from 'telegram/sessions'; | ||
|
||
const session = new StringSession(''); // You should put your string session here | ||
const client = new TelegramClient(session, apiId, apiHash, {}); | ||
|
||
(async function run() { | ||
await client.connect() // This assumes you have already authenticated with .start() | ||
|
||
const result: Api.account.AutoSaveSettings = await client.invoke(new Api.account.GetAutoSaveSettings({})); | ||
console.log(result); // prints the result | ||
})(); | ||
``` | ||
::: | ||
:::: | ||
|
||
|
||
|
||
## Parameters | ||
|
||
| Name | Type | Description | | ||
| :--: | ---- | ----------- | | ||
|
||
|
||
|
||
## Result | ||
|
||
account.AutoSaveSettings | ||
|
||
## Possible errors | ||
|
||
| Code | Type | Description | | ||
| :--: | ---- | ----------- | | ||
|
||
|
||
|
||
## Can bots use this method? | ||
|
||
No | ||
|
||
## Related pages | ||
|
||
|
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,74 @@ | ||
# account.GetDefaultEmojiStatuses | ||
|
||
No description found | ||
|
||
## Example | ||
|
||
::::tabs | ||
:::tab{title="JavaScript"} | ||
```js | ||
const {Api, TelegramClient} = require('telegram'); | ||
const {StringSession} = require('telegram/sessions'); | ||
|
||
const session = new StringSession(''); // You should put your string session here | ||
const client = new TelegramClient(session, apiId, apiHash, {}); | ||
|
||
(async function run() { | ||
await client.connect() // This assumes you have already authenticated with .start() | ||
|
||
const result = await client.invoke(new Api.account.GetDefaultEmojiStatuses({ | ||
hash: BigInt('-4156887774564') | ||
})); | ||
console.log(result); // prints the result | ||
})(); | ||
``` | ||
::: | ||
|
||
:::tab{title="TypeScript"} | ||
```ts | ||
import {Api, TelegramClient} from 'telegram'; | ||
import {StringSession} from 'telegram/sessions'; | ||
|
||
const session = new StringSession(''); // You should put your string session here | ||
const client = new TelegramClient(session, apiId, apiHash, {}); | ||
|
||
(async function run() { | ||
await client.connect() // This assumes you have already authenticated with .start() | ||
|
||
const result: Api.account.EmojiStatuses = await client.invoke(new Api.account.GetDefaultEmojiStatuses({ | ||
hash: BigInt('-4156887774564') | ||
})); | ||
console.log(result); // prints the result | ||
})(); | ||
``` | ||
::: | ||
:::: | ||
|
||
|
||
|
||
## Parameters | ||
|
||
| Name | Type | Description | | ||
| :--: | ---- | ----------- | | ||
|
||
|hash|long|No description found | ||
|
||
|
||
## Result | ||
|
||
account.EmojiStatuses | ||
|
||
## Possible errors | ||
|
||
| Code | Type | Description | | ||
| :--: | ---- | ----------- | | ||
|
||
|
||
|
||
## Can bots use this method? | ||
|
||
No | ||
|
||
## Related pages | ||
|
||
|
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,74 @@ | ||
# account.GetDefaultGroupPhotoEmojis | ||
|
||
No description found | ||
|
||
## Example | ||
|
||
::::tabs | ||
:::tab{title="JavaScript"} | ||
```js | ||
const {Api, TelegramClient} = require('telegram'); | ||
const {StringSession} = require('telegram/sessions'); | ||
|
||
const session = new StringSession(''); // You should put your string session here | ||
const client = new TelegramClient(session, apiId, apiHash, {}); | ||
|
||
(async function run() { | ||
await client.connect() // This assumes you have already authenticated with .start() | ||
|
||
const result = await client.invoke(new Api.account.GetDefaultGroupPhotoEmojis({ | ||
hash: BigInt('-4156887774564') | ||
})); | ||
console.log(result); // prints the result | ||
})(); | ||
``` | ||
::: | ||
|
||
:::tab{title="TypeScript"} | ||
```ts | ||
import {Api, TelegramClient} from 'telegram'; | ||
import {StringSession} from 'telegram/sessions'; | ||
|
||
const session = new StringSession(''); // You should put your string session here | ||
const client = new TelegramClient(session, apiId, apiHash, {}); | ||
|
||
(async function run() { | ||
await client.connect() // This assumes you have already authenticated with .start() | ||
|
||
const result: Api.EmojiList = await client.invoke(new Api.account.GetDefaultGroupPhotoEmojis({ | ||
hash: BigInt('-4156887774564') | ||
})); | ||
console.log(result); // prints the result | ||
})(); | ||
``` | ||
::: | ||
:::: | ||
|
||
|
||
|
||
## Parameters | ||
|
||
| Name | Type | Description | | ||
| :--: | ---- | ----------- | | ||
|
||
|hash|long|No description found | ||
|
||
|
||
## Result | ||
|
||
EmojiList | ||
|
||
## Possible errors | ||
|
||
| Code | Type | Description | | ||
| :--: | ---- | ----------- | | ||
|
||
|
||
|
||
## Can bots use this method? | ||
|
||
No | ||
|
||
## Related pages | ||
|
||
|
Oops, something went wrong.