feat: updated to layer 150
This commit is contained in:
parent
b0055b791c
commit
8df099fcb8
13 changed files with 17 additions and 11 deletions
|
@ -14,7 +14,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/long": "^4.0.1",
|
"@types/long": "^4.0.1",
|
||||||
"@types/node": "^15.12.1",
|
"@types/node": "^15.12.1",
|
||||||
"@mtcute/tl": "workspace:^147.0.0",
|
"@mtcute/tl": "workspace:^150.0.0",
|
||||||
"@mtcute/core": "workspace:^1.0.0",
|
"@mtcute/core": "workspace:^1.0.0",
|
||||||
"@mtcute/file-id": "workspace:^1.0.0",
|
"@mtcute/file-id": "workspace:^1.0.0",
|
||||||
"eager-async-pool": "^1.0.0",
|
"eager-async-pool": "^1.0.0",
|
||||||
|
|
|
@ -2209,7 +2209,8 @@ async function _onUpdate(
|
||||||
break
|
break
|
||||||
case 'updateUserName':
|
case 'updateUserName':
|
||||||
if (upd.userId === this._userId) {
|
if (upd.userId === this._userId) {
|
||||||
this._selfUsername = upd.username || null
|
this._selfUsername =
|
||||||
|
upd.usernames.find((it) => it.active)?.username ?? null
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,7 @@ const sentCodeMap: Record<
|
||||||
'auth.sentCodeTypeMissedCall': 'missed_call',
|
'auth.sentCodeTypeMissedCall': 'missed_call',
|
||||||
'auth.sentCodeTypeEmailCode': 'email',
|
'auth.sentCodeTypeEmailCode': 'email',
|
||||||
'auth.sentCodeTypeSetUpEmailRequired': 'email_required',
|
'auth.sentCodeTypeSetUpEmailRequired': 'email_required',
|
||||||
|
"auth.sentCodeTypeFragmentSms": 'fragment'
|
||||||
}
|
}
|
||||||
|
|
||||||
const nextCodeMap: Record<
|
const nextCodeMap: Record<
|
||||||
|
@ -23,6 +24,7 @@ const nextCodeMap: Record<
|
||||||
'auth.codeTypeFlashCall': 'flash_call',
|
'auth.codeTypeFlashCall': 'flash_call',
|
||||||
'auth.codeTypeSms': 'sms',
|
'auth.codeTypeSms': 'sms',
|
||||||
'auth.codeTypeMissedCall': 'missed_call',
|
'auth.codeTypeMissedCall': 'missed_call',
|
||||||
|
'auth.codeTypeFragmentSms': 'fragment',
|
||||||
}
|
}
|
||||||
|
|
||||||
export namespace SentCode {
|
export namespace SentCode {
|
||||||
|
@ -41,6 +43,7 @@ export namespace SentCode {
|
||||||
| 'missed_call'
|
| 'missed_call'
|
||||||
| 'email'
|
| 'email'
|
||||||
| 'email_required'
|
| 'email_required'
|
||||||
|
| 'fragment'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Type describing next code delivery type.
|
* Type describing next code delivery type.
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
"@types/node": "^15.12.1",
|
"@types/node": "^15.12.1",
|
||||||
"@types/events": "^3.0.0",
|
"@types/events": "^3.0.0",
|
||||||
"@types/long": "^4.0.2",
|
"@types/long": "^4.0.2",
|
||||||
"@mtcute/tl": "workspace:^147.0.0",
|
"@mtcute/tl": "workspace:^150.0.0",
|
||||||
"@mtcute/tl-runtime": "workspace:^1.0.0",
|
"@mtcute/tl-runtime": "workspace:^1.0.0",
|
||||||
"big-integer": "1.6.48",
|
"big-integer": "1.6.48",
|
||||||
"long": "^4.0.0",
|
"long": "^4.0.0",
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
"build": "tsc"
|
"build": "tsc"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mtcute/tl": "workspace:^147.0.0",
|
"@mtcute/tl": "workspace:^150.0.0",
|
||||||
"@mtcute/core": "workspace:^1.0.0",
|
"@mtcute/core": "workspace:^1.0.0",
|
||||||
"@mtcute/client": "workspace:^1.0.0",
|
"@mtcute/client": "workspace:^1.0.0",
|
||||||
"events": "^3.2.0"
|
"events": "^3.2.0"
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
"build": "tsc"
|
"build": "tsc"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mtcute/tl": "workspace:^147.0.0",
|
"@mtcute/tl": "workspace:^150.0.0",
|
||||||
"@mtcute/tl-runtime": "workspace:^1.0.0",
|
"@mtcute/tl-runtime": "workspace:^1.0.0",
|
||||||
"@mtcute/core": "workspace:^1.0.0",
|
"@mtcute/core": "workspace:^1.0.0",
|
||||||
"long": "^4.0.0"
|
"long": "^4.0.0"
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
"docs": "typedoc"
|
"docs": "typedoc"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mtcute/tl": "workspace:^147.0.0",
|
"@mtcute/tl": "workspace:^150.0.0",
|
||||||
"htmlparser2": "^6.0.1",
|
"htmlparser2": "^6.0.1",
|
||||||
"long": "^4.0.0"
|
"long": "^4.0.0"
|
||||||
},
|
},
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
"docs": "typedoc"
|
"docs": "typedoc"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mtcute/tl": "workspace:^147.0.0",
|
"@mtcute/tl": "workspace:^150.0.0",
|
||||||
"long": "^4.0.0"
|
"long": "^4.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
> TL schema and related utils used for mtcute.
|
> TL schema and related utils used for mtcute.
|
||||||
|
|
||||||
Generated from TL layer **147** (last updated on 30.10.2022).
|
Generated from TL layer **150** (last updated on 07.12.2022).
|
||||||
|
|
||||||
## About
|
## About
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -103,6 +103,8 @@
|
||||||
"updateChannelMessageForwards": ["channel_id"],
|
"updateChannelMessageForwards": ["channel_id"],
|
||||||
"updateChannelMessageViews": ["channel_id"],
|
"updateChannelMessageViews": ["channel_id"],
|
||||||
"updateChannelParticipant": ["channel_id", "actor_id", "user_id"],
|
"updateChannelParticipant": ["channel_id", "actor_id", "user_id"],
|
||||||
|
"updateChannelPinnedTopic": ["channel_id"],
|
||||||
|
"updateChannelPinnedTopics": ["channel_id"],
|
||||||
"updateChannelReadMessagesContents": ["channel_id"],
|
"updateChannelReadMessagesContents": ["channel_id"],
|
||||||
"updateChannelTooLong": ["channel_id"],
|
"updateChannelTooLong": ["channel_id"],
|
||||||
"updateChannelUserTyping": ["channel_id"],
|
"updateChannelUserTyping": ["channel_id"],
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@mtcute/tl",
|
"name": "@mtcute/tl",
|
||||||
"version": "147.0.0",
|
"version": "150.0.0",
|
||||||
"description": "TL schema used for mtcute",
|
"description": "TL schema used for mtcute",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"author": "Alina Sireneva <me@tei.su>",
|
"author": "Alina Sireneva <me@tei.su>",
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue