From 47ce25fce2fc02a6d325ebf05e5239b68e37d5b5 Mon Sep 17 00:00:00 2001 From: morethanwords Date: Fri, 19 Jun 2020 14:49:55 +0300 Subject: [PATCH] Folders almost ready New CSS Polls --- src/components/appSelectPeers.ts | 120 ++- src/components/emoticonsDropdown.ts | 4 +- src/components/misc.ts | 18 +- src/components/poll.ts | 44 +- src/components/popupCreatePoll.ts | 5 +- src/components/scrollable_new.ts | 14 +- src/components/sidebarLeft/chatFolders.ts | 187 ++++ src/components/sidebarLeft/contacts.ts | 6 +- src/components/sidebarLeft/editFolder.ts | 249 +++++ src/components/sidebarLeft/includedChats.ts | 186 ++++ src/components/sidebarLeft/settings.ts | 7 +- src/components/slider.ts | 26 +- src/index.hbs | 92 +- src/lib/appManagers/appDialogsManager.ts | 689 +++++++++----- src/lib/appManagers/appMessagesManager.ts | 916 ++++++++++++++----- src/lib/appManagers/appPeersManager.ts | 7 +- src/lib/appManagers/appSidebarLeft.ts | 28 +- src/lib/appManagers/appSidebarRight.ts | 2 +- src/lib/appManagers/appUsersManager.ts | 41 +- src/lib/lottieLoader.ts | 15 + src/lib/mtproto/schema.ts | 2 +- src/lib/utils.js | 11 + src/pages/pageAuthCode.ts | 22 +- src/pages/pagePassword.ts | 11 +- src/scss/partials/_chat.scss | 72 +- src/scss/partials/_chatBubble.scss | 86 +- src/scss/partials/_chatlist.scss | 13 +- src/scss/partials/_emojiDropdown.scss | 71 +- src/scss/partials/_leftSidebar.scss | 227 +++++ src/scss/partials/_rightSidebar.scss | 6 +- src/scss/partials/_selector.scss | 4 + src/scss/partials/_sidebar.scss | 6 +- src/scss/partials/_slider.scss | 2 + src/scss/partials/popups/_createPoll.scss | 16 + src/scss/partials/popups/_mediaAttacher.scss | 9 +- src/scss/style.scss | 27 + webpack.common.js | 2 +- 37 files changed, 2578 insertions(+), 665 deletions(-) create mode 100644 src/components/sidebarLeft/chatFolders.ts create mode 100644 src/components/sidebarLeft/editFolder.ts create mode 100644 src/components/sidebarLeft/includedChats.ts diff --git a/src/components/appSelectPeers.ts b/src/components/appSelectPeers.ts index df83335a..82c871aa 100644 --- a/src/components/appSelectPeers.ts +++ b/src/components/appSelectPeers.ts @@ -1,6 +1,6 @@ import Scrollable from "./scrollable_new"; import appMessagesManager, { Dialog } from "../lib/appManagers/appMessagesManager"; -import { $rootScope, cancelEvent, findUpTag, findUpClassName } from "../lib/utils"; +import { $rootScope, cancelEvent, findUpClassName, findUpTag, findUpAttribute } from "../lib/utils"; import appDialogsManager from "../lib/appManagers/appDialogsManager"; import appChatsManager from "../lib/appManagers/appChatsManager"; import appUsersManager from "../lib/appManagers/appUsersManager"; @@ -9,15 +9,16 @@ import appPhotosManager from "../lib/appManagers/appPhotosManager"; export class AppSelectPeers { public container = document.createElement('div'); - private list = document.createElement('ul'); - private chatsContainer = document.createElement('div'); - private scrollable: Scrollable; - private selectedScrollable: Scrollable; + public list = document.createElement('ul'); + public chatsContainer = document.createElement('div'); + public scrollable: Scrollable; + public selectedScrollable: Scrollable; - private selectedContainer = document.createElement('div'); - private input = document.createElement('input'); + public selectedContainer = document.createElement('div'); + public input = document.createElement('input'); - private selected: {[peerID: number]: HTMLDivElement} = {}; + //public selected: {[peerID: number]: HTMLElement} = {}; + public selected = new Set(); public freezed = false; @@ -29,9 +30,13 @@ export class AppSelectPeers { private query = ''; private cachedContacts: number[]; - constructor(private appendTo: HTMLDivElement, private onChange?: (length: number) => void, private peerType: 'contacts' | 'dialogs' = 'dialogs', onFirstRender?: () => void) { + constructor(private appendTo: HTMLElement, private onChange?: (length: number) => void, private peerType: 'contacts' | 'dialogs' = 'dialogs', onFirstRender?: () => void, private renderResultsFunc?: (peerIDs: number[]) => void) { this.container.classList.add('selector'); + if(!this.renderResultsFunc) { + this.renderResultsFunc = this.renderResults; + } + let topContainer = document.createElement('div'); topContainer.classList.add('selector-search-container'); @@ -49,27 +54,23 @@ export class AppSelectPeers { this.scrollable = new Scrollable(this.chatsContainer); this.scrollable.setVirtualContainer(this.list); - this.list.addEventListener('click', (e) => { - let target = e.target as HTMLElement; + this.chatsContainer.addEventListener('click', (e) => { + const target = findUpAttribute(e.target, 'data-peerID') as HTMLElement; cancelEvent(e); - if(this.freezed) return; - - if(target.tagName != 'LI') { - target = findUpTag(target, 'LI'); - } - if(!target) return; + if(this.freezed) return; - let peerID = +target.getAttribute('data-peerID'); + let key: any = target.getAttribute('data-peerID'); + key = +key || key; target.classList.toggle('active'); - if(peerID in this.selected) { - this.remove(peerID); + if(this.selected.has(key)) { + this.remove(key); } else { - this.add(peerID); + this.add(key); } - let checkbox = target.querySelector('input') as HTMLInputElement; + const checkbox = target.querySelector('input') as HTMLInputElement; checkbox.checked = !checkbox.checked; }); @@ -80,9 +81,13 @@ export class AppSelectPeers { if(!target) return; - let peerID = target.dataset.peerID; - let li = this.list.querySelector('[data-peerid="' + peerID + '"]') as HTMLElement; - li.click(); + const peerID = target.dataset.key; + const li = this.chatsContainer.querySelector('[data-peerid="' + peerID + '"]') as HTMLElement; + if(!li) { + this.remove(+peerID || peerID); + } else { + li.click(); + } }); this.input.addEventListener('input', () => { @@ -110,12 +115,15 @@ export class AppSelectPeers { this.container.append(topContainer, delimiter, this.chatsContainer); appendTo.append(this.container); - let getResultsPromise = this.getMoreResults() as Promise; - if(onFirstRender) { - getResultsPromise.then(() => { - onFirstRender(); - }); - } + // WARNING TIMEOUT + setTimeout(() => { + let getResultsPromise = this.getMoreResults() as Promise; + if(onFirstRender) { + getResultsPromise.then(() => { + onFirstRender(); + }); + } + }, 0); } private async getMoreDialogs() { @@ -144,7 +152,7 @@ export class AppSelectPeers { this.offsetIndex = newOffsetIndex; - this.renderResults(dialogs.map(dialog => dialog.peerID)); + this.renderResultsFunc(dialogs.map(dialog => dialog.peerID)); this.promise = null; } @@ -162,7 +170,7 @@ export class AppSelectPeers { if(this.cachedContacts.length) { const pageCount = appPhotosManager.windowH / 72 * 1.25 | 0; const arr = this.cachedContacts.splice(0, pageCount); - this.renderResults(arr); + this.renderResultsFunc(arr); } } @@ -178,7 +186,10 @@ export class AppSelectPeers { //console.log('will renderResults:', peerIDs); peerIDs.forEach(peerID => { const {dom} = appDialogsManager.addDialog(peerID, this.scrollable, false, false); - dom.containerEl.insertAdjacentHTML('afterbegin', '
'); + + const selected = this.selected.has(peerID); + dom.containerEl.insertAdjacentHTML('afterbegin', `
`); + if(selected) dom.listEl.classList.add('active'); let subtitle = ''; if(peerID < 0) { @@ -196,40 +207,53 @@ export class AppSelectPeers { }); } - private add(peerID: number) { + public add(peerID: any, title?: string) { + console.trace('add'); const div = document.createElement('div'); div.classList.add('selector-user', 'scale-in'); - div.dataset.peerID = '' + peerID; - this.selected[peerID] = div; - - const title = appPeersManager.getPeerTitle(peerID, false, true); const avatarEl = document.createElement('avatar-element'); avatarEl.classList.add('selector-user-avatar', 'tgico'); avatarEl.setAttribute('dialog', '1'); - avatarEl.setAttribute('peer', '' + peerID); - div.innerHTML = title; + div.dataset.key = '' + peerID; + this.selected.add(peerID); + if(typeof(peerID) === 'number') { + if(title === undefined) { + title = peerID == $rootScope.myID ? 'Saved' : appPeersManager.getPeerTitle(peerID, false, true); + } + + avatarEl.setAttribute('peer', '' + peerID); + } + + if(title) { + div.innerHTML = title; + } + div.insertAdjacentElement('afterbegin', avatarEl); this.selectedContainer.insertBefore(div, this.input); - this.selectedScrollable.scrollTop = this.selectedScrollable.scrollHeight; - this.onChange && this.onChange(Object.keys(this.selected).length); + //this.selectedScrollable.scrollTop = this.selectedScrollable.scrollHeight; + this.selectedScrollable.scrollTo(this.selectedScrollable.scrollHeight, true, true); + this.onChange && this.onChange(this.selected.size); + + return div; } - private remove(peerID: number) { - const div = this.selected[peerID]; + public remove(key: any) { + //const div = this.selected[peerID]; + const div = this.selectedContainer.querySelector(`[data-key="${key}"]`) as HTMLElement; div.classList.remove('scale-in'); void div.offsetWidth; div.classList.add('scale-out'); div.addEventListener('animationend', () => { - delete this.selected[peerID]; + this.selected.delete(key); div.remove(); - this.onChange && this.onChange(Object.keys(this.selected).length); + this.onChange && this.onChange(this.selected.size); }, {once: true}); } public getSelected() { - return Object.keys(this.selected).map(p => +p); + return [...this.selected]; } } \ No newline at end of file diff --git a/src/components/emoticonsDropdown.ts b/src/components/emoticonsDropdown.ts index dc486a10..b410166e 100644 --- a/src/components/emoticonsDropdown.ts +++ b/src/components/emoticonsDropdown.ts @@ -320,8 +320,8 @@ class StickersTab implements EmoticonsTab { loop: true, autoplay: false, animationData: JSON.parse(json), - width: 40, - height: 40 + width: 32, + height: 32 }, EMOTICONSSTICKERGROUP); }); diff --git a/src/components/misc.ts b/src/components/misc.ts index 824340e3..12126d55 100644 --- a/src/components/misc.ts +++ b/src/components/misc.ts @@ -5,6 +5,7 @@ let rippleClickID = 0; export function ripple(elem: HTMLElement, callback: (id: number) => Promise = () => Promise.resolve(), onEnd: (id: number) => void = null) { //return; if(elem.querySelector('.c-ripple')) return; + elem.classList.add('rp'); let r = document.createElement('div'); r.classList.add('c-ripple'); @@ -250,13 +251,28 @@ export function horizontalMenu(tabs: HTMLElement, content: HTMLElement, onClick? let prevTabContent: HTMLElement = null; let prevId = -1; - const selectTab = async(id: number) => { + const selectTab = (id: number) => { if(id == prevId) return false; //console.log('selectTab id:', id); const p = prevTabContent; const tabContent = content.children[id] as HTMLElement; + + if(content.dataset.slider == 'none') { + if(p) { + p.classList.remove('active'); + } + + tabContent.classList.add('active'); + + prevId = id; + prevTabContent = tabContent; + + if(onTransitionEnd) onTransitionEnd(); + return; + } + const toRight = prevId < id; if(prevId != -1) { if(tabs || content.dataset.slider == 'tabs') { diff --git a/src/components/poll.ts b/src/components/poll.ts index 7e461310..4e7d12c7 100644 --- a/src/components/poll.ts +++ b/src/components/poll.ts @@ -241,6 +241,10 @@ export default class PollElement extends HTMLElement { this.classList.add('is-quiz'); if(poll.close_period && poll.close_date) { + const timeLeftDiv = document.createElement('div'); + timeLeftDiv.classList.add('poll-time'); + this.descDiv.append(timeLeftDiv); + const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg"); //svg.setAttributeNS(null, 'viewBox', '0 0 15 15'); svg.classList.add('poll-quiz-timer'); @@ -248,30 +252,52 @@ export default class PollElement extends HTMLElement { this.quizTimer = svg; const strokeWidth = 2; - const radius = (15 / 2) - (strokeWidth * 2); + const radius = 7; const circumference = 2 * Math.PI * radius; const circle = document.createElementNS("http://www.w3.org/2000/svg", "circle"); circle.classList.add('poll-quiz-timer-circle'); - circle.setAttributeNS(null, 'cx', '15'); - circle.setAttributeNS(null, 'cy', '15'); + circle.setAttributeNS(null, 'cx', '16'); + circle.setAttributeNS(null, 'cy', '16'); circle.setAttributeNS(null, 'r', '' + radius); + circle.setAttributeNS(null, 'stroke-width', '' + strokeWidth); svg.append(circle); - this.descDiv.append(svg); - + const period = poll.close_period * 1000; const closeTime = (poll.close_date - serverTimeManager.serverTimeOffset) * 1000; + + // let time = Date.now(); + // let percents = (closeTime - time) / period; + + // timeLeftDiv.innerHTML = String((closeTime - time) / 1000 + 1 | 0).toHHMMSS(); + + // // @ts-ignore + // circle.style.strokeDashoffset = circumference + percents * circumference; + // circle.style.strokeDasharray = ${circumference} ${circumference}; + this.quizInterval = setInterval(() => { const time = Date.now(); - - const totalLength = circle.getTotalLength(); const percents = (closeTime - time) / period; - circle.style.strokeDasharray = '' + (percents * totalLength) + ', ' + circumference; + const timeLeft = (closeTime - time) / 1000 + 1 | 0; + timeLeftDiv.innerHTML = String(timeLeft).toHHMMSS(); + + if (timeLeft <= 5) { + timeLeftDiv.style.color = '#ee545c'; + circle.style.stroke = '#ee545c'; + } + //timeLeftDiv.style.visibility = 'visible'; + + // @ts-ignore + circle.style.strokeDashoffset = circumference + percents * circumference; + circle.style.strokeDasharray = `${circumference} ${circumference}`; if(time >= closeTime) { clearInterval(this.quizInterval); + timeLeftDiv.innerHTML = ''; + // @ts-ignore + circle.style.strokeDashoffset = circumference; this.quizInterval = 0; // нужно запросить апдейт чтобы опрос обновился @@ -487,7 +513,7 @@ export default class PollElement extends HTMLElement { * все приложения накладывают аватарку первую на вторую, а в макете зато вторая на первую, ЛОЛ! */ results.recent_voters/* .slice().reverse() */.forEach((userID, idx) => { - const style = idx == 0 ? '' : `style="transform: translateX(-${idx * 5}px);"`; + const style = idx == 0 ? '' : `style="transform: translateX(-${idx * 3}px);"`; html += ``; }); this.avatarsDiv.innerHTML = html; diff --git a/src/components/popupCreatePoll.ts b/src/components/popupCreatePoll.ts index 1799af11..0ae34efe 100644 --- a/src/components/popupCreatePoll.ts +++ b/src/components/popupCreatePoll.ts @@ -29,17 +29,20 @@ export default class PopupCreatePoll extends PopupElement { this.title.innerText = 'New Poll'; - const questionField = InputField('Ask a question', 'Ask a question', 'question'); + const questionField = InputField('Ask a Question', 'Ask a Question', 'question'); this.questionInput = questionField.firstElementChild as HTMLInputElement; this.header.append(questionField); + const hr = document.createElement('hr'); const d = document.createElement('div'); + d.classList.add('caption'); d.innerText = 'Options'; this.questions = document.createElement('div'); this.questions.classList.add('poll-create-questions'); + this.body.parentElement.insertBefore(hr, this.body); this.body.append(d, this.questions); this.confirmBtn.addEventListener('click', this.onSubmitClick); diff --git a/src/components/scrollable_new.ts b/src/components/scrollable_new.ts index 34c56acb..bca365eb 100644 --- a/src/components/scrollable_new.ts +++ b/src/components/scrollable_new.ts @@ -82,6 +82,8 @@ export default class Scrollable { public scrollLocked = 0; public isVisible = false; + private reorderTimeout: number; + private setVisible(element: HTMLElement) { if(this.visible.has(element)) return; @@ -373,9 +375,15 @@ export default class Scrollable { } public reorder() { - (Array.from(this.splitUp.children) as HTMLElement[]).forEach((el, idx) => { - el.dataset.virtual = '' + idx; - }); + if(!this.splitUp || this.reorderTimeout) return; + + this.reorderTimeout = setTimeout(() => { + this.reorderTimeout = 0; + + (Array.from(this.splitUp.children) as HTMLElement[]).forEach((el, idx) => { + el.dataset.virtual = '' + idx; + }); + }, 0); } public updateElement(element: HTMLElement) { diff --git a/src/components/sidebarLeft/chatFolders.ts b/src/components/sidebarLeft/chatFolders.ts new file mode 100644 index 00000000..6ca54669 --- /dev/null +++ b/src/components/sidebarLeft/chatFolders.ts @@ -0,0 +1,187 @@ +import { SliderTab } from "../slider"; +import lottieLoader, { RLottiePlayer } from "../../lib/lottieLoader"; +import apiManager from "../../lib/mtproto/mtprotoworker"; +import appMessagesManager, { DialogFilter } from "../../lib/appManagers/appMessagesManager"; +import { RichTextProcessor } from "../../lib/richtextprocessor"; +import appPeersManager from "../../lib/appManagers/appPeersManager"; +import { ripple } from "../misc"; +import { $rootScope, cancelEvent } from "../../lib/utils"; +import appSidebarLeft from "../../lib/appManagers/appSidebarLeft"; + +type DialogFilterSuggested = { + _: 'dialogFilterSuggested', + filter: DialogFilter, + description: string +}; + +export default class AppChatFoldersTab implements SliderTab { + public container: HTMLElement; + public createFolderBtn: HTMLElement; + private foldersContainer: HTMLElement; + private suggestedContainer: HTMLElement; + private stickerContainer: HTMLElement; + private animation: RLottiePlayer; + + private filtersRendered: {[filterID: number]: HTMLElement} = {}; + + private renderFolder(dialogFilter: DialogFilterSuggested | DialogFilter, container?: HTMLElement, div: HTMLElement = document.createElement('div')) { + let filter: DialogFilter; + let description = ''; + let d: string[] = []; + if(dialogFilter._ == 'dialogFilterSuggested') { + filter = dialogFilter.filter; + description = dialogFilter.description; + } else { + filter = dialogFilter; + description = ''; + + const filterID = filter.id; + if(!this.filtersRendered.hasOwnProperty(filter.id)) { + div.addEventListener('click', () => { + appSidebarLeft.editFolderTab.open(appMessagesManager.filtersStorage.filters[filterID]); + }); + } + + this.filtersRendered[filter.id] = div; + + let enabledFilters = Object.keys(filter.pFlags).length; + /* (['include_peers', 'exclude_peers'] as ['include_peers', 'exclude_peers']).forEach(key => { + enabledFilters += +!!filter[key].length; + }); */ + + if(enabledFilters == 1) { + description = 'All '; + + const pFlags = filter.pFlags; + if(pFlags.contacts) description += 'Contacts'; + else if(pFlags.non_contacts) description += 'Non-Contacts'; + else if(pFlags.groups) description += 'Groups'; + else if(pFlags.broadcasts) description += 'Channels'; + else if(pFlags.bots) description += 'Bots'; + else if(pFlags.exclude_muted) description += 'Unmuted'; + else if(pFlags.exclude_read) description += 'Unread'; + else if(pFlags.exclude_archived) description += 'Unarchived'; + d.push(description); + } else { + const folder = appMessagesManager.dialogsStorage.getFolder(filter.id); + let chats = 0, channels = 0, groups = 0; + for(const dialog of folder) { + if(appPeersManager.isAnyGroup(dialog.peerID)) groups++; + else if(appPeersManager.isBroadcast(dialog.peerID)) channels++; + else chats++; + } + + if(chats) d.push(chats + ' chats'); + if(channels) d.push(channels + ' channels'); + if(groups) d.push(groups + ' groups'); + } + } + + div.classList.add('category'); + div.innerHTML = ` +
+

${RichTextProcessor.wrapEmojiText(filter.title)}

+

${d.length ? d.join(', ') : description}

+
+ `; + ripple(div); + + if(container) container.append(div); + return div; + } + + init() { + this.container = document.querySelector('.chat-folders-container'); + this.stickerContainer = this.container.querySelector('.sticker-container'); + this.foldersContainer = this.container.querySelector('.folders-my'); + this.suggestedContainer = this.container.querySelector('.folders-suggested'); + this.createFolderBtn = this.container.querySelector('.btn-create-folder'); + + this.createFolderBtn.addEventListener('click', () => { + appSidebarLeft.editFolderTab.open(); + }); + + lottieLoader.loadAnimationFromURL({ + container: this.stickerContainer, + loop: false, + autoplay: true, + width: 86, + height: 86 + }, 'assets/img/Folders_1.tgs').then(player => { + this.animation = player; + }); + + appMessagesManager.filtersStorage.getDialogFilters().then(filters => { + for(const filterID in filters) { + const filter = filters[filterID]; + this.renderFolder(filter, this.foldersContainer); + } + }); + + $rootScope.$on('filter_update', (e: CustomEvent) => { + const filter: DialogFilter = e.detail; + if(this.filtersRendered.hasOwnProperty(filter.id)) { + this.renderFolder(filter, null, this.filtersRendered[filter.id]); + } else { + this.renderFolder(filter, this.foldersContainer); + } + + this.getSuggestedFilters(); + }); + + $rootScope.$on('filter_delete', (e: CustomEvent) => { + const filter: DialogFilter = e.detail; + if(this.filtersRendered.hasOwnProperty(filter.id)) { + /* for(const suggested of this.suggestedFilters) { + if(deepEqual(suggested.filter, filter)) { + + } + } */ + this.getSuggestedFilters(); + + this.filtersRendered[filter.id].remove(); + delete this.filtersRendered[filter.id] + } + }); + } + + private getSuggestedFilters() { + apiManager.invokeApi('messages.getSuggestedDialogFilters').then(suggestedFilters => { + this.suggestedContainer.style.display = suggestedFilters.length ? '' : 'none'; + Array.from(this.suggestedContainer.children).slice(1).forEach(el => el.remove()); + + (suggestedFilters as DialogFilterSuggested[]).forEach(filter => { + const div = this.renderFolder(filter); + const button = document.createElement('button'); + button.classList.add('btn-primary'); + button.innerText = 'Add'; + div.append(button); + this.suggestedContainer.append(div); + + button.addEventListener('click', (e) => { + cancelEvent(e); + button.setAttribute('disabled', 'true'); + + appMessagesManager.filtersStorage.createDialogFilter(filter.filter).then(bool => { + if(bool) { + div.remove(); + } + }).finally(() => { + button.removeAttribute('disabled'); + }); + }); + }); + }); + } + + onOpen() { + if(this.init) { + this.init(); + this.init = null; + } else { + if(this.animation) { + this.animation.restart(); + } + } + } +} diff --git a/src/components/sidebarLeft/contacts.ts b/src/components/sidebarLeft/contacts.ts index 94994733..a37e0bc1 100644 --- a/src/components/sidebarLeft/contacts.ts +++ b/src/components/sidebarLeft/contacts.ts @@ -27,7 +27,7 @@ export default class AppContactsTab implements SliderTab { this.container.firstElementChild.append(this.searchInput.container); // preload contacts - appUsersManager.getContacts(); + // appUsersManager.getContacts(); } // need to clear, and left 1 page for smooth slide @@ -49,7 +49,7 @@ export default class AppContactsTab implements SliderTab { if(this.promise) return this.promise; this.scrollable.onScrolledBottom = null; - this.promise = appUsersManager.getContacts(query).then(contacts => { + this.promise = appUsersManager.getContacts(query).then(_contacts => { this.promise = null; if(appSidebarLeft.historyTabIDs[appSidebarLeft.historyTabIDs.length - 1] != AppSidebarLeft.SLIDERITEMSIDS.contacts) { @@ -57,7 +57,7 @@ export default class AppContactsTab implements SliderTab { return; } - contacts = contacts.slice(); + const contacts = [..._contacts]; contacts.findAndSplice(u => u == $rootScope.myID); let sorted = contacts diff --git a/src/components/sidebarLeft/editFolder.ts b/src/components/sidebarLeft/editFolder.ts new file mode 100644 index 00000000..7541a961 --- /dev/null +++ b/src/components/sidebarLeft/editFolder.ts @@ -0,0 +1,249 @@ +import { SliderTab } from "../slider"; +import appSidebarLeft, { AppSidebarLeft } from "../../lib/appManagers/appSidebarLeft"; +import lottieLoader, { RLottiePlayer } from "../../lib/lottieLoader"; +import appMessagesManager, { DialogFilter, Dialog } from "../../lib/appManagers/appMessagesManager"; +import { parseMenuButtonsTo, ripple, toast } from "../misc"; +import appDialogsManager from "../../lib/appManagers/appDialogsManager"; +import { copy, deepEqual } from "../../lib/utils"; + +export default class AppEditFolderTab implements SliderTab { + public container: HTMLElement; + private closeBtn: HTMLElement; + private title: HTMLElement; + private caption: HTMLElement; + private stickerContainer: HTMLElement; + + private confirmBtn: HTMLElement; + private menuBtn: HTMLElement; + private deleteFolderBtn: HTMLElement; + private nameInput: HTMLInputElement; + + private include_peers: HTMLElement; + private exclude_peers: HTMLElement; + private flags: {[k in 'contacts' | 'non_contacts' | 'groups' | 'broadcasts' | 'bots' | 'exclude_muted' | 'exclude_archived' | 'exclude_read']: HTMLElement} = {} as any; + + private animation: RLottiePlayer; + private filter: DialogFilter; + private originalFilter: DialogFilter; + + private type: 'edit' | 'create'; + + init() { + this.container = document.querySelector('.edit-folder-container'); + this.closeBtn = this.container.querySelector('.sidebar-close-button'); + this.title = this.container.querySelector('.sidebar-header__title'); + this.caption = this.container.querySelector('.caption'); + this.stickerContainer = this.container.querySelector('.sticker-container'); + + this.confirmBtn = this.container.querySelector('.btn-confirm'); + this.menuBtn = this.container.querySelector('.btn-menu-toggle'); + this.deleteFolderBtn = this.menuBtn.querySelector('.menu-delete'); + this.nameInput = this.container.querySelector('#folder-name'); + + this.include_peers = this.container.querySelector('.folder-list-included'); + this.exclude_peers = this.container.querySelector('.folder-list-excluded'); + + const includedFlagsContainer = this.include_peers.querySelector('.folder-categories'); + const excludedFlagsContainer = this.exclude_peers.querySelector('.folder-categories'); + parseMenuButtonsTo(this.flags, includedFlagsContainer.children); + parseMenuButtonsTo(this.flags, excludedFlagsContainer.children); + + includedFlagsContainer.firstElementChild.addEventListener('click', () => { + appSidebarLeft.includedChatsTab.open(this.filter, 'included'); + }); + + excludedFlagsContainer.firstElementChild.addEventListener('click', () => { + appSidebarLeft.includedChatsTab.open(this.filter, 'excluded'); + }); + + lottieLoader.loadAnimationFromURL({ + container: this.stickerContainer, + loop: true, + autoplay: true, + width: 86, + height: 86 + }, 'assets/img/Folders_2.tgs').then(player => { + this.animation = player; + }); + + this.deleteFolderBtn.addEventListener('click', () => { + this.deleteFolderBtn.setAttribute('disabled', 'true'); + appMessagesManager.filtersStorage.updateDialogFilter(this.filter, true).then(bool => { + if(bool) { + this.closeBtn.click(); + } + }).finally(() => { + this.deleteFolderBtn.removeAttribute('disabled'); + }); + }); + + this.confirmBtn.addEventListener('click', () => { + if(!this.nameInput.value.trim()) { + this.nameInput.classList.add('error'); + return; + } + + let include = (Array.from(includedFlagsContainer.children) as HTMLElement[]).slice(1).reduce((acc, el) => acc + +!el.style.display, 0); + if(this.include_peers.lastElementChild.tagName == 'UL') { + include += this.include_peers.lastElementChild.childElementCount; + } + + if(!include) { + toast('Please choose at least one chat for this folder.'); + return; + } + + this.confirmBtn.setAttribute('disabled', 'true'); + + let promise: Promise; + if(!this.filter.id) { + promise = appMessagesManager.filtersStorage.createDialogFilter(this.filter); + } else { + promise = appMessagesManager.filtersStorage.updateDialogFilter(this.filter); + } + + promise.then(bool => { + if(bool) { + this.closeBtn.click(); + } + }).finally(() => { + this.confirmBtn.removeAttribute('disabled'); + }); + }); + + this.nameInput.addEventListener('input', () => { + this.filter.title = this.nameInput.value; + this.nameInput.classList.remove('error'); + + this.editCheckForChange(); + }); + } + + onOpen() { + if(this.init) { + this.init(); + this.init = null; + } else { + if(this.animation) { + this.animation.restart(); + } + } + } + + onCloseAfterTimeout() { + Array.from(this.container.querySelectorAll('ul, .show-more')).forEach(el => el.remove()); + } + + private onCreateOpen() { + this.caption.style.display = ''; + this.title.innerText = 'New Folder'; + this.menuBtn.classList.add('hide'); + this.confirmBtn.classList.remove('hide'); + this.nameInput.value = ''; + + for(const flag in this.flags) { + // @ts-ignore + this.flags[flag].style.display = 'none'; + } + } + + private onEditOpen() { + this.caption.style.display = 'none'; + this.title.innerText = this.type == 'create' ? 'New Folder' : 'Edit Folder'; + + if(this.type == 'edit') { + this.menuBtn.classList.remove('hide'); + this.confirmBtn.classList.add('hide'); + } + + const filter = this.filter; + this.nameInput.value = filter.title; + + for(const flag in this.flags) { + // @ts-ignore + this.flags[flag].style.display = !!filter.pFlags[flag] ? '' : 'none'; + } + + (['include_peers', 'exclude_peers'] as ['include_peers', 'exclude_peers']).forEach(key => { + const container = this[key]; + const ul = document.createElement('ul'); + + const peers = filter[key].slice(); + + const renderMore = (_length: number) => { + for(let i = 0, length = Math.min(peers.length, _length); i < length; ++i) { + const peerID = peers.shift(); + + const {dom} = appDialogsManager.addDialog(peerID, ul, false, false, undefined, true); + dom.lastMessageSpan.parentElement.remove(); + } + + if(peers.length) { + showMore.innerHTML = `
Show ${Math.min(20, peers.length)} more chat${peers.length > 1 ? 's' : ''}
`; + } else if(showMore) { + showMore.remove(); + } + }; + + container.append(ul); + + let showMore: HTMLElement; + if(peers.length) { + showMore = document.createElement('div'); + showMore.classList.add('show-more'); + showMore.addEventListener('click', () => renderMore(20)); + + showMore.innerHTML = `
Show ${Math.min(20, peers.length)} more chat${peers.length > 1 ? 's' : ''}
`; + ripple(showMore); + container.append(showMore); + } + + renderMore(4); + }); + } + + editCheckForChange() { + if(this.type == 'edit') { + const changed = !deepEqual(this.originalFilter, this.filter); + this.confirmBtn.classList.toggle('hide', !changed); + this.menuBtn.classList.toggle('hide', changed); + } + }; + + setFilter(filter: DialogFilter, firstTime: boolean) { + // cleanup + this.onCloseAfterTimeout(); + + if(firstTime) { + this.originalFilter = filter; + this.filter = copy(filter); + } else { + this.filter = filter; + this.onEditOpen(); + this.editCheckForChange(); + } + } + + open(filter?: DialogFilter) { + appSidebarLeft.selectTab(AppSidebarLeft.SLIDERITEMSIDS.editFolder); + + if(filter === undefined) { + this.setFilter({ + _: 'dialogFilter', + flags: 0, + id: 0, + title: '', + pFlags: {}, + pinned_peers: [], + include_peers: [], + exclude_peers: [] + }, true); + this.type = 'create'; + this.onCreateOpen(); + } else { + this.setFilter(filter, true); + this.type = 'edit'; + this.onEditOpen(); + } + } +} \ No newline at end of file diff --git a/src/components/sidebarLeft/includedChats.ts b/src/components/sidebarLeft/includedChats.ts new file mode 100644 index 00000000..aa720c19 --- /dev/null +++ b/src/components/sidebarLeft/includedChats.ts @@ -0,0 +1,186 @@ +import { SliderTab } from "../slider"; +import { AppSelectPeers } from "../appSelectPeers"; +import appSidebarLeft, { AppSidebarLeft } from "../../lib/appManagers/appSidebarLeft"; +import appDialogsManager from "../../lib/appManagers/appDialogsManager"; +import appPeersManager from "../../lib/appManagers/appPeersManager"; +import appUsersManager from "../../lib/appManagers/appUsersManager"; +import { $rootScope, copy, deepEqual } from "../../lib/utils"; +import { DialogFilter } from "../../lib/appManagers/appMessagesManager"; + +export default class AppIncludedChatsTab implements SliderTab { + public container: HTMLElement; + private closeBtn: HTMLElement; + private confirmBtn: HTMLElement; + private title: HTMLElement; + + private selector: AppSelectPeers; + private type: 'included' | 'excluded'; + private filter: DialogFilter; + private originalFilter: DialogFilter; + + init() { + this.container = document.querySelector('.included-chats-container'); + this.closeBtn = this.container.querySelector('.sidebar-close-button'); + this.confirmBtn = this.container.querySelector('.btn-confirm'); + this.title = this.container.querySelector('.sidebar-header__title'); + + this.confirmBtn.addEventListener('click', () => { + const selected = this.selector.getSelected(); + + this.filter.pFlags = {}; + + const peers: number[] = []; + for(const key of selected) { + if(typeof(key) === 'number') { + peers.push(key); + } else { + // @ts-ignore + this.filter.pFlags[key] = true; + } + } + + this.filter[this.type == 'included' ? 'include_peers' : 'exclude_peers'] = peers; + + appSidebarLeft.editFolderTab.setFilter(this.filter, false); + this.closeBtn.click(); + }); + } + + checkbox(selected?: boolean) { + return `
`; + } + + renderResults = (peerIDs: number[]) => { + const other = this.type == 'included' ? this.filter.exclude_peers : this.filter.include_peers; + + peerIDs.forEach(peerID => { + if(other.includes(peerID)) return; + + const {dom} = appDialogsManager.addDialog(peerID, this.selector.scrollable, false, false); + + const selected = this.selector.selected.has(peerID); + dom.containerEl.insertAdjacentHTML('beforeend', this.checkbox(selected)); + if(selected) dom.listEl.classList.add('active'); + + let subtitle = ''; + + if(peerID > 0) { + if(peerID == $rootScope.myID) { + subtitle = 'Chat with yourself'; + } else if(appUsersManager.isBot(peerID)) { + subtitle = 'Bot'; + } else { + subtitle = appUsersManager.contactsList.has(peerID) ? 'Contact' : 'Non-Contact'; + } + } else { + subtitle = appPeersManager.isBroadcast(peerID) ? 'Channel' : 'Group'; + } + + dom.lastMessageSpan.innerHTML = subtitle; + }); + }; + + onOpen() { + if(this.init) { + this.init(); + this.init = null; + } + + this.confirmBtn.style.display = this.type == 'excluded' ? '' : 'none'; + this.title.innerText = this.type == 'included' ? 'Included Chats' : 'Excluded Chats'; + + const filter = this.filter; + + const fragment = document.createDocumentFragment(); + const dd = document.createElement('div'); + dd.classList.add('sidebar-left-h2'); + dd.innerText = 'Chat types'; + + const categories = document.createElement('div'); + categories.classList.add('folder-categories'); + + let details: any; + if(this.type == 'excluded') { + details = { + exclude_muted: {ico: 'tgico-mute', text: 'Muted'}, + exclude_archived: {ico: 'tgico-archive', text: 'Archived'}, + exclude_read: {ico: 'tgico-readchats', text: 'Read'} + }; + } else { + details = { + contacts: {ico: 'tgico-newprivate', text: 'Contacts'}, + non_contacts: {ico: 'tgico-noncontacts', text: 'Non-Contacts'}, + groups: {ico: 'tgico-group', text: 'Groups'}, + broadcasts: {ico: 'tgico-newchannel', text: 'Channels'}, + bots: {ico: 'tgico-bots', text: 'Bots'} + }; + } + + let html = ''; + for(const key in details) { + html += `

${details[key].text}

${this.checkbox()}
`; + } + categories.innerHTML = html; + + const hr = document.createElement('hr'); + hr.style.margin = '7px 0 9px'; + + const d = document.createElement('div'); + d.classList.add('sidebar-left-h2'); + d.innerText = 'Chats'; + + fragment.append(dd, categories, hr, d); + + ///////////////// + + const selectedPeers = (this.type == 'included' ? filter.include_peers : filter.exclude_peers).slice(); + + this.selector = new AppSelectPeers(this.container, this.onSelectChange, 'dialogs', null, this.renderResults); + this.selector.selected = new Set(selectedPeers); + this.selector.input.placeholder = 'Search'; + + const _add = this.selector.add.bind(this.selector); + this.selector.add = (peerID, title) => { + const div = _add(peerID, details[peerID]?.text); + if(details[peerID]) { + div.querySelector('avatar-element').classList.add(details[peerID].ico); + } + return div; + }; + + this.selector.list.parentElement.insertBefore(fragment, this.selector.list); + + selectedPeers.forEach(peerID => { + this.selector.add(peerID); + }); + + for(const flag in filter.pFlags) { + // @ts-ignore + if(details.hasOwnProperty(flag) && !!filter.pFlags[flag]) { + (categories.querySelector(`[data-peerID="${flag}"]`) as HTMLElement).click(); + } + } + } + + onSelectChange = (length: number) => { + //const changed = !deepEqual(this.filter, this.originalFilter); + if(this.type == 'included') { + this.confirmBtn.style.display = length ? '' : 'none'; + } + }; + + onCloseAfterTimeout() { + if(this.selector) { + this.selector.container.remove(); + this.selector = null; + } + } + + open(filter: DialogFilter, type: 'included' | 'excluded') { + this.originalFilter = filter; + this.filter = copy(this.originalFilter); + this.type = type; + + appSidebarLeft.selectTab(AppSidebarLeft.SLIDERITEMSIDS.includedChats); + } +} \ No newline at end of file diff --git a/src/components/sidebarLeft/settings.ts b/src/components/sidebarLeft/settings.ts index 62fa0ee2..59ad0d24 100644 --- a/src/components/sidebarLeft/settings.ts +++ b/src/components/sidebarLeft/settings.ts @@ -16,6 +16,7 @@ export default class AppSettingsTab implements SliderTab { private buttons: { edit: HTMLButtonElement, + folders: HTMLButtonElement, general: HTMLButtonElement, notifications: HTMLButtonElement, privacy: HTMLButtonElement, @@ -34,8 +35,12 @@ export default class AppSettingsTab implements SliderTab { }); this.buttons.edit.addEventListener('click', () => { - appSidebarLeft.selectTab(AppSidebarLeft.SLIDERITEMSIDS.editProfile); appSidebarLeft.editProfileTab.fillElements(); + appSidebarLeft.selectTab(AppSidebarLeft.SLIDERITEMSIDS.editProfile); + }); + + this.buttons.folders.addEventListener('click', () => { + appSidebarLeft.selectTab(AppSidebarLeft.SLIDERITEMSIDS.chatFolders); }); } diff --git a/src/components/slider.ts b/src/components/slider.ts index 293f0b80..169129d9 100644 --- a/src/components/slider.ts +++ b/src/components/slider.ts @@ -1,16 +1,20 @@ import { horizontalMenu } from "./misc"; export interface SliderTab { + onOpen?: () => void, + onOpenAfterTimeout?: () => void, onClose?: () => void, onCloseAfterTimeout?: () => void } +const TRANSITIONTIME = 420; + export default class SidebarSlider { protected _selectTab: (id: number) => void; public historyTabIDs: number[] = []; constructor(public sidebarEl: HTMLElement, public tabs: {[id: number]: SliderTab}) { - this._selectTab = horizontalMenu(null, this.sidebarEl.querySelector('.sidebar-slider') as HTMLDivElement, null, null, 420); + this._selectTab = horizontalMenu(null, this.sidebarEl.querySelector('.sidebar-slider') as HTMLDivElement, null, null, TRANSITIONTIME); this._selectTab(0); let onCloseBtnClick = () => { @@ -28,6 +32,20 @@ export default class SidebarSlider { if(this.historyTabIDs[this.historyTabIDs.length - 1] == id) { return; } + + const tab = this.tabs[id]; + if(tab) { + if(tab.onOpen) { + tab.onOpen(); + } + + if(tab.onOpenAfterTimeout) { + setTimeout(() => { + tab.onOpenAfterTimeout(); + }, TRANSITIONTIME); + } + } + this.historyTabIDs.push(id); this._selectTab(id); @@ -41,14 +59,14 @@ export default class SidebarSlider { public onCloseTab(id: number) { let tab = this.tabs[id]; if(tab) { - if('onClose' in tab) { + if(tab.onClose) { tab.onClose(); } - if('onCloseAfterTimeout' in tab) { + if(tab.onCloseAfterTimeout) { setTimeout(() => { tab.onCloseAfterTimeout(); - }, 420); + }, TRANSITIONTIME); } } } diff --git a/src/index.hbs b/src/index.hbs index 57dad505..ae3bbbf6 100644 --- a/src/index.hbs +++ b/src/index.hbs @@ -210,7 +210,21 @@ + + +
diff --git a/src/lib/appManagers/appDialogsManager.ts b/src/lib/appManagers/appDialogsManager.ts index 922759e5..021ce89b 100644 --- a/src/lib/appManagers/appDialogsManager.ts +++ b/src/lib/appManagers/appDialogsManager.ts @@ -1,16 +1,17 @@ import { findUpClassName, $rootScope, escapeRegExp, whichChild, findUpTag, cancelEvent, formatNumber } from "../utils"; import appImManager, { AppImManager } from "./appImManager"; import appPeersManager from './appPeersManager'; -import appMessagesManager, { AppMessagesManager, Dialog } from "./appMessagesManager"; +import appMessagesManager, { AppMessagesManager, Dialog, DialogFilter } from "./appMessagesManager"; import appUsersManager, { User } from "./appUsersManager"; import { RichTextProcessor } from "../richtextprocessor"; -import { ripple, putPreloader, positionMenu, openBtnMenu, parseMenuButtonsTo } from "../../components/misc"; +import { ripple, putPreloader, positionMenu, openBtnMenu, parseMenuButtonsTo, horizontalMenu } from "../../components/misc"; //import Scrollable from "../../components/scrollable"; import Scrollable from "../../components/scrollable_new"; -import { logger } from "../polyfill"; +import { logger, LogLevels } from "../polyfill"; import appChatsManager from "./appChatsManager"; import AvatarElement from "../../components/avatar"; import { PopupButton, PopupPeer } from "../../components/popup"; +import { SliderTab } from "../../components/slider"; type DialogDom = { avatarEl: AvatarElement, @@ -39,106 +40,11 @@ class DialogsContextMenu { } = {} as any; private selectedID: number; private peerType: 'channel' | 'chat' | 'megagroup' | 'group' | 'saved'; + private filterID: number; - constructor(private attachTo: HTMLElement[]) { + constructor() { parseMenuButtonsTo(this.buttons, this.element.children); - const onContextMenu = (e: MouseEvent) => { - let li: HTMLDivElement = null; - - try { - li = findUpTag(e.target, 'LI'); - } catch(e) {} - - if(!li) return; - - e.preventDefault(); - if(this.element.classList.contains('active')) { - return false; - } - e.cancelBubble = true; - - this.selectedID = +li.getAttribute('data-peerID'); - const dialog = appMessagesManager.getDialogByPeerID(this.selectedID)[0]; - const notOurDialog = dialog.peerID != $rootScope.myID; - - // archive button - if(notOurDialog) { - const button = this.buttons.archive; - const condition = dialog.folder_id == 1; - button.classList.toggle('flip-icon', condition); - button.innerText = condition ? 'Unarchive' : 'Archive'; - this.buttons.archive.style.display = ''; - } else { - this.buttons.archive.style.display = 'none'; - } - - // pin button - { - const button = this.buttons.pin; - const condition = dialog.pFlags?.pinned; - button.classList.toggle('flip-icon', condition); - button.innerText = condition ? 'Unpin' : 'Pin'; - } - - // mute button - if(notOurDialog) { - const button = this.buttons.mute; - const condition = dialog.notify_settings && dialog.notify_settings.mute_until > (Date.now() / 1000 | 0); - button.classList.toggle('flip-icon', condition); - button.innerText = condition ? 'Unmute' : 'Mute'; - this.buttons.mute.style.display = ''; - } else { - this.buttons.mute.style.display = 'none'; - } - - // unread button - { - const button = this.buttons.unread; - const condition = !!(dialog.pFlags?.unread_mark || dialog.unread_count); - button.classList.toggle('flip-icon', condition); - button.innerText = condition ? 'Mark as Read' : 'Mark as Unread'; - } - - /* // clear history button - if(appPeersManager.isChannel(this.selectedID)) { - this.buttons.clear.style.display = 'none'; - } else { - this.buttons.clear.style.display = ''; - } */ - - // delete button - let deleteButtonText = ''; - if(appPeersManager.isMegagroup(this.selectedID)) { - deleteButtonText = 'Leave'; - //deleteButtonText = 'Leave group'; - this.peerType = 'megagroup'; - } else if(appPeersManager.isChannel(this.selectedID)) { - deleteButtonText = 'Leave'; - //deleteButtonText = 'Leave channel'; - this.peerType = 'channel'; - } else if(this.selectedID < 0) { - deleteButtonText = 'Delete'; - //deleteButtonText = 'Delete and leave'; - this.peerType = 'group'; - } else { - deleteButtonText = 'Delete'; - //deleteButtonText = 'Delete chat'; - this.peerType = this.selectedID == $rootScope.myID ? 'saved' : 'chat'; - } - this.buttons.delete.innerText = deleteButtonText; - - li.classList.add('menu-open'); - positionMenu(e, this.element); - openBtnMenu(this.element, () => { - li.classList.remove('menu-open'); - }); - }; - - this.attachTo.forEach(el => { - el.addEventListener('contextmenu', onContextMenu); - }); - this.buttons.archive.addEventListener('click', () => { let dialog = appMessagesManager.getDialogByPeerID(this.selectedID)[0]; if(dialog) { @@ -147,7 +53,7 @@ class DialogsContextMenu { }); this.buttons.pin.addEventListener('click', () => { - appMessagesManager.toggleDialogPin(this.selectedID); + appMessagesManager.toggleDialogPin(this.selectedID, this.filterID); }); this.buttons.mute.addEventListener('click', () => { @@ -255,11 +161,159 @@ class DialogsContextMenu { popup.show(); }); } + + onContextMenu = (e: MouseEvent) => { + let li: HTMLDivElement = null; + + try { + li = findUpTag(e.target, 'LI'); + } catch(e) {} + + if(!li) return; + + e.preventDefault(); + if(this.element.classList.contains('active')) { + return false; + } + e.cancelBubble = true; + + this.filterID = appDialogsManager.filterID; + + this.selectedID = +li.getAttribute('data-peerID'); + const dialog = appMessagesManager.getDialogByPeerID(this.selectedID)[0]; + const notOurDialog = dialog.peerID != $rootScope.myID; + + // archive button + if(notOurDialog) { + const button = this.buttons.archive; + const condition = dialog.folder_id == 1; + button.classList.toggle('flip-icon', condition); + button.innerText = condition ? 'Unarchive' : 'Archive'; + this.buttons.archive.style.display = ''; + } else { + this.buttons.archive.style.display = 'none'; + } + + // pin button + { + const button = this.buttons.pin; + //const condition = !!dialog.pFlags?.pinned; + const condition = this.filterID > 1 ? appMessagesManager.filtersStorage.filters[this.filterID].pinned_peers.includes(dialog.peerID) : !!dialog.pFlags?.pinned; + button.classList.toggle('flip-icon', condition); + button.innerText = condition ? 'Unpin' : 'Pin'; + } + + // mute button + if(notOurDialog) { + const button = this.buttons.mute; + const condition = dialog.notify_settings && dialog.notify_settings.mute_until > (Date.now() / 1000 | 0); + button.classList.toggle('flip-icon', condition); + button.innerText = condition ? 'Unmute' : 'Mute'; + this.buttons.mute.style.display = ''; + } else { + this.buttons.mute.style.display = 'none'; + } + + // unread button + { + const button = this.buttons.unread; + const condition = !!(dialog.pFlags?.unread_mark || dialog.unread_count); + button.classList.toggle('flip-icon', condition); + button.innerText = condition ? 'Mark as Read' : 'Mark as Unread'; + } + + /* // clear history button + if(appPeersManager.isChannel(this.selectedID)) { + this.buttons.clear.style.display = 'none'; + } else { + this.buttons.clear.style.display = ''; + } */ + + // delete button + let deleteButtonText = ''; + if(appPeersManager.isMegagroup(this.selectedID)) { + deleteButtonText = 'Leave'; + //deleteButtonText = 'Leave group'; + this.peerType = 'megagroup'; + } else if(appPeersManager.isChannel(this.selectedID)) { + deleteButtonText = 'Leave'; + //deleteButtonText = 'Leave channel'; + this.peerType = 'channel'; + } else if(this.selectedID < 0) { + deleteButtonText = 'Delete'; + //deleteButtonText = 'Delete and leave'; + this.peerType = 'group'; + } else { + deleteButtonText = 'Delete'; + //deleteButtonText = 'Delete chat'; + this.peerType = this.selectedID == $rootScope.myID ? 'saved' : 'chat'; + } + this.buttons.delete.innerText = deleteButtonText; + + li.classList.add('menu-open'); + positionMenu(e, this.element); + openBtnMenu(this.element, () => { + li.classList.remove('menu-open'); + }); + }; +} + +export class AppArchivedTab implements SliderTab { + public container = document.getElementById('chats-archived-container') as HTMLDivElement; + public chatList = document.getElementById('dialogs-archived') as HTMLUListElement; + public scroll: Scrollable = null; + public loadedAll: boolean; + public loadDialogsPromise: Promise; + public wasFilterID: number; + + init() { + this.scroll = new Scrollable(this.container, 'y', 'CLA', this.chatList, 500); + this.scroll.setVirtualContainer(this.chatList); + this.scroll.onScrolledBottom = appDialogsManager.onChatsScroll; + ///this.scroll.attachSentinels(); + + appDialogsManager.setListClickListener(this.chatList); + this.chatList.addEventListener('contextmenu', appDialogsManager.contextMenu.onContextMenu); + + window.addEventListener('resize', () => { + setTimeout(appDialogsManager.onChatsScroll, 0); + }); + } + + onOpen() { + if(this.init) { + this.init(); + this.init = null; + } + + this.wasFilterID = appDialogsManager.filterID; + appDialogsManager.scroll = this.scroll; + appDialogsManager.filterID = 1; + appDialogsManager.onTabChange(); + } + + // вообще, так делать нельзя, но нет времени чтобы переделать главный чатлист на слайд... + onOpenAfterTimeout() { + appDialogsManager.chatLists[this.wasFilterID].innerHTML = ''; + } + + onClose() { + appDialogsManager.scroll = appDialogsManager._scroll; + appDialogsManager.filterID = this.wasFilterID; + appDialogsManager.onTabChange(); + } + + onCloseAfterTimeout() { + this.chatList.innerHTML = ''; + } } +export const archivedTab = new AppArchivedTab(); + export class AppDialogsManager { - public chatList = document.getElementById('dialogs') as HTMLUListElement; - public chatListArchived = document.getElementById('dialogs-archived') as HTMLUListElement; + public _chatList = document.getElementById('dialogs') as HTMLUListElement; + public chatList = this._chatList; + public pinnedDelimiter: HTMLDivElement; /* public chatsHidden: Scrollable["hiddenElements"]; public chatsVisible: Scrollable["visibleElements"]; @@ -267,51 +321,58 @@ export class AppDialogsManager { public chatsArchivedVisible: Scrollable["visibleElements"]; */ public doms: {[peerID: number]: DialogDom} = {}; - public domsArchived: {[peerID: number]: DialogDom} = {}; public lastActiveListElement: HTMLElement = null; /* private rippleCallback: (value?: boolean | PromiseLike) => void = null; private lastClickID = 0; private lastGoodClickID = 0; */ - public chatsArchivedContainer = document.getElementById('chats-archived-container') as HTMLDivElement; public chatsContainer = document.getElementById('chats-container') as HTMLDivElement; private chatsPreloader: HTMLDivElement; - //private chatsLoadCount = 0; - //private loadDialogsPromise: Promise; - private loadDialogsPromise: ReturnType; - private loadedAll = false; - private loadedArchivedAll = false; + public loadDialogsPromise: ReturnType; + public loadedAll = false; public scroll: Scrollable = null; - public scrollArchived: Scrollable = null; - - private log = logger('DIALOGS'); - - private contextMenu = new DialogsContextMenu([this.chatList, this.chatListArchived]); + public _scroll: Scrollable = null; + + private log = logger('DIALOGS', LogLevels.log | LogLevels.error | LogLevels.warn | LogLevels.debug); + + public contextMenu = new DialogsContextMenu(); + + public chatLists: {[filterID: number]: HTMLUListElement} = { + 0: this.chatList, + 1: archivedTab.chatList + }; + public filterID = 0; + private folders: {[k in 'menu' | 'container']: HTMLElement} = { + menu: document.getElementById('folders-tabs'), + container: document.getElementById('folders-container') + }; + private filtersRendered: { + [filterID: string]: { + menu: HTMLElement, container: HTMLElement + } + } = {}; - private debug = false; + private accumulateArchivedTimeout: number; constructor() { + this.chatList.addEventListener('contextmenu', this.contextMenu.onContextMenu); this.chatsPreloader = putPreloader(null, true); - this.pinnedDelimiter = document.createElement('div'); - this.pinnedDelimiter.classList.add('pinned-delimiter'); - this.pinnedDelimiter.appendChild(document.createElement('span')); + if(USEPINNEDDELIMITER) { + this.pinnedDelimiter = document.createElement('div'); + this.pinnedDelimiter.classList.add('pinned-delimiter'); + this.pinnedDelimiter.appendChild(document.createElement('span')); + } - this.scroll = new Scrollable(this.chatsContainer, 'y', 'CL', this.chatList, 500); + this.scroll = this._scroll = new Scrollable(this.chatsContainer, 'y', 'CL', this.chatList, 500); + this.scroll.onScrolledBottom = this.onChatsScroll; this.scroll.setVirtualContainer(this.chatList); - this.scroll.onScrolledBottom = this.onChatsScroll.bind(this); //this.scroll.attachSentinels(); - this.scrollArchived = new Scrollable(this.chatsArchivedContainer, 'y', 'CLA', this.chatListArchived, 500); - this.scrollArchived.setVirtualContainer(this.chatListArchived); - this.scrollArchived.onScrolledBottom = this.onChatsArchivedScroll.bind(this); - ///this.scroll.attachSentinels(); - this.setListClickListener(this.chatList); - this.setListClickListener(this.chatListArchived); if(testScroll) { let i = 0; @@ -329,14 +390,6 @@ export class AppDialogsManager { (window as any).addElement = add; } - window.addEventListener('resize', () => { - //this.chatsLoadCount = Math.round(document.body.scrollHeight / 70 * 1.5); - - setTimeout(() => { - this.onChatsArchivedScroll(); - }, 0); - }); - $rootScope.$on('user_update', (e: CustomEvent) => { let userID = e.detail; @@ -377,26 +430,20 @@ export class AppDialogsManager { let dialog = appMessagesManager.getDialogByPeerID(peerID)[0]; if(dialog) { this.setLastMessage(dialog); + this.validateForFilter(); } }); $rootScope.$on('dialogs_multiupdate', (e: CustomEvent) => { - let dialogs = e.detail; - - for(let id in dialogs) { - let dialog = dialogs[id]; + const dialogs = e.detail; - /////console.log('updating dialog:', dialog); - - if(!(dialog.peerID in this.doms)) { - this.addDialog(dialog); - } - - this.setLastMessage(dialog); - this.setDialogPosition(dialog); + for(const id in dialogs) { + const dialog = dialogs[id]; + this.updateDialog(dialog); } this.setPinnedDelimiter(); + this.validateForFilter(); }); $rootScope.$on('dialog_drop', (e: CustomEvent) => { @@ -406,7 +453,7 @@ export class AppDialogsManager { if(dom) { dom.listEl.remove(); delete this.doms[peerID]; - (dialog.folder_id == 1 ? this.scrollArchived : this.scroll).reorder(); + this.scroll.reorder(); } }); @@ -423,6 +470,8 @@ export class AppDialogsManager { if(dialog.peerID == $rootScope.selectedPeerID) { appImManager.updateUnreadByDialog(dialog); } + + this.validateForFilter(); } }); @@ -444,29 +493,190 @@ export class AppDialogsManager { } }); + $rootScope.$on('filter_update', (e: CustomEvent) => { + const filter: DialogFilter = e.detail; + if(!this.filtersRendered[filter.id]) { + this.addFilter(filter); + } else if(filter.id == this.filterID) { // это нет тут смысла вызывать, так как будет dialogs_multiupdate + //this.validateForFilter(); + const folder = appMessagesManager.dialogsStorage.getFolder(filter.id); + this.validateForFilter(); + for(let i = 0, length = folder.length; i < length; ++i) { + const dialog = folder[i]; + this.updateDialog(dialog); + } + } + }); + + $rootScope.$on('filter_delete', (e: CustomEvent) => { + const filter: DialogFilter = e.detail; + const elements = this.filtersRendered[filter.id]; + if(!elements) return; + + // set tab + //(this.folders.menu.firstElementChild.children[Math.max(0, filter.id - 2)] as HTMLElement).click(); + (this.folders.menu.firstElementChild.children[0] as HTMLElement).click(); + + elements.container.remove(); + elements.menu.remove(); + + delete this.chatLists[filter.id]; + delete this.filtersRendered[filter.id]; + + if(!Object.keys(this.filtersRendered).length) { + this.folders.menu.style.display = 'none'; + } + }); + + /* $rootScope.$on('filter_pinned_order', (e: CustomEvent) => { + const {order, id} = e.detail as {order: number[], id: number}; + if(this.prevTabID != id) { + return; + } + + for(const peerID of order) { + this.updateDialog(appMessagesManager.getDialogByPeerID(peerID)[0]); + } + }); */ + + new Scrollable(this.folders.menu.parentElement, 'x'); + const selectTab = horizontalMenu(this.folders.menu, this.folders.container, (id, tabContent) => { + /* if(id != 0) { + id += 1; + } */ + + id = +tabContent.dataset.filterID || 0; + + if(this.filterID == id) return; + + this.scroll.setVirtualContainer(this.chatLists[id]); + this.filterID = id; + this.onTabChange(); + }, () => { + for(const folderID in this.chatLists) { + if(+folderID != this.filterID) { + this.chatLists[folderID].innerHTML = ''; + } + } + }); + + //selectTab(0); + (this.folders.menu.firstElementChild.firstElementChild as HTMLElement).click(); + /* false && */appMessagesManager.loadSavedState().then(() => { - this.loadDialogs().then(result => { - this.setPinnedDelimiter(); - //appSidebarLeft.onChatsScroll(); - this.loadDialogs(true); - }); + return appMessagesManager.filtersStorage.getDialogFilters(); + }).then(filters => { + for(const filterID in filters) { + this.addFilter(filters[filterID]); + } + + return this.loadDialogs(this.filterID); + }).then(result => { + this.setPinnedDelimiter(); + //appSidebarLeft.onChatsScroll(); + this.loadDialogs(1); }); } - public async loadDialogs(archived = false) { + private updateDialog(dialog: Dialog) { + if(!dialog) { + return; + } + + if(!this.doms.hasOwnProperty(dialog.peerID)) { + this.addDialog(dialog); + } + + if(this.getDialogDom(dialog.peerID)) { + this.setLastMessage(dialog); + this.setDialogPosition(dialog); + } + } + + onTabChange = () => { + this.doms = {}; + this.loadedAll = false; + this.lastActiveListElement = null; + this.chatList = this.chatLists[this.filterID]; + this.loadDialogs(this.filterID); + }; + + /** + * Удалит неподходящие чаты из списка, но не добавит их(!) + */ + public validateForFilter() { + if(this.filterID == 0) return; + + const folder = appMessagesManager.dialogsStorage.getFolder(this.filterID); + let affected = false; + for(const _peerID in this.doms) { + const peerID = +_peerID; + + // если больше не подходит по фильтру, удаляем + if(folder.findIndex((dialog) => dialog.peerID == peerID) === -1) { + const listEl = this.doms[peerID].listEl; + listEl.remove(); + affected = true; + + if(this.lastActiveListElement == listEl) { + this.lastActiveListElement = null; + } + } + } + + if(affected) { + this.scroll.reorder(); + } + } + + public addFilter(filter: DialogFilter) { + if(this.filtersRendered[filter.id]) return; + + const li = document.createElement('li'); + const span = document.createElement('span'); + span.innerHTML = RichTextProcessor.wrapEmojiText(filter.title); + li.append(span); + ripple(li); + + this.folders.menu.firstElementChild.append(li); + + const ul = document.createElement('ul'); + const div = document.createElement('div'); + div.append(ul); + div.dataset.filterID = '' + filter.id; + this.folders.container.append(div); + + this.chatLists[filter.id] = ul; + this.setListClickListener(ul); + ul.addEventListener('contextmenu', this.contextMenu.onContextMenu); + + setTimeout(() => { + this.folders.menu.style.display = ''; + }, 0); + + this.filtersRendered[filter.id] = { + menu: li, + container: div + }; + } + + public async loadDialogs(folderID: number) { if(testScroll) { return; } if(this.loadDialogsPromise/* || 1 == 1 */) return this.loadDialogsPromise; - (archived ? this.chatsArchivedContainer : this.chatsContainer).append(this.chatsPreloader); + if(!this.chatList.childElementCount) { + const container = this.chatList.parentElement; + container.append(this.chatsPreloader); + } - let storage = appMessagesManager.dialogsStorage[+archived] || []; + const storage = appMessagesManager.dialogsStorage.getFolder(folderID); let offsetIndex = 0; for(let i = storage.length - 1; i >= 0; --i) { - let dialog = storage[i]; + const dialog = storage[i]; if(this.getDialogDom(dialog.peerID)) { offsetIndex = dialog.index; break; @@ -477,10 +687,10 @@ export class AppDialogsManager { try { //console.time('getDialogs time'); - let loadCount = 50/*this.chatsLoadCount */; - this.loadDialogsPromise = appMessagesManager.getConversations('', offsetIndex, loadCount, +archived); + const loadCount = 50/*this.chatsLoadCount */; + this.loadDialogsPromise = appMessagesManager.getConversations('', offsetIndex, loadCount, folderID); - let result = await this.loadDialogsPromise; + const result = await this.loadDialogsPromise; //console.timeEnd('getDialogs time'); @@ -490,12 +700,11 @@ export class AppDialogsManager { }); } - if(!result.dialogs.length || (archived ? this.scrollArchived.length == result.count : this.scroll.length == result.count)) { // loaded all - if(archived) this.loadedArchivedAll = true; - else this.loadedAll = true; + if(!result.dialogs.length || this.chatList.childElementCount == result.count) { // loaded all + this.loadedAll = true; } - this.debug && this.log('getDialogs ' + loadCount + ' dialogs by offset:', offsetIndex, result, this.scroll.length, archived); + this.log.debug('getDialogs ' + loadCount + ' dialogs by offset:', offsetIndex, result, this.chatList.childElementCount); this.scroll.onScroll(); } catch(err) { this.log.error(err); @@ -505,18 +714,10 @@ export class AppDialogsManager { this.loadDialogsPromise = undefined; } - public onChatsScroll() { + onChatsScroll = () => { if(this.loadedAll || this.loadDialogsPromise) return; - this.log('onChatsScroll'); - - this.loadDialogs(); - } - - public onChatsArchivedScroll() { - if(this.loadedArchivedAll || this.loadDialogsPromise) return; - - this.loadDialogs(true); + this.loadDialogs(this.filterID); } public setListClickListener(list: HTMLUListElement, onFound?: () => void) { @@ -564,13 +765,21 @@ export class AppDialogsManager { }, {capture: true}); } - public setDialogPosition(dialog: Dialog) { - let pos = appMessagesManager.getDialogByPeerID(dialog.peerID)[1]; - let dom = this.getDialogDom(dialog.peerID); + public setDialogPosition(dialog: Dialog, pos?: number) { + const dom = this.getDialogDom(dialog.peerID); + if(!dom) { + return; + } + + if(pos === undefined) { + pos = appMessagesManager.dialogsStorage.getDialog(dialog.peerID, this.filterID)[1]; + } + let prevPos = whichChild(dom.listEl); - let wrongFolder = (dialog.folder_id == 1 && this.chatList == dom.listEl.parentElement) || (dialog.folder_id == 0 && this.chatListArchived == dom.listEl.parentElement); - if(wrongFolder) prevPos = 0xFFFF; + /* let wrongFolder = (dialog.folder_id == 1 && this.chatList == dom.listEl.parentElement) || (dialog.folder_id == 0 && this.chatListArchived == dom.listEl.parentElement); + let wrongFolder = false; + if(wrongFolder) prevPos = 0xFFFF; */ if(prevPos == pos) { return; @@ -578,23 +787,23 @@ export class AppDialogsManager { pos += 1; } - let chatList = dialog.folder_id == 1 ? this.chatListArchived : this.chatList; + const chatList = this.chatList; if(chatList.childElementCount > pos) { chatList.insertBefore(dom.listEl, chatList.children[pos]); } else { chatList.append(dom.listEl); } - (dialog.folder_id == 1 ? this.scrollArchived : this.scroll).reorder(); + this.scroll.reorder(); - this.debug && this.log('setDialogPosition:', dialog, dom, pos); + this.log.debug('setDialogPosition:', dialog, dom, pos); } public setPinnedDelimiter() { if(!USEPINNEDDELIMITER) return; let index = -1; - let dialogs = appMessagesManager.dialogsStorage[0]; + let dialogs = appMessagesManager.dialogsStorage.getFolder(0); for(let dialog of dialogs) { if(dialog.pFlags?.pinned) { index++; @@ -731,7 +940,7 @@ export class AppDialogsManager { dom.lastTimeSpan.innerHTML = timeStr; } else dom.lastTimeSpan.innerHTML = ''; - if((this.doms[peerID] || this.domsArchived[peerID]) == dom) { + if(this.doms[peerID] == dom) { this.setUnreadMessages(dialog); } else { // means search dom.listEl.dataset.mid = lastMessage.mid; @@ -739,18 +948,22 @@ export class AppDialogsManager { } public setUnreadMessages(dialog: Dialog) { - let dom = this.getDialogDom(dialog.peerID); + const dom = this.getDialogDom(dialog.peerID); + + if(dialog.folder_id == 1) { + this.accumulateArchivedUnread(); + } if(!dom) { this.log.error('setUnreadMessages no dom!', dialog); return; } - let lastMessage = appMessagesManager.getMessage(dialog.top_message); + const lastMessage = appMessagesManager.getMessage(dialog.top_message); if(lastMessage._ != 'messageEmpty' && !lastMessage.deleted && lastMessage.from_id == $rootScope.myID && lastMessage.peerID != $rootScope.myID && dialog.read_outbox_max_id) { // maybe comment, 06.20.2020 - let outgoing = (lastMessage.pFlags && lastMessage.pFlags.unread) + const outgoing = (lastMessage.pFlags && lastMessage.pFlags.unread) /* && dialog.read_outbox_max_id != 0 */; // maybe uncomment, 31.01.2020 //console.log('outgoing', outgoing, lastMessage); @@ -766,34 +979,38 @@ export class AppDialogsManager { dom.unreadMessagesSpan.innerText = ''; dom.unreadMessagesSpan.classList.remove('tgico-pinnedchat'); + + const filter = appMessagesManager.filtersStorage.filters[this.filterID]; + let isPinned: boolean; + if(filter) { + isPinned = filter.pinned_peers.findIndex(peerID => peerID == dialog.peerID) !== -1; + } else { + isPinned = !!dialog.pFlags.pinned; + } + if(dialog.unread_count || dialog.pFlags.unread_mark) { //dom.unreadMessagesSpan.innerText = '' + (dialog.unread_count ? formatNumber(dialog.unread_count, 1) : ' '); dom.unreadMessagesSpan.innerText = '' + (dialog.unread_count || ' '); - //dom.unreadMessagesSpan.classList.remove('tgico-pinnedchat'); - dom.unreadMessagesSpan.classList.add(new Date(dialog.notify_settings?.mute_until * 1000) > new Date() ? + dom.unreadMessagesSpan.classList.add((dialog.notify_settings?.mute_until * 1000) > Date.now() ? 'unread-muted' : 'unread'); - } else if(dialog.pFlags.pinned && dialog.folder_id == 0) { + } else if(isPinned) { dom.unreadMessagesSpan.classList.remove('unread', 'unread-muted'); dom.unreadMessagesSpan.classList.add('tgico-pinnedchat'); } + } - // set archived new count - if(dialog.folder_id == 1) { - let sum = Object.keys(this.domsArchived).map(p => +p).reduce((acc: number, peerID: number) => { - let dialog = appMessagesManager.getDialogByPeerID(peerID)[0]; - if(dialog) { - return acc + dialog.unread_count; - } - - return acc; - }, 0); - + public accumulateArchivedUnread() { + if(this.accumulateArchivedTimeout) return; + this.accumulateArchivedTimeout = setTimeout(() => { + this.accumulateArchivedTimeout = 0; + const dialogs = appMessagesManager.dialogsStorage.getFolder(1); + const sum = dialogs.reduce((acc, dialog) => acc + dialog.unread_count, 0); $rootScope.$broadcast('dialogs_archived_unread', {count: sum}); - } + }, 0); } public getDialogDom(peerID: number) { - return this.doms[peerID] || this.domsArchived[peerID]; + return this.doms[peerID]; } public addDialog(_dialog: Dialog | number, container?: HTMLUListElement | Scrollable, drawStatus = true, rippleEnabled = true, onlyFirstName = false, meAsSaved = true) { @@ -815,7 +1032,14 @@ export class AppDialogsManager { let peerID: number = dialog.peerID; - if((this.doms[peerID] || this.domsArchived[peerID]) && !container) return; + if(!container) { + if(this.doms[peerID]) return; + + const filter = appMessagesManager.filtersStorage.filters[this.filterID]; + if((filter && !appMessagesManager.filtersStorage.testDialogForFilter(dialog, filter)) || (!filter && this.filterID != dialog.folder_id)) { + return; + } + } let title = appPeersManager.getPeerTitle(peerID, false, onlyFirstName); @@ -848,15 +1072,18 @@ export class AppDialogsManager { let titleSpan = document.createElement('span'); titleSpan.classList.add('user-title'); - if(peerID < 0) { - let chat = appChatsManager.getChat(-peerID); - if(chat && chat.pFlags && chat.pFlags.verified) { - titleSpan.classList.add('is-verified'); - } - } else { - let user = appUsersManager.getUser(peerID); - if(user && user.pFlags && user.pFlags.verified) { - titleSpan.classList.add('is-verified'); + // в других случаях иконка верификации не нужна (а первый - это главные чатлисты) + if(!container) { + if(peerID < 0) { + let chat = appChatsManager.getChat(-peerID); + if(chat && chat.pFlags && chat.pFlags.verified) { + titleSpan.classList.add('is-verified'); + } + } else { + let user = appUsersManager.getUser(peerID); + if(user && user.pFlags && user.pFlags.verified) { + titleSpan.classList.add('is-verified'); + } } } @@ -932,14 +1159,20 @@ export class AppDialogsManager { listEl: li }; - if(!container) { - if(dialog.folder_id && dialog.folder_id == 1) { - this.scrollArchived.append(li); - this.domsArchived[dialog.peerID] = dom; - } else { - this.scroll.append(li); - this.doms[dialog.peerID] = dom; + /* let good = false; + for(const folderID in this.chatLists) { + if(this.chatLists[folderID] == container) { + good = true; } + } */ + if(!container/* || good */) { + this.scroll.append(li); + + this.doms[dialog.peerID] = dom; + + /* if(container) { + container.append(li); + } */ this.setLastMessage(dialog); } else { @@ -950,7 +1183,10 @@ export class AppDialogsManager { } public setTyping(dialog: Dialog, user: User) { - let dom = this.getDialogDom(dialog.peerID); + const dom = this.getDialogDom(dialog.peerID); + if(!dom) { + return; + } let str = ''; if(dialog.peerID < 0) { @@ -959,7 +1195,7 @@ export class AppDialogsManager { str = s + ' '; } - let senderBold = document.createElement('i'); + const senderBold = document.createElement('i'); str += 'typing...'; senderBold.innerHTML = str; @@ -969,10 +1205,15 @@ export class AppDialogsManager { } public unsetTyping(dialog: Dialog) { - let dom = this.getDialogDom(dialog.peerID); + const dom = this.getDialogDom(dialog.peerID); + if(!dom) { + return; + } + dom.lastMessageSpan.classList.remove('user-typing'); this.setLastMessage(dialog, null, dom); } } -export default new AppDialogsManager(); +const appDialogsManager = new AppDialogsManager(); +export default appDialogsManager; diff --git a/src/lib/appManagers/appMessagesManager.ts b/src/lib/appManagers/appMessagesManager.ts index 2bb7d332..9e45a1e1 100644 --- a/src/lib/appManagers/appMessagesManager.ts +++ b/src/lib/appManagers/appMessagesManager.ts @@ -67,15 +67,490 @@ export type Dialog = { pts: number } +class DialogsStorage { + public dialogs: {[peerID: string]: Dialog} = {}; + public byFolders: {[folderID: number]: Dialog[]} = {}; + + public allDialogsLoaded: {[folder_id: number]: boolean} = {}; + public dialogsOffsetDate: {[folder_id: number]: number} = {}; + public pinnedIndexes: {[folder_id: number]: number} = { + 0: 0, + 1: 0 + }; + public dialogsNum = 0; + + public getFolder(id: number) { + if(id <= 1) { + return this.byFolders[id] ?? (this.byFolders[id] = []); + } + + const dialogs: {dialog: Dialog, index: number}[] = []; + const filter = appMessagesManager.filtersStorage.filters[id]; + + for(const peerID in this.dialogs) { + const dialog = this.dialogs[peerID]; + if(appMessagesManager.filtersStorage.testDialogForFilter(dialog, filter)) { + let index: number; + + const pinnedIndex = filter.pinned_peers.indexOf(dialog.peerID); + if(pinnedIndex !== -1) { + index = this.generateDialogIndex(this.generateDialogPinnedDateByIndex(filter.pinned_peers.length - 1 - pinnedIndex)); + } else if(dialog.pFlags?.pinned) { + index = this.generateIndexForDialog(dialog, true); + } else { + index = dialog.index; + } + + dialogs.push({dialog, index}); + } + } + + dialogs.sort((a, b) => b.index - a.index); + return dialogs.map(d => d.dialog); + } + + public getDialog(peerID: number, folderID?: number): [Dialog, number] | [] { + const folders: Dialog[][] = []; + + if(folderID === undefined) { + const dialogs = this.byFolders; + for(const folderID in dialogs) { + folders.push(dialogs[folderID]); + } + } else { + folders.push(this.getFolder(folderID)); + } + + for(let folder of folders) { + const index = folder.findIndex(dialog => dialog.peerID == peerID); + if(index !== -1) { + return [folder[index], index]; + } + } + + return []; + } + + /* + var date = Date.now() / 1000 | 0; + var m = date * 0x10000; + + var k = (date + 1) * 0x10000; + k - m; + 65536 + */ + public generateDialogIndex(date?: number) { + if(date === undefined) { + date = tsNow(true) + serverTimeManager.serverTimeOffset; + } + + return (date * 0x10000) + ((++this.dialogsNum) & 0xFFFF); + } + + public generateIndexForDialog(dialog: Dialog, justReturn = false) { + const channelID = appPeersManager.isChannel(dialog.peerID) ? -dialog.peerID : 0; + const mid = appMessagesIDsManager.getFullMessageID(dialog.top_message, channelID); + const message = appMessagesManager.getMessage(mid); + + let topDate = message.date; + if(channelID) { + const channel = appChatsManager.getChat(channelID); + if(!topDate || channel.date && channel.date > topDate) { + topDate = channel.date; + } + } + + const savedDraft: any = {};// DraftsManager.saveDraft(peerID, dialog.draft); // warning + if(savedDraft && savedDraft.date > topDate) { + topDate = savedDraft.date; + } + + if(dialog.pFlags.pinned && !justReturn) { + topDate = this.generateDialogPinnedDate(dialog); + //this.log('topDate', peerID, topDate); + } + + const index = this.generateDialogIndex(topDate); + if(justReturn) return index; + dialog.index = index; + } + + public generateDialogPinnedDateByIndex(pinnedIndex: number) { + return 0x7fffff00 + (pinnedIndex & 0xff); + } + + public generateDialogPinnedDate(dialog?: Dialog) { + const folderID = dialog.folder_id; + let pinnedIndex: number; + + if(dialog) { + if(dialog.hasOwnProperty('pinnedIndex')) { + pinnedIndex = dialog.pinnedIndex; + } else { + dialog.pinnedIndex = pinnedIndex = this.pinnedIndexes[folderID]++; + } + } else { + pinnedIndex = this.pinnedIndexes[folderID]++; + } + + if(pinnedIndex > this.pinnedIndexes[folderID]) { + this.pinnedIndexes[folderID] = pinnedIndex; + } + + return this.generateDialogPinnedDateByIndex(pinnedIndex); + } + + public pushDialog(dialog: Dialog, offsetDate?: number) { + const dialogs = this.getFolder(dialog.folder_id); + const pos = dialogs.findIndex(d => d.peerID == dialog.peerID); + if(pos !== -1) { + dialogs.splice(pos, 1); + } + + //if(!this.dialogs[dialog.peerID]) { + this.dialogs[dialog.peerID] = dialog; + //} + + if(offsetDate && + !dialog.pFlags.pinned && + (!this.dialogsOffsetDate[dialog.folder_id] || offsetDate < this.dialogsOffsetDate[dialog.folder_id])) { + if(pos !== -1) { + // So the dialog jumped to the last position + return false; + } + this.dialogsOffsetDate[dialog.folder_id] = offsetDate; + } + + const index = dialog.index; + const len = dialogs.length; + if(!len || index < dialogs[len - 1].index) { + dialogs.push(dialog); + } else if(index >= dialogs[0].index) { + dialogs.unshift(dialog); + } else { + for(let i = 0; i < len; i++) { + if(index > dialogs[i].index) { + dialogs.splice(i, 0, dialog); + break; + } + } + } + } + + public dropDialog(peerID: number): [Dialog, number] | [] { + const foundDialog = this.getDialog(peerID); + if(foundDialog[0]) { + this.byFolders[foundDialog[0].folder_id].splice(foundDialog[1], 1); + delete this.dialogs[peerID]; + } + + return foundDialog; + } +} + +export type DialogFilter = { + _: 'dialogFilter', + flags: number, + pFlags: Partial<{ + contacts: true, + non_contacts: true, + groups: true, + broadcasts: true, + bots: true, + exclude_muted: true, + exclude_read: true, + exclude_archived: true + }>, + id: number, + title: string, + emoticon?: string, + pinned_peers: number[], + include_peers: number[], + exclude_peers: number[] +}; +class FiltersStorage { + public filters: {[filterID: string]: DialogFilter} = {}; + + constructor() { + $rootScope.$on('apiUpdate', (e: CustomEvent) => { + this.handleUpdate(e.detail); + }); + } + + public handleUpdate(update: any) { + switch(update._) { + case 'updateDialogFilter': { + console.log('updateDialogFilter', update); + if(update.filter) { + this.saveDialogFilter(update.filter); + } else if(this.filters[update.id]) { // Папка удалена + //this.getDialogFilters(true); + $rootScope.$broadcast('filter_delete', this.filters[update.id]); + delete this.filters[update.id]; + } + + break; + } + } + } + + public testDialogForFilter(dialog: Dialog, filter: DialogFilter) { + // exclude_peers + for(const peerID of filter.exclude_peers) { + if(peerID == dialog.peerID) { + return false; + } + } + + // include_peers + for(const peerID of filter.include_peers) { + if(peerID == dialog.peerID) { + return true; + } + } + + const pFlags = filter.pFlags; + + // exclude_archived + if(pFlags.exclude_archived && dialog.folder_id == 1) { + return false; + } + + // exclude_read + if(pFlags.exclude_read && !dialog.unread_count) { + return false; + } + + // exclude_muted + if(pFlags.exclude_muted) { + const isMuted = (dialog.notify_settings?.mute_until * 1000) > Date.now(); + if(isMuted) { + return false; + } + } + + const peerID = dialog.peerID; + if(peerID < 0) { + // broadcasts + if(pFlags.broadcasts && appPeersManager.isBroadcast(peerID)) { + return true; + } + + // groups + if(pFlags.groups && appPeersManager.isAnyGroup(peerID)) { + return true; + } + } else { + // bots + if(appPeersManager.isBot(peerID)) { + return !!pFlags.bots; + } + + // non_contacts + if(pFlags.non_contacts && !appUsersManager.contactsList.has(peerID)) { + return true; + } + + // contacts + if(pFlags.contacts && appUsersManager.contactsList.has(peerID)) { + return true; + } + } + + return false; + } + + /* public processDialog(dialog: Dialog) { + for(const filterID in this.filters) { + const filter = this.filters[filterID]; + const good = this.testDialogForFilter(dialog, filter); + + const folder = appMessagesManager.dialogsStorage.getFolder(+filterID); + if(good) { + folder.push(dialog); + } + + console.log('processDialog:', dialog, filter, good); + } + } */ + + /* public initFilters() { + return Promise.all([ + appUsersManager.getContacts(), + + this.getDialogFilters(), + + appMessagesManager.getConversations('', 0, 20, 0), + appMessagesManager.getConversations('', 0, 20, 1) + ]).then(() => { + const dialogs = appMessagesManager.dialogsStorage.dialogs; + for(const peerID in dialogs) { + const dialog = dialogs[peerID]; + this.processDialog(dialog); + } + + this.inited = true; + }); + } */ + + public toggleDialogPin(peerID: number, filterID: number) { + const filter = this.filters[filterID]; + + const wasPinned = filter.pinned_peers.findAndSplice(p => p == peerID); + if(!wasPinned) { + filter.pinned_peers.unshift(peerID); + } + + return this.updateDialogFilter(filter); + } + + public createDialogFilter(filter: DialogFilter) { + let maxID = Math.max(1, ...Object.keys(this.filters).map(i => +i)); + filter = copy(filter); + filter.id = maxID + 1; + return this.updateDialogFilter(filter); + } + + public updateDialogFilter(filter: DialogFilter, remove = false) { + const flags = remove ? 0 : 1; + + if(!remove) { + filter.flags = 0; + const f: {[k: string]: number} = { + contacts: 0, + non_contacts: 1, + groups: 2, + broadcasts: 3, + bots: 4, + exclude_muted: 11, + exclude_read: 12, + exclude_archived: 13 + }; + + for(const key in f) { + // @ts-ignore + if(filter.pFlags[key]) { + filter.flags |= 1 << f[key]; + } + } + + if(filter.emoticon) { + filter.flags |= 1 << 25; + } + } + + return apiManager.invokeApi('messages.updateDialogFilter', { + flags, + id: filter.id, + filter: remove ? undefined : this.getOutputDialogFilter(filter) + }).then((bool: boolean) => { // возможно нужна проверка и откат, если результат не ТРУ + console.log('updateDialogFilter bool:', bool); + + if(bool) { + /* if(!this.filters[filter.id]) { + this.saveDialogFilter(filter); + } + + $rootScope.$broadcast('filter_update', filter); */ + + this.handleUpdate({ + _: 'updateDialogFilter', + id: filter.id, + filter: remove ? undefined : filter + }); + } + + return bool; + }); + } + + public getOutputDialogFilter(filter: DialogFilter) { + const c = copy(filter); + ['pinned_peers', 'exclude_peers', 'include_peers'].forEach(key => { + c[key] = c[key].map((peerID: number) => appPeersManager.getInputPeerByID(peerID)); + }); + + return c; + } + + public async getDialogFilters(overwrite = false) { + if(Object.keys(this.filters).length && !overwrite) { + // УБРАТЬ НА ПРОДЕ!!!!!!!!!!!! + for(const folderID in this.filters) { + const filter = this.filters[folderID]; + if(typeof(filter.pinned_peers[0]) !== 'number') filter.pinned_peers = filter.pinned_peers.map(peer => appPeersManager.getPeerID(peer)); + if(typeof(filter.exclude_peers[0]) !== 'number') filter.exclude_peers = filter.exclude_peers.map(peer => appPeersManager.getPeerID(peer)); + if(typeof(filter.include_peers[0]) !== 'number') filter.include_peers = filter.include_peers.map(peer => appPeersManager.getPeerID(peer)); + } + return this.filters; + } + + const filters = await (apiManager.invokeApi('messages.getDialogFilters') as Promise); + for(const filter of filters) { + this.saveDialogFilter(filter, false); + } + + console.log(this.filters); + return this.filters; + } + + public saveDialogFilter(filter: DialogFilter, update = true) { + ['pinned_peers', 'exclude_peers', 'include_peers'].forEach(key => { + // @ts-ignore + filter[key] = filter[key].map((peer: any) => appPeersManager.getPeerID(peer)); + }); + + /* if(this.filters[filter.id]) { + // ну давай же найдём различия теперь, раз они сами не хотят приходить + const oldFilter = this.filters[filter.id]; + + const updateDialogs: {[peerID: number]: Dialog} = {}; + + const pinnedChanged = !deepEqual(oldFilter.pinned_peers, filter.pinned_peers); + if(pinnedChanged) { + for(const peerID of oldFilter.pinned_peers) { + updateDialogs[peerID] = appMessagesManager.getDialogByPeerID(peerID)[0]; + } + + for(const peerID of filter.pinned_peers) { + updateDialogs[peerID] = appMessagesManager.getDialogByPeerID(peerID)[0]; + } + } + + // это и так отфильтрует + //const excludeChanged = !deepEqual(oldFilter.exclude_peers, filter.exclude_peers); + + const includeChanged = !deepEqual(oldFilter.include_peers, filter.include_peers); + if(includeChanged) { + for(const peerID of filter.include_peers) { + updateDialogs[peerID] = appMessagesManager.getDialogByPeerID(peerID)[0]; + } + } + + Object.assign(this.filters[filter.id], filter); + if(pinnedChanged) { + $rootScope.$broadcast('filter_pinned_order', {id: filter.id, order: filter.pinned_peers}); + } + + $rootScope.$broadcast('dialogs_multiupdate', updateDialogs); + } */if(this.filters[filter.id]) { + Object.assign(this.filters[filter.id], filter); + } else { + this.filters[filter.id] = filter; + } + + if(update) { + $rootScope.$broadcast('filter_update', filter); + } + } +} + export class AppMessagesManager { public messagesStorage: any = {}; public groupedMessagesStorage: {[groupID: string]: any} = {}; // will be used for albums public historiesStorage: { [peerID: string]: HistoryStorage } = {}; - public dialogsStorage: { - [folderID: number]: Dialog[] - } = {}; public pinnedMessages: {[peerID: string]: number} = {}; public pendingByRandomID: {[randomID: string]: [number, number]} = {}; public pendingByMessageID: any = {}; @@ -94,11 +569,6 @@ export class AppMessagesManager { public maxSeenID = 0; - public allDialogsLoaded: {[folder_id: number]: boolean} = {}; - public dialogsOffsetDate: {[folder_id: number]: number} = {}; - public pinnedIndex = 0; - public dialogsNum = 0; - public migratedFromTo: {[peerID: number]: number} = {}; public migratedToFrom: {[peerID: number]: number} = {}; @@ -121,15 +591,14 @@ export class AppMessagesManager { dialogs: [] }; - private log = logger('MESSAGES', LogLevels.error); + private log = logger('MESSAGES'/* , LogLevels.error */); + + public dialogsStorage = new DialogsStorage(); + public filtersStorage = new FiltersStorage(); constructor() { $rootScope.$on('apiUpdate', (e: CustomEvent) => { - let update: any = e.detail; - // if(update._ != 'updateUserStatus') { - // this.log('on apiUpdate', update) - // } - this.handleUpdate(update); + this.handleUpdate(e.detail); }); $rootScope.$on('webpage_updated', (e: CustomEvent) => { @@ -169,10 +638,10 @@ export class AppMessagesManager { } if(!dialog.pFlags.pinned) { - dialog.index = this.generateDialogIndex(topDate); + dialog.index = this.dialogsStorage.generateDialogIndex(topDate); } - this.pushDialogToStorage(dialog); + this.dialogsStorage.pushDialog(dialog); $rootScope.$broadcast('dialog_draft', { peerID: peerID, @@ -188,12 +657,14 @@ export class AppMessagesManager { return this.loaded = new Promise((resolve, reject) => { AppStorage.get<{ dialogs: Dialog[], - allDialogsLoaded: AppMessagesManager['allDialogsLoaded'], + allDialogsLoaded: DialogsStorage['allDialogsLoaded'], peers: any[], messages: any[], + contactsList: number[], updates: any, + filters: FiltersStorage['filters'], maxSeenMsgID: number - }>('state').then(({dialogs, allDialogsLoaded, peers, messages, maxSeenMsgID, updates}) => { + }>('state').then(({dialogs, allDialogsLoaded, peers, messages, contactsList, maxSeenMsgID, updates, filters}) => { this.log('state res', dialogs, messages); if(maxSeenMsgID && !appMessagesIDsManager.getMessageIDInfo(maxSeenMsgID)[1]) { @@ -210,6 +681,13 @@ export class AppMessagesManager { } } + if(contactsList && Array.isArray(contactsList) && contactsList.length) { + contactsList.forEach(userID => { + appUsersManager.pushContact(userID); + }); + appUsersManager.contactsFillPromise = Promise.resolve(appUsersManager.contactsList); + } + if(messages) { /* let tempID = this.tempID; @@ -235,7 +713,11 @@ export class AppMessagesManager { } if(allDialogsLoaded) { - this.allDialogsLoaded = allDialogsLoaded; + this.dialogsStorage.allDialogsLoaded = allDialogsLoaded; + } + + if(filters) { + this.filtersStorage.filters = filters; } if(dialogs) { @@ -256,55 +738,65 @@ export class AppMessagesManager { } public saveState() { - let messages: any[] = []; - let dialogs: Dialog[] = []; - let peers: {[peerID: number]: any} = {}; + const messages: any[] = []; + const dialogs: Dialog[] = []; + const peers: {[peerID: number]: any} = {}; - for(let folderID in this.dialogsStorage) { - for(let dialog of this.dialogsStorage[folderID]) { - let historyStorage = this.historiesStorage[dialog.peerID]; - let history = [].concat(historyStorage?.pending ?? [], historyStorage?.history ?? []); - - dialog = copy(dialog); - let removeUnread = 0; - for(let mid of history) { - let message = this.getMessage(mid); - if(/* message._ != 'messageEmpty' && */message.id > 0) { - messages.push(message); + for(const peerID in this.dialogsStorage.dialogs) { + let dialog = this.dialogsStorage.dialogs[peerID]; + const historyStorage = this.historiesStorage[dialog.peerID]; + const history = [].concat(historyStorage?.pending ?? [], historyStorage?.history ?? []); + + dialog = copy(dialog); + let removeUnread = 0; + for(const mid of history) { + const message = this.getMessage(mid); + if(/* message._ != 'messageEmpty' && */message.id > 0) { + messages.push(message); - if(message.fromID != dialog.peerID) { - peers[message.fromID] = appPeersManager.getPeer(message.fromID); - } + if(message.fromID != dialog.peerID) { + peers[message.fromID] = appPeersManager.getPeer(message.fromID); + } - dialog.top_message = message.mid; + dialog.top_message = message.mid; - break; - } else if(message.pFlags && message.pFlags.unread) { - ++removeUnread; - } + break; + } else if(message.pFlags && message.pFlags.unread) { + ++removeUnread; } + } - if(removeUnread && dialog.unread_count) dialog.unread_count -= removeUnread; + if(removeUnread && dialog.unread_count) dialog.unread_count -= removeUnread; - dialogs.push(dialog); + dialogs.push(dialog); - peers[dialog.peerID] = appPeersManager.getPeer(dialog.peerID); - } + peers[dialog.peerID] = appPeersManager.getPeer(dialog.peerID); } - let us = apiUpdatesManager.updatesState; - let updates = { + const us = apiUpdatesManager.updatesState; + const updates = { seq: us.seq, pts: us.pts, date: us.date }; + const contactsList = [...appUsersManager.contactsList]; + for(const userID of contactsList) { + if(!peers[userID]) { + peers[userID] = appUsersManager.getUser(userID); + } + } + + const filters = this.filtersStorage.filters; + AppStorage.set({ state: { dialogs, messages, - allDialogsLoaded: this.allDialogsLoaded, + allDialogsLoaded: this.dialogsStorage.allDialogsLoaded, peers, + contactsList, + filters, updates, maxSeenMsgID: this.maxSeenID } @@ -1506,7 +1998,8 @@ export class AppMessagesManager { } public getConversations(query = '', offsetIndex?: number, limit = 20, folderID = 0) { - let curDialogStorage = this.dialogsStorage[folderID] ?? (this.dialogsStorage[folderID] = []); + const realFolderID = folderID > 1 ? 0 : folderID; + let curDialogStorage = this.dialogsStorage.getFolder(folderID); if(query) { if(!limit || this.cachedResults.query !== query) { @@ -1515,13 +2008,19 @@ export class AppMessagesManager { const results = searchIndexManager.search(query, this.dialogsIndex); this.cachedResults.dialogs = []; - for(const folderID in this.dialogsStorage) { + /* for(const folderID in this.dialogsStorage) { const dialogs = this.dialogsStorage[folderID]; dialogs.forEach(dialog => { if(results[dialog.peerID]) { this.cachedResults.dialogs.push(dialog); } }); + } */ + for(const peerID in this.dialogsStorage.dialogs) { + const dialog = this.dialogsStorage.dialogs[peerID]; + if(results[dialog.peerID]) { + this.cachedResults.dialogs.push(dialog); + } } this.cachedResults.count = this.cachedResults.dialogs.length; @@ -1541,14 +2040,14 @@ export class AppMessagesManager { } } - if(query || this.allDialogsLoaded[folderID] || curDialogStorage.length >= offset + limit) { + if(query || this.dialogsStorage.allDialogsLoaded[realFolderID] || curDialogStorage.length >= offset + limit) { return Promise.resolve({ dialogs: curDialogStorage.slice(offset, offset + limit), - count: curDialogStorage.length + count: this.dialogsStorage.allDialogsLoaded[realFolderID] ? curDialogStorage.length : null }); } - return this.getTopMessages(limit, folderID).then(totalCount => { + return this.getTopMessages(limit, realFolderID).then(totalCount => { //const curDialogStorage = this.dialogsStorage[folderID]; offset = 0; @@ -1570,16 +2069,16 @@ export class AppMessagesManager { } public getTopMessages(limit: number, folderID: number): Promise { - const dialogs = this.dialogsStorage[folderID]; + const dialogs = this.dialogsStorage.getFolder(folderID); let offsetID = 0; let offsetDate = 0; let offsetPeerID = 0; let offsetIndex = 0; let flags = 0; - if(this.dialogsOffsetDate[folderID]) { - offsetDate = this.dialogsOffsetDate[folderID] + serverTimeManager.serverTimeOffset; - offsetIndex = this.dialogsOffsetDate[folderID] * 0x10000; + if(this.dialogsStorage.dialogsOffsetDate[folderID]) { + offsetDate = this.dialogsStorage.dialogsOffsetDate[folderID] + serverTimeManager.serverTimeOffset; + offsetIndex = this.dialogsStorage.dialogsOffsetDate[folderID] * 0x10000; //flags |= 1; // means pinned already loaded } @@ -1648,7 +2147,7 @@ export class AppMessagesManager { if(!dialogsResult.dialogs.length || !dialogsResult.count || dialogs.length >= dialogsResult.count) { - this.allDialogsLoaded[folderID] = true; + this.dialogsStorage.allDialogsLoaded[folderID] = true; } if(hasPrepend) { @@ -1709,81 +2208,6 @@ export class AppMessagesManager { return Promise.all(promises); } - /* - var date = Date.now() / 1000 | 0; - var m = date * 0x10000; - - var k = (date + 1) * 0x10000; - k - m; - 65536 - */ - public generateDialogIndex(date?: any) { - if(date === undefined) { - date = tsNow(true) + serverTimeManager.serverTimeOffset; - } - - return (date * 0x10000) + ((++this.dialogsNum) & 0xFFFF); - } - - public generateIndexForDialog(dialog: Dialog) { - const channelID = appPeersManager.isChannel(dialog.peerID) ? -dialog.peerID : 0; - const mid = appMessagesIDsManager.getFullMessageID(dialog.top_message, channelID); - const message = this.getMessage(mid); - - let topDate = message.date; - if(channelID) { - const channel = appChatsManager.getChat(channelID); - if(!topDate || channel.date && channel.date > topDate) { - topDate = channel.date; - } - } - - const savedDraft: any = {};// DraftsManager.saveDraft(peerID, dialog.draft); // warning - if(savedDraft && savedDraft.date > topDate) { - topDate = savedDraft.date; - } - - if(dialog.pFlags.pinned && dialog.folder_id == 0) { - topDate = this.generateDialogPinnedDate(dialog); - //this.log('topDate', peerID, topDate); - } - - dialog.index = this.generateDialogIndex(topDate); - } - - public pushDialogToStorage(dialog: Dialog, offsetDate?: number) { - let dialogs = this.dialogsStorage[dialog.folder_id] ?? (this.dialogsStorage[dialog.folder_id] = []); - let pos = dialogs.findIndex(d => d.peerID == dialog.peerID); - if(pos !== -1) { - dialogs.splice(pos, 1); - } - - if(offsetDate && - !dialog.pFlags.pinned && - (!this.dialogsOffsetDate[dialog.folder_id] || offsetDate < this.dialogsOffsetDate[dialog.folder_id])) { - if(pos !== -1) { - // So the dialog jumped to the last position - return false; - } - this.dialogsOffsetDate[dialog.folder_id] = offsetDate; - } - - let index = dialog.index; - let len = dialogs.length; - if(!len || index < dialogs[len - 1].index) { - dialogs.push(dialog); - } else if(index >= dialogs[0].index) { - dialogs.unshift(dialog); - } else { - for(let i = 0; i < len; i++) { - if(index > dialogs[i].index) { - dialogs.splice(i, 0, dialog); - break; - } - } - } - } - public getMessage(messageID: number) { return this.messagesStorage[messageID] || { _: 'messageEmpty', @@ -1804,15 +2228,7 @@ export class AppMessagesManager { } public getDialogByPeerID(peerID: number): [Dialog, number] | [] { - let dialogs = this.dialogsStorage; - for(let folderID in dialogs) { - let index = dialogs[folderID].findIndex(dialog => dialog.peerID == peerID); - if(index !== -1) { - return [dialogs[folderID][index], index]; - } - } - - return []; + return this.dialogsStorage.getDialog(peerID); } public reloadConversation(peerID: number | number[]) { @@ -1890,10 +2306,7 @@ export class AppMessagesManager { if(justClear) { $rootScope.$broadcast('dialog_flush', {peerID: peerID}); } else { - let foundDialog = this.getDialogByPeerID(peerID); - if(foundDialog[0]) { - this.dialogsStorage[foundDialog[0].folder_id].splice(foundDialog[1], 1); - } + this.dialogsStorage.dropDialog(peerID); $rootScope.$broadcast('dialog_drop', {peerID: peerID}); } @@ -2255,27 +2668,34 @@ export class AppMessagesManager { }); } - public toggleDialogPin(peerID: number) { - let dialog = this.getDialogByPeerID(peerID)[0]; + public toggleDialogPin(peerID: number, filterID?: number) { + if(filterID > 1) { + this.filtersStorage.toggleDialogPin(peerID, filterID); + return; + } + + const dialog = this.getDialogByPeerID(peerID)[0]; if(!dialog) return Promise.reject(); - let peer = { + const peer = { _: 'inputDialogPeer', peer: appPeersManager.getInputPeerByID(peerID) }; - let flags = dialog.pFlags?.pinned ? 0 : 1; + const flags = dialog.pFlags?.pinned ? 0 : 1; return apiManager.invokeApi('messages.toggleDialogPin', { flags, peer }).then(bool => { - this.handleUpdate({ - _: 'updateDialogPinned', - peer: peer, - pFlags: { - pinned: flags - } - }); + if(bool) { + this.handleUpdate({ + _: 'updateDialogPinned', + peer: peer, + pFlags: { + pinned: flags + } + }); + } }); } @@ -2293,13 +2713,15 @@ export class AppMessagesManager { flags, peer }).then(bool => { - this.handleUpdate({ - _: 'updateDialogUnreadMark', - peer: peer, - pFlags: { - unread: flags - } - }); + if(bool) { + this.handleUpdate({ + _: 'updateDialogUnreadMark', + peer: peer, + pFlags: { + unread: flags + } + }); + } }); } @@ -2307,7 +2729,7 @@ export class AppMessagesManager { if(!this.migratedFromTo[migrateFrom] && !this.migratedToFrom[migrateTo] && appChatsManager.hasChat(-migrateTo)) { - var fromChat = appChatsManager.getChat(-migrateFrom); + const fromChat = appChatsManager.getChat(-migrateFrom); if(fromChat && fromChat.migrated_to && fromChat.migrated_to.channel_id == -migrateTo) { @@ -2315,10 +2737,9 @@ export class AppMessagesManager { this.migratedToFrom[migrateTo] = migrateFrom; setTimeout(() => { - var foundDialog = this.getDialogByPeerID(migrateFrom); - if(foundDialog.length) { - this.dialogsStorage[foundDialog[0].folder_id].splice(foundDialog[1], 1); - $rootScope.$broadcast('dialog_drop', {peerID: migrateFrom, dialog: foundDialog[0]}); + const dropped = this.dialogsStorage.dropDialog(migrateFrom); + if(dropped.length) { + $rootScope.$broadcast('dialog_drop', {peerID: migrateFrom, dialog: dropped[0]}); } $rootScope.$broadcast('dialog_migrate', {migrateFrom: migrateFrom, migrateTo: migrateTo}); @@ -2410,10 +2831,9 @@ export class AppMessagesManager { hasUpdated = true; } } else { - const foundDialog = this.getDialogByPeerID(peerID); - if(foundDialog.length) { - this.dialogsStorage[foundDialog[0].folder_id].splice(foundDialog[1], 1); - $rootScope.$broadcast('dialog_drop', {peerID: peerID, dialog: foundDialog[0]}); + const dropped = this.dialogsStorage.dropDialog(peerID); + if(dropped.length) { + $rootScope.$broadcast('dialog_drop', {peerID: peerID, dialog: dropped[0]}); } } @@ -2479,8 +2899,8 @@ export class AppMessagesManager { if(!dialog.hasOwnProperty('folder_id')) dialog.folder_id = 0; dialog.peerID = peerID; - this.generateIndexForDialog(dialog); - this.pushDialogToStorage(dialog, message.date); + this.dialogsStorage.generateIndexForDialog(dialog); + this.dialogsStorage.pushDialog(dialog, message.date); // Because we saved message without dialog present if(message.mid > 0) { @@ -2503,6 +2923,10 @@ export class AppMessagesManager { if(channelID && dialog.pts) { apiUpdatesManager.addChannelState(channelID, dialog.pts); } + + //if(this.filtersStorage.inited) { + //this.filtersStorage.processDialog(dialog); + //} } public mergeReplyKeyboard(historyStorage: HistoryStorage, message: any) { @@ -2790,47 +3214,27 @@ export class AppMessagesManager { return Promise.reject(error); }); } - - public generateDialogPinnedDate(dialog?: Dialog) { - let pinnedIndex: number; - - if(dialog) { - if(dialog.hasOwnProperty('pinnedIndex')) { - pinnedIndex = dialog.pinnedIndex; - } else { - dialog.pinnedIndex = pinnedIndex = this.pinnedIndex++; - } - } else { - pinnedIndex = this.pinnedIndex++; - } - - if(pinnedIndex > this.pinnedIndex) { - this.pinnedIndex = pinnedIndex; - } - - return 0x7fffff00 + (pinnedIndex & 0xff); - } - public handleNewMessages() { + handleNewMessages = () => { clearTimeout(this.newMessagesHandlePromise); this.newMessagesHandlePromise = 0; $rootScope.$broadcast('history_multiappend', this.newMessagesToHandle); this.newMessagesToHandle = {}; - } + }; - public handleNewDialogs() { + handleNewDialogs = () => { clearTimeout(this.newDialogsHandlePromise); this.newDialogsHandlePromise = 0; let newMaxSeenID = 0; - for(let peerID in this.newDialogsToHandle) { - let dialog = this.newDialogsToHandle[peerID]; + for(const peerID in this.newDialogsToHandle) { + const dialog = this.newDialogsToHandle[peerID]; if('reload' in dialog) { this.reloadConversation(+peerID); delete this.newDialogsToHandle[peerID]; } else { - this.pushDialogToStorage(dialog); + this.dialogsStorage.pushDialog(dialog); if(!appPeersManager.isChannel(+peerID)) { newMaxSeenID = Math.max(newMaxSeenID, dialog.top_message || 0); } @@ -2845,11 +3249,11 @@ export class AppMessagesManager { $rootScope.$broadcast('dialogs_multiupdate', this.newDialogsToHandle); this.newDialogsToHandle = {}; - } + }; public scheduleHandleNewDialogs() { if(!this.newDialogsHandlePromise) { - this.newDialogsHandlePromise = window.setTimeout(this.handleNewDialogs.bind(this), 0); + this.newDialogsHandlePromise = window.setTimeout(this.handleNewDialogs, 0); } } @@ -3171,7 +3575,7 @@ export class AppMessagesManager { this.newMessagesToHandle[peerID].push(message.mid); if(!this.newMessagesHandlePromise) { - this.newMessagesHandlePromise = window.setTimeout(this.handleNewMessages.bind(this), 0); + this.newMessagesHandlePromise = window.setTimeout(this.handleNewMessages, 0); } } @@ -3182,7 +3586,7 @@ export class AppMessagesManager { dialog.unread_count++; } if(!dialog.pFlags.pinned || !dialog.index) { - dialog.index = this.generateDialogIndex(message.date); + dialog.index = this.dialogsStorage.generateDialogIndex(message.date); } this.newDialogsToHandle[peerID] = dialog; @@ -3214,27 +3618,31 @@ export class AppMessagesManager { break; } - case 'updateFolderPeers': { + case 'updateFolderPeers': { // only 0 and 1 folders this.log('updateFolderPeers', update); - let peers = update.folder_peers; + const peers = update.folder_peers; this.scheduleHandleNewDialogs(); peers.forEach((folderPeer: any) => { - let {folder_id, peer} = folderPeer; + const {folder_id, peer} = folderPeer; - let peerID = appPeersManager.getPeerID(peer); - let foundDialog = this.getDialogByPeerID(peerID); - if(!foundDialog.length) { + const peerID = appPeersManager.getPeerID(peer); + const dropped = this.dialogsStorage.dropDialog(peerID); + if(!dropped.length) { this.newDialogsToHandle[peerID] = {reload: true}; } else { - let dialog = foundDialog[0]; + const dialog = dropped[0]; this.newDialogsToHandle[peerID] = dialog; - this.dialogsStorage[dialog.folder_id].splice(foundDialog[1], 1); + if(dialog.pFlags?.pinned) { + delete dialog.pinnedIndex; + delete dialog.pFlags.pinned; + } + dialog.folder_id = folder_id; - this.generateIndexForDialog(dialog); - this.pushDialogToStorage(dialog); // need for simultaneously updatePinnedDialogs + this.dialogsStorage.generateIndexForDialog(dialog); + this.dialogsStorage.pushDialog(dialog); // need for simultaneously updatePinnedDialogs } }); break; @@ -3242,15 +3650,24 @@ export class AppMessagesManager { case 'updateDialogPinned': { this.log('updateDialogPinned', update); - let peerID = appPeersManager.getPeerID(update.peer.peer); - let foundDialog = this.getDialogByPeerID(peerID); + const peerID = appPeersManager.getPeerID(update.peer.peer); + const foundDialog = this.getDialogByPeerID(peerID); + + // этот код внизу никогда не сработает, в папках за пиннед отвечает updateDialogFilter + /* if(update.folder_id > 1) { + const filter = this.filtersStorage.filters[update.folder_id]; + if(update.pFlags.pinned) { + filter.pinned_peers.unshift(peerID); + } else { + filter.pinned_peers.findAndSplice(p => p == peerID); + } + } */ this.scheduleHandleNewDialogs(); if(!foundDialog.length) { this.newDialogsToHandle[peerID] = {reload: true}; - break; } else { - let dialog = foundDialog[0]; + const dialog = foundDialog[0]; this.newDialogsToHandle[peerID] = dialog; if(!update.pFlags.pinned) { @@ -3260,17 +3677,21 @@ export class AppMessagesManager { dialog.pFlags.pinned = true; } - this.generateIndexForDialog(dialog); + this.dialogsStorage.generateIndexForDialog(dialog); } break; } case 'updatePinnedDialogs': { + const folderID = update.folder_id ?? 0; + this.log('updatePinnedDialogs', update); - let newPinned: {[peerID: number]: true} = {}; + const newPinned: {[peerID: number]: true} = {}; if(!update.order) { - apiManager.invokeApi('messages.getPinnedDialogs', {}).then((dialogsResult: any) => { + apiManager.invokeApi('messages.getPinnedDialogs', { + folder_id: folderID + }).then((dialogsResult: any) => { dialogsResult.dialogs.reverse(); this.applyConversations(dialogsResult); @@ -3278,44 +3699,45 @@ export class AppMessagesManager { newPinned[dialog.peerID] = true; }); - this.dialogsStorage[0].forEach((dialog: any) => { - let peerID = dialog.peerID; + this.dialogsStorage.getFolder(folderID).forEach((dialog: any) => { + const peerID = dialog.peerID; if(dialog.pFlags.pinned && !newPinned[peerID]) { this.newDialogsToHandle[peerID] = {reload: true}; this.scheduleHandleNewDialogs(); } }); }); + break; } //this.log('before order:', this.dialogsStorage[0].map(d => d.peerID)); - this.pinnedIndex = 0; + this.dialogsStorage.pinnedIndexes[folderID] = 0; let willHandle = false; update.order.reverse(); // index must be higher update.order.forEach((peer: any) => { - let peerID = appPeersManager.getPeerID(peer.peer); + const peerID = appPeersManager.getPeerID(peer.peer); newPinned[peerID] = true; - let foundDialog = this.getDialogByPeerID(peerID); + const foundDialog = this.getDialogByPeerID(peerID); if(!foundDialog.length) { this.newDialogsToHandle[peerID] = {reload: true}; willHandle = true; return; } - let dialog = foundDialog[0]; + const dialog = foundDialog[0]; delete dialog.pinnedIndex; dialog.pFlags.pinned = true; - this.generateIndexForDialog(dialog); + this.dialogsStorage.generateIndexForDialog(dialog); this.newDialogsToHandle[peerID] = dialog; willHandle = true; }); - this.dialogsStorage[0].forEach(dialog => { - let peerID = dialog.peerID; + this.dialogsStorage.getFolder(folderID).forEach(dialog => { + const peerID = dialog.peerID; if(dialog.pFlags.pinned && !newPinned[peerID]) { this.newDialogsToHandle[peerID] = {reload: true}; willHandle = true; @@ -3569,16 +3991,16 @@ export class AppMessagesManager { } case 'updateChannel': { - var channelID: number = update.channel_id; - var peerID = -channelID; - var channel = appChatsManager.getChat(channelID); + const channelID: number = update.channel_id; + const peerID = -channelID; + const channel = appChatsManager.getChat(channelID); - var needDialog = channel._ == 'channel' && (!channel.pFlags.left && !channel.pFlags.kicked); - var foundDialog = this.getDialogByPeerID(peerID); - var hasDialog = foundDialog.length > 0; + const needDialog = channel._ == 'channel' && (!channel.pFlags.left && !channel.pFlags.kicked); + const foundDialog = this.getDialogByPeerID(peerID); + const hasDialog = foundDialog.length > 0; - var canViewHistory = channel._ == 'channel' && (channel.username || !channel.pFlags.left && !channel.pFlags.kicked) && true || false; - var hasHistory = this.historiesStorage[peerID] !== undefined; + const canViewHistory = channel._ == 'channel' && (channel.username || !channel.pFlags.left && !channel.pFlags.kicked) && true || false; + const hasHistory = this.historiesStorage[peerID] !== undefined; if(canViewHistory != hasHistory) { delete this.historiesStorage[peerID]; @@ -3590,7 +4012,8 @@ export class AppMessagesManager { this.reloadConversation(-channelID); } else { if(foundDialog[0]) { - this.dialogsStorage[foundDialog[0].folder_id].splice(foundDialog[1], 1); + this.dialogsStorage.dropDialog(peerID); + //this.dialogsStorage[foundDialog[0].folder_id].splice(foundDialog[1], 1); $rootScope.$broadcast('dialog_drop', {peerID: peerID, dialog: foundDialog[0]}); } } @@ -3600,12 +4023,10 @@ export class AppMessagesManager { } case 'updateChannelReload': { - let channelID: number = update.channel_id; - let peerID = -channelID; - let foundDialog = this.getDialogByPeerID(peerID); - if(foundDialog[0]) { - this.dialogsStorage[foundDialog[0].folder_id].splice(foundDialog[1], 1); - } + const channelID: number = update.channel_id; + const peerID = -channelID; + + this.dialogsStorage.dropDialog(peerID); delete this.historiesStorage[peerID]; this.reloadConversation(-channelID).then(() => { @@ -4108,4 +4529,5 @@ export class AppMessagesManager { } } -export default new AppMessagesManager(); +const appMessagesManager = new AppMessagesManager(); +export default appMessagesManager; diff --git a/src/lib/appManagers/appPeersManager.ts b/src/lib/appManagers/appPeersManager.ts index e2fa779f..ad711d9d 100644 --- a/src/lib/appManagers/appPeersManager.ts +++ b/src/lib/appManagers/appPeersManager.ts @@ -97,13 +97,14 @@ const AppPeersManager = { }, getPeerID: (peerString: any): number => { - if(isObject(peerString)) { + if(typeof(peerString) === 'number') return peerString; + else if(isObject(peerString)) { return peerString.user_id ? peerString.user_id : -(peerString.channel_id || peerString.chat_id); } else if(!peerString) return 0; - let isUser = peerString.charAt(0) == 'u'; - let peerParams = peerString.substr(1).split('_'); + const isUser = peerString.charAt(0) == 'u'; + const peerParams = peerString.substr(1).split('_'); return isUser ? peerParams[0] : -peerParams[0] || 0; }, diff --git a/src/lib/appManagers/appSidebarLeft.ts b/src/lib/appManagers/appSidebarLeft.ts index 6fe00b8b..ec7b5732 100644 --- a/src/lib/appManagers/appSidebarLeft.ts +++ b/src/lib/appManagers/appSidebarLeft.ts @@ -1,5 +1,5 @@ //import { logger } from "../polyfill"; -import appDialogsManager from "./appDialogsManager"; +import appDialogsManager, { AppArchivedTab, archivedTab } from "./appDialogsManager"; import { $rootScope } from "../utils"; import appImManager from "./appImManager"; import AppSearch, { SearchGroup } from "../../components/appSearch"; @@ -14,6 +14,9 @@ import AppContactsTab from "../../components/sidebarLeft/contacts"; import AppNewGroupTab from "../../components/sidebarLeft/newGroup"; import AppSettingsTab from "../../components/sidebarLeft/settings"; import AppEditProfileTab from "../../components/sidebarLeft/editProfile"; +import AppChatFoldersTab from "../../components/sidebarLeft/chatFolders"; +import AppEditFolderTab from "../../components/sidebarLeft/editFolder"; +import AppIncludedChatsTab from "../../components/sidebarLeft/includedChats"; import SidebarSlider from "../../components/slider"; import SearchInput from "../../components/searchInput"; @@ -25,6 +28,9 @@ const contactsTab = new AppContactsTab(); const newGroupTab = new AppNewGroupTab(); const settingsTab = new AppSettingsTab(); const editProfileTab = new AppEditProfileTab(); +const chatFoldersTab = new AppChatFoldersTab(); +const editFolderTab = new AppEditFolderTab(); +const includedChatsTab = new AppIncludedChatsTab(); export class AppSidebarLeft extends SidebarSlider { public static SLIDERITEMSIDS = { @@ -35,6 +41,9 @@ export class AppSidebarLeft extends SidebarSlider { newGroup: 5, settings: 6, editProfile: 7, + chatFolders: 8, + editFolder: 9, + includedChats: 10, }; private toolsBtn: HTMLButtonElement; @@ -61,17 +70,21 @@ export class AppSidebarLeft extends SidebarSlider { privateChat: HTMLButtonElement, } = {} as any; + public archivedTab: AppArchivedTab; public newChannelTab: AppNewChannelTab; public addMembersTab: AppAddMembersTab; public contactsTab: AppContactsTab; public newGroupTab: AppNewGroupTab; public settingsTab: AppSettingsTab; public editProfileTab: AppEditProfileTab; + public chatFoldersTab: AppChatFoldersTab; + public editFolderTab: AppEditFolderTab; + public includedChatsTab: AppIncludedChatsTab; //private log = logger('SL'); private searchGroups = { - contacts: new SearchGroup('Contacts and Chats', 'contacts'), + contacts: new SearchGroup('Chats', 'contacts'), globalContacts: new SearchGroup('Global Search', 'contacts'), messages: new SearchGroup('Global Search', 'messages'), people: new SearchGroup('People', 'contacts', false, 'search-group-people'), @@ -81,13 +94,16 @@ export class AppSidebarLeft extends SidebarSlider { constructor() { super(document.getElementById('column-left') as HTMLDivElement, { - //[AppSidebarLeft.SLIDERITEMSIDS.archived]: , + [AppSidebarLeft.SLIDERITEMSIDS.archived]: archivedTab, [AppSidebarLeft.SLIDERITEMSIDS.newChannel]: newChannelTab, [AppSidebarLeft.SLIDERITEMSIDS.contacts]: contactsTab, [AppSidebarLeft.SLIDERITEMSIDS.addMembers]: addMembersTab, [AppSidebarLeft.SLIDERITEMSIDS.newGroup]: newGroupTab, [AppSidebarLeft.SLIDERITEMSIDS.settings]: settingsTab, [AppSidebarLeft.SLIDERITEMSIDS.editProfile]: editProfileTab, + [AppSidebarLeft.SLIDERITEMSIDS.chatFolders]: chatFoldersTab, + [AppSidebarLeft.SLIDERITEMSIDS.editFolder]: editFolderTab, + [AppSidebarLeft.SLIDERITEMSIDS.includedChats]: includedChatsTab, }); this.searchInput = new SearchInput('Telegram Search'); @@ -97,12 +113,16 @@ export class AppSidebarLeft extends SidebarSlider { this.backBtn = this.sidebarEl.querySelector('.sidebar-back-button') as HTMLButtonElement; this.searchContainer = this.sidebarEl.querySelector('#search-container') as HTMLDivElement; + this.archivedTab = archivedTab; this.newChannelTab = newChannelTab; this.addMembersTab = addMembersTab; this.contactsTab = contactsTab; this.newGroupTab = newGroupTab; this.settingsTab = settingsTab; this.editProfileTab = editProfileTab; + this.chatFoldersTab = chatFoldersTab; + this.editFolderTab = editFolderTab; + this.includedChatsTab = includedChatsTab; this.menuEl = this.toolsBtn.querySelector('.btn-menu'); this.newBtnMenu = this.sidebarEl.querySelector('#new-menu'); @@ -157,7 +177,7 @@ export class AppSidebarLeft extends SidebarSlider { }); this.backBtn.addEventListener('click', (e) => { - appDialogsManager.chatsArchivedContainer.classList.remove('active'); + //appDialogsManager.chatsArchivedContainer.classList.remove('active'); this.toolsBtn.classList.add('active'); this.backBtn.classList.remove('active'); this.searchContainer.classList.remove('active'); diff --git a/src/lib/appManagers/appSidebarRight.ts b/src/lib/appManagers/appSidebarRight.ts index 48da37fc..e4f89faf 100644 --- a/src/lib/appManagers/appSidebarRight.ts +++ b/src/lib/appManagers/appSidebarRight.ts @@ -368,7 +368,7 @@ class AppPollResultsTab implements SliderTab { if(left <= 0) return; const showMore = document.createElement('div'); - showMore.classList.add('poll-results-more'); + showMore.classList.add('poll-results-more', 'show-more'); showMore.addEventListener('click', load); showMore.innerHTML = `
Show ${Math.min(20, left)} more voter${left > 1 ? 's' : ''}
`; diff --git a/src/lib/appManagers/appUsersManager.ts b/src/lib/appManagers/appUsersManager.ts index 17b0beb7..86ff4677 100644 --- a/src/lib/appManagers/appUsersManager.ts +++ b/src/lib/appManagers/appUsersManager.ts @@ -41,8 +41,8 @@ export class AppUsersManager { public userAccess: {[userID: number]: string} = {}; public cachedPhotoLocations: any = {}; public contactsIndex = searchIndexManager.createIndex(); - public contactsFillPromise: Promise; - public contactsList: number[]; + public contactsFillPromise: Promise>; + public contactsList: Set = new Set(); public myID: number; constructor() { @@ -119,20 +119,21 @@ export class AppUsersManager { return this.contactsFillPromise = apiManager.invokeApi('contacts.getContacts', { hash: 0 }).then((result: any) => { - let userID: number; - this.contactsList = []; this.saveApiUsers(result.users); result.contacts.forEach((contact: any) => { - userID = contact.user_id; - this.contactsList.push(userID); - searchIndexManager.indexObject(userID, this.getUserSearchText(userID), this.contactsIndex); + this.pushContact(contact.user_id); }); return this.contactsList; }); } + public pushContact(userID: number) { + this.contactsList.add(userID); + searchIndexManager.indexObject(userID, this.getUserSearchText(userID), this.contactsIndex); + } + public getUserSearchText(id: number) { const user = this.users[id]; if(!user) { @@ -148,10 +149,11 @@ export class AppUsersManager { } public getContacts(query?: string) { - return this.fillContacts().then(contactsList => { + return this.fillContacts().then(_contactsList => { + let contactsList = [..._contactsList]; if(query) { const results: any = searchIndexManager.search(query, this.contactsIndex); - const filteredContactsList = contactsList.filter(id => !!results[id]); + const filteredContactsList = [...contactsList].filter(id => !!results[id]); contactsList = filteredContactsList; } @@ -300,13 +302,13 @@ export class AppUsersManager { return 'bot'; } - let user = this.getUser(userID); - if(!user || !user.status) { + const user = this.getUser(userID); + if(!user) { return ''; } let str = ''; - switch(user.status._) { + switch(user.status?._) { case 'userStatusRecently': { str = 'last seen recently'; break; @@ -325,19 +327,19 @@ export class AppUsersManager { case 'userStatusOffline': { str = 'last seen '; - let date = user.status.was_online; - let now = Date.now() / 1000; + const date = user.status.was_online; + const now = Date.now() / 1000; if((now - date) < 60) { str += ' just now'; } else if((now - date) < 3600) { - let c = (now - date) / 60 | 0; + const c = (now - date) / 60 | 0; str += c + ' ' + (c == 1 ? 'minute' : 'minutes') + ' ago'; } else if(now - date < 86400) { - let c = (now - date) / 3600 | 0; + const c = (now - date) / 3600 | 0; str += c + ' ' + (c == 1 ? 'hour' : 'hours') + ' ago'; } else { - let d = new Date(date * 1000); + const d = new Date(date * 1000); str += ('0' + d.getDate()).slice(-2) + '.' + ('0' + (d.getMonth() + 1)).slice(-2) + ' at ' + ('0' + d.getHours()).slice(-2) + ':' + ('0' + d.getMinutes()).slice(-2); } @@ -349,6 +351,11 @@ export class AppUsersManager { str = 'online'; break; } + + default: { + str = 'last seen a long time ago'; + break; + } } return str; diff --git a/src/lib/lottieLoader.ts b/src/lib/lottieLoader.ts index c7888306..d44d778d 100644 --- a/src/lib/lottieLoader.ts +++ b/src/lib/lottieLoader.ts @@ -1,6 +1,7 @@ import { isApple, mediaSizes, isSafari } from "./config"; import { logger, LogLevels } from "./polyfill"; import animationIntersector from "../components/animationIntersector"; +import apiManager from "./mtproto/mtprotoworker"; let convert = (value: number) => { return Math.round(Math.min(Math.max(value, 0), 1) * 255); @@ -603,6 +604,19 @@ class LottieLoader { } } + public loadAnimationFromURL(params: Omit, url: string) { + if(!this.loaded) { + this.loadLottieWorkers(); + } + + return fetch(url) + .then(res => res.arrayBuffer()) + .then(data => apiManager.gzipUncompress(data, true)) + .then(str => { + return this.loadAnimationWorker(Object.assign(params, {animationData: JSON.parse(str)})); + }); + } + public async loadAnimationWorker(params: RLottieOptions, group = '', toneIndex = -1) { //params.autoplay = true; @@ -638,6 +652,7 @@ class LottieLoader { return; } + this.log.debug('onPlayerLoaded'); rlPlayer.onLoad(frameCount, fps); //rlPlayer.addListener('firstFrame', () => { //animationIntersector.addAnimation(player, group); diff --git a/src/lib/mtproto/schema.ts b/src/lib/mtproto/schema.ts index 70fd1994..97a848fc 100644 --- a/src/lib/mtproto/schema.ts +++ b/src/lib/mtproto/schema.ts @@ -18,7 +18,7 @@ type Method = { type: string }; -export default {"MTProto":{"constructors":[{"id":"481674261","predicate":"vector","params":[],"type":"Vector t"},{"id":"85337187","predicate":"resPQ","params":[{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"pq","type":"bytes"},{"name":"server_public_key_fingerprints","type":"Vector"}],"type":"ResPQ"},{"id":2211011308,"predicate":"p_q_inner_data","params":[{"name":"pq","type":"bytes"},{"name":"p","type":"bytes"},{"name":"q","type":"bytes"},{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"new_nonce","type":"int256"}],"type":"P_Q_inner_data"},{"id":2851430293,"predicate":"p_q_inner_data_dc","params":[{"name":"pq","type":"bytes"},{"name":"p","type":"bytes"},{"name":"q","type":"bytes"},{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"new_nonce","type":"int256"},{"name":"dc","type":"int"}],"type":"P_Q_inner_data"},{"id":"1013613780","predicate":"p_q_inner_data_temp","params":[{"name":"pq","type":"bytes"},{"name":"p","type":"bytes"},{"name":"q","type":"bytes"},{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"new_nonce","type":"int256"},{"name":"expires_in","type":"int"}],"type":"P_Q_inner_data"},{"id":"1459478408","predicate":"p_q_inner_data_temp_dc","params":[{"name":"pq","type":"bytes"},{"name":"p","type":"bytes"},{"name":"q","type":"bytes"},{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"new_nonce","type":"int256"},{"name":"dc","type":"int"},{"name":"expires_in","type":"int"}],"type":"P_Q_inner_d"},{"id":"2043348061","predicate":"server_DH_params_fail","params":[{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"new_nonce_hash","type":"int128"}],"type":"Server_DH_Params"},{"id":3504867164,"predicate":"server_DH_params_ok","params":[{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"encrypted_answer","type":"bytes"}],"type":"Server_DH_Params"},{"id":3045658042,"predicate":"server_DH_inner_data","params":[{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"g","type":"int"},{"name":"dh_prime","type":"bytes"},{"name":"g_a","type":"bytes"},{"name":"server_time","type":"int"}],"type":"Server_DH_inner_data"},{"id":"1715713620","predicate":"client_DH_inner_data","params":[{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"retry_id","type":"long"},{"name":"g_b","type":"bytes"}],"type":"Client_DH_Inner_Data"},{"id":"1003222836","predicate":"dh_gen_ok","params":[{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"new_nonce_hash1","type":"int128"}],"type":"Set_client_DH_params_answer"},{"id":"1188831161","predicate":"dh_gen_retry","params":[{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"new_nonce_hash2","type":"int128"}],"type":"Set_client_DH_params_answer"},{"id":2795351554,"predicate":"dh_gen_fail","params":[{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"new_nonce_hash3","type":"int128"}],"type":"Set_client_DH_params_answer"},{"id":4082920705,"predicate":"rpc_result","params":[{"name":"req_msg_id","type":"long"},{"name":"result","type":"Object"}],"type":"RpcResult"},{"id":"558156313","predicate":"rpc_error","params":[{"name":"error_code","type":"int"},{"name":"error_message","type":"string"}],"type":"RpcError"},{"id":"1579864942","predicate":"rpc_answer_unknown","params":[],"type":"RpcDropAnswer"},{"id":3447252358,"predicate":"rpc_answer_dropped_running","params":[],"type":"RpcDropAnswer"},{"id":2755319991,"predicate":"rpc_answer_dropped","params":[{"name":"msg_id","type":"long"},{"name":"seq_no","type":"int"},{"name":"bytes","type":"int"}],"type":"RpcDropAnswer"},{"id":"155834844","predicate":"future_salt","params":[{"name":"valid_since","type":"int"},{"name":"valid_until","type":"int"},{"name":"salt","type":"long"}],"type":"FutureSalt"},{"id":2924480661,"predicate":"future_salts","params":[{"name":"req_msg_id","type":"long"},{"name":"now","type":"int"},{"name":"salts","type":"vector"}],"type":"FutureSalts"},{"id":"880243653","predicate":"pong","params":[{"name":"msg_id","type":"long"},{"name":"ping_id","type":"long"}],"type":"Pong"},{"id":2663516424,"predicate":"new_session_created","params":[{"name":"first_msg_id","type":"long"},{"name":"unique_id","type":"long"},{"name":"server_salt","type":"long"}],"type":"NewSession"},{"id":"1945237724","predicate":"msg_container","params":[{"name":"messages","type":"vector<%Message>"}],"type":"MessageContainer"},{"id":"1538843921","predicate":"message","params":[{"name":"msg_id","type":"long"},{"name":"seqno","type":"int"},{"name":"bytes","type":"int"},{"name":"body","type":"Object"}],"type":"Message"},{"id":3764405938,"predicate":"msg_copy","params":[{"name":"orig_message","type":"Message"}],"type":"MessageCopy"},{"id":"812830625","predicate":"gzip_packed","params":[{"name":"packed_data","type":"bytes"}],"type":"Object"},{"id":"1658238041","predicate":"msgs_ack","params":[{"name":"msg_ids","type":"Vector"}],"type":"MsgsAck"},{"id":2817521681,"predicate":"bad_msg_notification","params":[{"name":"bad_msg_id","type":"long"},{"name":"bad_msg_seqno","type":"int"},{"name":"error_code","type":"int"}],"type":"BadMsgNotification"},{"id":3987424379,"predicate":"bad_server_salt","params":[{"name":"bad_msg_id","type":"long"},{"name":"bad_msg_seqno","type":"int"},{"name":"error_code","type":"int"},{"name":"new_server_salt","type":"long"}],"type":"BadMsgNotification"},{"id":"2105940488","predicate":"msg_resend_req","params":[{"name":"msg_ids","type":"Vector"}],"type":"MsgResendReq"},{"id":2249243371,"predicate":"msg_resend_ans_req","params":[{"name":"msg_ids","type":"Vector"}],"type":"MsgResendReq"},{"id":3664378706,"predicate":"msgs_state_req","params":[{"name":"msg_ids","type":"Vector"}],"type":"MsgsStateReq"},{"id":"81704317","predicate":"msgs_state_info","params":[{"name":"req_msg_id","type":"long"},{"name":"info","type":"bytes"}],"type":"MsgsStateInfo"},{"id":2361446705,"predicate":"msgs_all_info","params":[{"name":"msg_ids","type":"Vector"},{"name":"info","type":"bytes"}],"type":"MsgsAllInfo"},{"id":"661470918","predicate":"msg_detailed_info","params":[{"name":"msg_id","type":"long"},{"name":"answer_msg_id","type":"long"},{"name":"bytes","type":"int"},{"name":"status","type":"int"}],"type":"MsgDetailedInfo"},{"id":2157819615,"predicate":"msg_new_detailed_info","params":[{"name":"answer_msg_id","type":"long"},{"name":"bytes","type":"int"},{"name":"status","type":"int"}],"type":"MsgDetailedInfo"},{"id":"1973679973","predicate":"bind_auth_key_inner","params":[{"name":"nonce","type":"long"},{"name":"temp_auth_key_id","type":"long"},{"name":"perm_auth_key_id","type":"long"},{"name":"temp_session_id","type":"long"},{"name":"expires_at","type":"int"}],"type":"BindAuthKeyInner"},{"id":4133544404,"predicate":"destroy_auth_key_ok","params":[],"type":"DestroyAuthKeyRes"},{"id":"178201177","predicate":"destroy_auth_key_none","params":[],"type":"DestroyAuthKeyRes"},{"id":3926956819,"predicate":"destroy_auth_key_fail","params":[],"type":"DestroyAuthKeyRes"},{"id":3793765884,"predicate":"destroy_session_ok","params":[{"name":"session_id","type":"long"}],"type":"DestroySessionRes"},{"id":"1658015945","predicate":"destroy_session_none","params":[{"name":"session_id","type":"long"}],"type":"DestroySessionRes"}],"methods":[{"id":"1615239032","method":"req_pq","params":[{"name":"nonce","type":"int128"}],"type":"ResPQ"},{"id":3195965169,"method":"req_pq_multi","params":[{"name":"nonce","type":"int128"}],"type":"ResPQ"},{"id":3608339646,"method":"req_DH_params","params":[{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"p","type":"bytes"},{"name":"q","type":"bytes"},{"name":"public_key_fingerprint","type":"long"},{"name":"encrypted_data","type":"bytes"}],"type":"Server_DH_Params"},{"id":4110704415,"method":"set_client_DH_params","params":[{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"encrypted_data","type":"bytes"}],"type":"Set_client_DH_params_answer"},{"id":"1491380032","method":"rpc_drop_answer","params":[{"name":"req_msg_id","type":"long"}],"type":"RpcDropAnswer"},{"id":3105996036,"method":"get_future_salts","params":[{"name":"num","type":"int"}],"type":"FutureSalts"},{"id":"2059302892","method":"ping","params":[{"name":"ping_id","type":"long"}],"type":"Pong"},{"id":4081220492,"method":"ping_delay_disconnect","params":[{"name":"ping_id","type":"long"},{"name":"disconnect_delay","type":"int"}],"type":"Pong"},{"id":2459514271,"method":"http_wait","params":[{"name":"max_delay","type":"int"},{"name":"wait_after","type":"int"},{"name":"max_wait","type":"int"}],"type":"HttpWait"},{"id":3510849888,"method":"destroy_auth_key","params":[],"type":"DestroyAuthKeyRes"},{"id":3880853798,"method":"destroy_session","params":[{"name":"session_id","type":"long"}],"type":"DestroySessionRes"}]},"API":{"constructors":[{"id":3162085175,"predicate":"boolFalse","params":[],"type":"Bool"},{"id":2574415285,"predicate":"boolTrue","params":[],"type":"Bool"},{"id":1072550713,"predicate":"true","params":[],"type":"True"},{"id":481674261,"predicate":"vector","params":[],"type":"Vector t"},{"id":3300522427,"predicate":"error","params":[{"name":"code","type":"int"},{"name":"text","type":"string"}],"type":"Error"},{"id":1450380236,"predicate":"null","params":[],"type":"Null"},{"id":2134579434,"predicate":"inputPeerEmpty","params":[],"type":"InputPeer"},{"id":2107670217,"predicate":"inputPeerSelf","params":[],"type":"InputPeer"},{"id":396093539,"predicate":"inputPeerChat","params":[{"name":"chat_id","type":"int"}],"type":"InputPeer"},{"id":2072935910,"predicate":"inputPeerUser","params":[{"name":"user_id","type":"int"},{"name":"access_hash","type":"long"}],"type":"InputPeer"},{"id":548253432,"predicate":"inputPeerChannel","params":[{"name":"channel_id","type":"int"},{"name":"access_hash","type":"long"}],"type":"InputPeer"},{"id":398123750,"predicate":"inputPeerUserFromMessage","params":[{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int"},{"name":"user_id","type":"int"}],"type":"InputPeer"},{"id":2627073979,"predicate":"inputPeerChannelFromMessage","params":[{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int"},{"name":"channel_id","type":"int"}],"type":"InputPeer"},{"id":3112732367,"predicate":"inputUserEmpty","params":[],"type":"InputUser"},{"id":4156666175,"predicate":"inputUserSelf","params":[],"type":"InputUser"},{"id":3626575894,"predicate":"inputUser","params":[{"name":"user_id","type":"int"},{"name":"access_hash","type":"long"}],"type":"InputUser"},{"id":756118935,"predicate":"inputUserFromMessage","params":[{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int"},{"name":"user_id","type":"int"}],"type":"InputUser"},{"id":4086478836,"predicate":"inputPhoneContact","params":[{"name":"client_id","type":"long"},{"name":"phone","type":"string"},{"name":"first_name","type":"string"},{"name":"last_name","type":"string"}],"type":"InputContact"},{"id":4113560191,"predicate":"inputFile","params":[{"name":"id","type":"long"},{"name":"parts","type":"int"},{"name":"name","type":"string"},{"name":"md5_checksum","type":"string"}],"type":"InputFile"},{"id":4199484341,"predicate":"inputFileBig","params":[{"name":"id","type":"long"},{"name":"parts","type":"int"},{"name":"name","type":"string"}],"type":"InputFile"},{"id":2523198847,"predicate":"inputMediaEmpty","params":[],"type":"InputMedia"},{"id":505969924,"predicate":"inputMediaUploadedPhoto","params":[{"name":"flags","type":"#"},{"name":"file","type":"InputFile"},{"name":"stickers","type":"flags.0?Vector"},{"name":"ttl_seconds","type":"flags.1?int"}],"type":"InputMedia"},{"id":3015312949,"predicate":"inputMediaPhoto","params":[{"name":"flags","type":"#"},{"name":"id","type":"InputPhoto"},{"name":"ttl_seconds","type":"flags.0?int"}],"type":"InputMedia"},{"id":4190388548,"predicate":"inputMediaGeoPoint","params":[{"name":"geo_point","type":"InputGeoPoint"}],"type":"InputMedia"},{"id":4171988475,"predicate":"inputMediaContact","params":[{"name":"phone_number","type":"string"},{"name":"first_name","type":"string"},{"name":"last_name","type":"string"},{"name":"vcard","type":"string"}],"type":"InputMedia"},{"id":1530447553,"predicate":"inputMediaUploadedDocument","params":[{"name":"flags","type":"#"},{"name":"nosound_video","type":"flags.3?true"},{"name":"file","type":"InputFile"},{"name":"thumb","type":"flags.2?InputFile"},{"name":"mime_type","type":"string"},{"name":"attributes","type":"Vector"},{"name":"stickers","type":"flags.0?Vector"},{"name":"ttl_seconds","type":"flags.1?int"}],"type":"InputMedia"},{"id":598418386,"predicate":"inputMediaDocument","params":[{"name":"flags","type":"#"},{"name":"id","type":"InputDocument"},{"name":"ttl_seconds","type":"flags.0?int"}],"type":"InputMedia"},{"id":3242007569,"predicate":"inputMediaVenue","params":[{"name":"geo_point","type":"InputGeoPoint"},{"name":"title","type":"string"},{"name":"address","type":"string"},{"name":"provider","type":"string"},{"name":"venue_id","type":"string"},{"name":"venue_type","type":"string"}],"type":"InputMedia"},{"id":1212395773,"predicate":"inputMediaGifExternal","params":[{"name":"url","type":"string"},{"name":"q","type":"string"}],"type":"InputMedia"},{"id":3854302746,"predicate":"inputMediaPhotoExternal","params":[{"name":"flags","type":"#"},{"name":"url","type":"string"},{"name":"ttl_seconds","type":"flags.0?int"}],"type":"InputMedia"},{"id":4216511641,"predicate":"inputMediaDocumentExternal","params":[{"name":"flags","type":"#"},{"name":"url","type":"string"},{"name":"ttl_seconds","type":"flags.0?int"}],"type":"InputMedia"},{"id":3544138739,"predicate":"inputMediaGame","params":[{"name":"id","type":"InputGame"}],"type":"InputMedia"},{"id":4108359363,"predicate":"inputMediaInvoice","params":[{"name":"flags","type":"#"},{"name":"title","type":"string"},{"name":"description","type":"string"},{"name":"photo","type":"flags.0?InputWebDocument"},{"name":"invoice","type":"Invoice"},{"name":"payload","type":"bytes"},{"name":"provider","type":"string"},{"name":"provider_data","type":"DataJSON"},{"name":"start_param","type":"string"}],"type":"InputMedia"},{"id":3461251837,"predicate":"inputMediaGeoLive","params":[{"name":"flags","type":"#"},{"name":"stopped","type":"flags.0?true"},{"name":"geo_point","type":"InputGeoPoint"},{"name":"period","type":"flags.1?int"}],"type":"InputMedia"},{"id":261416433,"predicate":"inputMediaPoll","params":[{"name":"flags","type":"#"},{"name":"poll","type":"Poll"},{"name":"correct_answers","type":"flags.0?Vector"},{"name":"solution","type":"flags.1?string"},{"name":"solution_entities","type":"flags.1?Vector"}],"type":"InputMedia"},{"id":3866083195,"predicate":"inputMediaDice","params":[{"name":"emoticon","type":"string"}],"type":"InputMedia"},{"id":480546647,"predicate":"inputChatPhotoEmpty","params":[],"type":"InputChatPhoto"},{"id":2457621940,"predicate":"inputChatUploadedPhoto","params":[{"name":"file","type":"InputFile"}],"type":"InputChatPhoto"},{"id":2303962423,"predicate":"inputChatPhoto","params":[{"name":"id","type":"InputPhoto"}],"type":"InputChatPhoto"},{"id":3837862870,"predicate":"inputGeoPointEmpty","params":[],"type":"InputGeoPoint"},{"id":4088900809,"predicate":"inputGeoPoint","params":[{"name":"lat","type":"double"},{"name":"long","type":"double"}],"type":"InputGeoPoint"},{"id":483901197,"predicate":"inputPhotoEmpty","params":[],"type":"InputPhoto"},{"id":1001634122,"predicate":"inputPhoto","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"file_reference","type":"bytes"}],"type":"InputPhoto"},{"id":3755650017,"predicate":"inputFileLocation","params":[{"name":"volume_id","type":"long"},{"name":"local_id","type":"int"},{"name":"secret","type":"long"},{"name":"file_reference","type":"bytes"}],"type":"InputFileLocation"},{"id":4112735573,"predicate":"inputEncryptedFileLocation","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"}],"type":"InputFileLocation"},{"id":3134223748,"predicate":"inputDocumentFileLocation","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"file_reference","type":"bytes"},{"name":"thumb_size","type":"string"}],"type":"InputFileLocation"},{"id":3418877480,"predicate":"inputSecureFileLocation","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"}],"type":"InputFileLocation"},{"id":700340377,"predicate":"inputTakeoutFileLocation","params":[],"type":"InputFileLocation"},{"id":1075322878,"predicate":"inputPhotoFileLocation","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"file_reference","type":"bytes"},{"name":"thumb_size","type":"string"}],"type":"InputFileLocation"},{"id":3627312883,"predicate":"inputPhotoLegacyFileLocation","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"file_reference","type":"bytes"},{"name":"volume_id","type":"long"},{"name":"local_id","type":"int"},{"name":"secret","type":"long"}],"type":"InputFileLocation"},{"id":668375447,"predicate":"inputPeerPhotoFileLocation","params":[{"name":"flags","type":"#"},{"name":"big","type":"flags.0?true"},{"name":"peer","type":"InputPeer"},{"name":"volume_id","type":"long"},{"name":"local_id","type":"int"}],"type":"InputFileLocation"},{"id":230353641,"predicate":"inputStickerSetThumb","params":[{"name":"stickerset","type":"InputStickerSet"},{"name":"volume_id","type":"long"},{"name":"local_id","type":"int"}],"type":"InputFileLocation"},{"id":2645671021,"predicate":"peerUser","params":[{"name":"user_id","type":"int"}],"type":"Peer"},{"id":3134252475,"predicate":"peerChat","params":[{"name":"chat_id","type":"int"}],"type":"Peer"},{"id":3185435954,"predicate":"peerChannel","params":[{"name":"channel_id","type":"int"}],"type":"Peer"},{"id":2861972229,"predicate":"storage.fileUnknown","params":[],"type":"storage.FileType"},{"id":1086091090,"predicate":"storage.filePartial","params":[],"type":"storage.FileType"},{"id":8322574,"predicate":"storage.fileJpeg","params":[],"type":"storage.FileType"},{"id":3403786975,"predicate":"storage.fileGif","params":[],"type":"storage.FileType"},{"id":172975040,"predicate":"storage.filePng","params":[],"type":"storage.FileType"},{"id":2921222285,"predicate":"storage.filePdf","params":[],"type":"storage.FileType"},{"id":1384777335,"predicate":"storage.fileMp3","params":[],"type":"storage.FileType"},{"id":1258941372,"predicate":"storage.fileMov","params":[],"type":"storage.FileType"},{"id":3016663268,"predicate":"storage.fileMp4","params":[],"type":"storage.FileType"},{"id":276907596,"predicate":"storage.fileWebp","params":[],"type":"storage.FileType"},{"id":537022650,"predicate":"userEmpty","params":[{"name":"id","type":"int"}],"type":"User"},{"id":2474924225,"predicate":"user","params":[{"name":"flags","type":"#"},{"name":"self","type":"flags.10?true"},{"name":"contact","type":"flags.11?true"},{"name":"mutual_contact","type":"flags.12?true"},{"name":"deleted","type":"flags.13?true"},{"name":"bot","type":"flags.14?true"},{"name":"bot_chat_history","type":"flags.15?true"},{"name":"bot_nochats","type":"flags.16?true"},{"name":"verified","type":"flags.17?true"},{"name":"restricted","type":"flags.18?true"},{"name":"min","type":"flags.20?true"},{"name":"bot_inline_geo","type":"flags.21?true"},{"name":"support","type":"flags.23?true"},{"name":"scam","type":"flags.24?true"},{"name":"id","type":"int"},{"name":"access_hash","type":"flags.0?long"},{"name":"first_name","type":"flags.1?string"},{"name":"last_name","type":"flags.2?string"},{"name":"username","type":"flags.3?string"},{"name":"phone","type":"flags.4?string"},{"name":"photo","type":"flags.5?UserProfilePhoto"},{"name":"status","type":"flags.6?UserStatus"},{"name":"bot_info_version","type":"flags.14?int"},{"name":"restriction_reason","type":"flags.18?Vector"},{"name":"bot_inline_placeholder","type":"flags.19?string"},{"name":"lang_code","type":"flags.22?string"}],"type":"User"},{"id":1326562017,"predicate":"userProfilePhotoEmpty","params":[],"type":"UserProfilePhoto"},{"id":3973537164,"predicate":"userProfilePhoto","params":[{"name":"photo_id","type":"long"},{"name":"photo_small","type":"FileLocation"},{"name":"photo_big","type":"FileLocation"},{"name":"dc_id","type":"int"}],"type":"UserProfilePhoto"},{"id":164646985,"predicate":"userStatusEmpty","params":[],"type":"UserStatus"},{"id":3988339017,"predicate":"userStatusOnline","params":[{"name":"expires","type":"int"}],"type":"UserStatus"},{"id":9203775,"predicate":"userStatusOffline","params":[{"name":"was_online","type":"int"}],"type":"UserStatus"},{"id":3798942449,"predicate":"userStatusRecently","params":[],"type":"UserStatus"},{"id":129960444,"predicate":"userStatusLastWeek","params":[],"type":"UserStatus"},{"id":2011940674,"predicate":"userStatusLastMonth","params":[],"type":"UserStatus"},{"id":2611140608,"predicate":"chatEmpty","params":[{"name":"id","type":"int"}],"type":"Chat"},{"id":1004149726,"predicate":"chat","params":[{"name":"flags","type":"#"},{"name":"creator","type":"flags.0?true"},{"name":"kicked","type":"flags.1?true"},{"name":"left","type":"flags.2?true"},{"name":"deactivated","type":"flags.5?true"},{"name":"id","type":"int"},{"name":"title","type":"string"},{"name":"photo","type":"ChatPhoto"},{"name":"participants_count","type":"int"},{"name":"date","type":"int"},{"name":"version","type":"int"},{"name":"migrated_to","type":"flags.6?InputChannel"},{"name":"admin_rights","type":"flags.14?ChatAdminRights"},{"name":"default_banned_rights","type":"flags.18?ChatBannedRights"}],"type":"Chat"},{"id":120753115,"predicate":"chatForbidden","params":[{"name":"id","type":"int"},{"name":"title","type":"string"}],"type":"Chat"},{"id":3541734942,"predicate":"channel","params":[{"name":"flags","type":"#"},{"name":"creator","type":"flags.0?true"},{"name":"left","type":"flags.2?true"},{"name":"broadcast","type":"flags.5?true"},{"name":"verified","type":"flags.7?true"},{"name":"megagroup","type":"flags.8?true"},{"name":"restricted","type":"flags.9?true"},{"name":"signatures","type":"flags.11?true"},{"name":"min","type":"flags.12?true"},{"name":"scam","type":"flags.19?true"},{"name":"has_link","type":"flags.20?true"},{"name":"has_geo","type":"flags.21?true"},{"name":"slowmode_enabled","type":"flags.22?true"},{"name":"id","type":"int"},{"name":"access_hash","type":"flags.13?long"},{"name":"title","type":"string"},{"name":"username","type":"flags.6?string"},{"name":"photo","type":"ChatPhoto"},{"name":"date","type":"int"},{"name":"version","type":"int"},{"name":"restriction_reason","type":"flags.9?Vector"},{"name":"admin_rights","type":"flags.14?ChatAdminRights"},{"name":"banned_rights","type":"flags.15?ChatBannedRights"},{"name":"default_banned_rights","type":"flags.18?ChatBannedRights"},{"name":"participants_count","type":"flags.17?int"}],"type":"Chat"},{"id":681420594,"predicate":"channelForbidden","params":[{"name":"flags","type":"#"},{"name":"broadcast","type":"flags.5?true"},{"name":"megagroup","type":"flags.8?true"},{"name":"id","type":"int"},{"name":"access_hash","type":"long"},{"name":"title","type":"string"},{"name":"until_date","type":"flags.16?int"}],"type":"Chat"},{"id":461151667,"predicate":"chatFull","params":[{"name":"flags","type":"#"},{"name":"can_set_username","type":"flags.7?true"},{"name":"has_scheduled","type":"flags.8?true"},{"name":"id","type":"int"},{"name":"about","type":"string"},{"name":"participants","type":"ChatParticipants"},{"name":"chat_photo","type":"flags.2?Photo"},{"name":"notify_settings","type":"PeerNotifySettings"},{"name":"exported_invite","type":"ExportedChatInvite"},{"name":"bot_info","type":"flags.3?Vector"},{"name":"pinned_msg_id","type":"flags.6?int"},{"name":"folder_id","type":"flags.11?int"}],"type":"ChatFull"},{"id":4041631530,"predicate":"channelFull","params":[{"name":"flags","type":"#"},{"name":"can_view_participants","type":"flags.3?true"},{"name":"can_set_username","type":"flags.6?true"},{"name":"can_set_stickers","type":"flags.7?true"},{"name":"hidden_prehistory","type":"flags.10?true"},{"name":"can_view_stats","type":"flags.12?true"},{"name":"can_set_location","type":"flags.16?true"},{"name":"has_scheduled","type":"flags.19?true"},{"name":"id","type":"int"},{"name":"about","type":"string"},{"name":"participants_count","type":"flags.0?int"},{"name":"admins_count","type":"flags.1?int"},{"name":"kicked_count","type":"flags.2?int"},{"name":"banned_count","type":"flags.2?int"},{"name":"online_count","type":"flags.13?int"},{"name":"read_inbox_max_id","type":"int"},{"name":"read_outbox_max_id","type":"int"},{"name":"unread_count","type":"int"},{"name":"chat_photo","type":"Photo"},{"name":"notify_settings","type":"PeerNotifySettings"},{"name":"exported_invite","type":"ExportedChatInvite"},{"name":"bot_info","type":"Vector"},{"name":"migrated_from_chat_id","type":"flags.4?int"},{"name":"migrated_from_max_id","type":"flags.4?int"},{"name":"pinned_msg_id","type":"flags.5?int"},{"name":"stickerset","type":"flags.8?StickerSet"},{"name":"available_min_id","type":"flags.9?int"},{"name":"folder_id","type":"flags.11?int"},{"name":"linked_chat_id","type":"flags.14?int"},{"name":"location","type":"flags.15?ChannelLocation"},{"name":"slowmode_seconds","type":"flags.17?int"},{"name":"slowmode_next_send_date","type":"flags.18?int"},{"name":"stats_dc","type":"flags.12?int"},{"name":"pts","type":"int"}],"type":"ChatFull"},{"id":3369552190,"predicate":"chatParticipant","params":[{"name":"user_id","type":"int"},{"name":"inviter_id","type":"int"},{"name":"date","type":"int"}],"type":"ChatParticipant"},{"id":3658699658,"predicate":"chatParticipantCreator","params":[{"name":"user_id","type":"int"}],"type":"ChatParticipant"},{"id":3805733942,"predicate":"chatParticipantAdmin","params":[{"name":"user_id","type":"int"},{"name":"inviter_id","type":"int"},{"name":"date","type":"int"}],"type":"ChatParticipant"},{"id":4237298731,"predicate":"chatParticipantsForbidden","params":[{"name":"flags","type":"#"},{"name":"chat_id","type":"int"},{"name":"self_participant","type":"flags.0?ChatParticipant"}],"type":"ChatParticipants"},{"id":1061556205,"predicate":"chatParticipants","params":[{"name":"chat_id","type":"int"},{"name":"participants","type":"Vector"},{"name":"version","type":"int"}],"type":"ChatParticipants"},{"id":935395612,"predicate":"chatPhotoEmpty","params":[],"type":"ChatPhoto"},{"id":1197267925,"predicate":"chatPhoto","params":[{"name":"photo_small","type":"FileLocation"},{"name":"photo_big","type":"FileLocation"},{"name":"dc_id","type":"int"}],"type":"ChatPhoto"},{"id":2212879956,"predicate":"messageEmpty","params":[{"name":"id","type":"int"}],"type":"Message"},{"id":1160515173,"predicate":"message","params":[{"name":"flags","type":"#"},{"name":"out","type":"flags.1?true"},{"name":"mentioned","type":"flags.4?true"},{"name":"media_unread","type":"flags.5?true"},{"name":"silent","type":"flags.13?true"},{"name":"post","type":"flags.14?true"},{"name":"from_scheduled","type":"flags.18?true"},{"name":"legacy","type":"flags.19?true"},{"name":"edit_hide","type":"flags.21?true"},{"name":"id","type":"int"},{"name":"from_id","type":"flags.8?int"},{"name":"to_id","type":"Peer"},{"name":"fwd_from","type":"flags.2?MessageFwdHeader"},{"name":"via_bot_id","type":"flags.11?int"},{"name":"reply_to_msg_id","type":"flags.3?int"},{"name":"date","type":"int"},{"name":"message","type":"string"},{"name":"media","type":"flags.9?MessageMedia"},{"name":"reply_markup","type":"flags.6?ReplyMarkup"},{"name":"entities","type":"flags.7?Vector"},{"name":"views","type":"flags.10?int"},{"name":"edit_date","type":"flags.15?int"},{"name":"post_author","type":"flags.16?string"},{"name":"grouped_id","type":"flags.17?long"},{"name":"restriction_reason","type":"flags.22?Vector"}],"type":"Message"},{"id":2652479990,"predicate":"messageService","params":[{"name":"flags","type":"#"},{"name":"out","type":"flags.1?true"},{"name":"mentioned","type":"flags.4?true"},{"name":"media_unread","type":"flags.5?true"},{"name":"silent","type":"flags.13?true"},{"name":"post","type":"flags.14?true"},{"name":"legacy","type":"flags.19?true"},{"name":"id","type":"int"},{"name":"from_id","type":"flags.8?int"},{"name":"to_id","type":"Peer"},{"name":"reply_to_msg_id","type":"flags.3?int"},{"name":"date","type":"int"},{"name":"action","type":"MessageAction"}],"type":"Message"},{"id":1038967584,"predicate":"messageMediaEmpty","params":[],"type":"MessageMedia"},{"id":1766936791,"predicate":"messageMediaPhoto","params":[{"name":"flags","type":"#"},{"name":"photo","type":"flags.0?Photo"},{"name":"ttl_seconds","type":"flags.2?int"}],"type":"MessageMedia"},{"id":1457575028,"predicate":"messageMediaGeo","params":[{"name":"geo","type":"GeoPoint"}],"type":"MessageMedia"},{"id":3421653312,"predicate":"messageMediaContact","params":[{"name":"phone_number","type":"string"},{"name":"first_name","type":"string"},{"name":"last_name","type":"string"},{"name":"vcard","type":"string"},{"name":"user_id","type":"int"}],"type":"MessageMedia"},{"id":2676290718,"predicate":"messageMediaUnsupported","params":[],"type":"MessageMedia"},{"id":2628808919,"predicate":"messageMediaDocument","params":[{"name":"flags","type":"#"},{"name":"document","type":"flags.0?Document"},{"name":"ttl_seconds","type":"flags.2?int"}],"type":"MessageMedia"},{"id":2737690112,"predicate":"messageMediaWebPage","params":[{"name":"webpage","type":"WebPage"}],"type":"MessageMedia"},{"id":784356159,"predicate":"messageMediaVenue","params":[{"name":"geo","type":"GeoPoint"},{"name":"title","type":"string"},{"name":"address","type":"string"},{"name":"provider","type":"string"},{"name":"venue_id","type":"string"},{"name":"venue_type","type":"string"}],"type":"MessageMedia"},{"id":4256272392,"predicate":"messageMediaGame","params":[{"name":"game","type":"Game"}],"type":"MessageMedia"},{"id":2220168007,"predicate":"messageMediaInvoice","params":[{"name":"flags","type":"#"},{"name":"shipping_address_requested","type":"flags.1?true"},{"name":"test","type":"flags.3?true"},{"name":"title","type":"string"},{"name":"description","type":"string"},{"name":"photo","type":"flags.0?WebDocument"},{"name":"receipt_msg_id","type":"flags.2?int"},{"name":"currency","type":"string"},{"name":"total_amount","type":"long"},{"name":"start_param","type":"string"}],"type":"MessageMedia"},{"id":2084316681,"predicate":"messageMediaGeoLive","params":[{"name":"geo","type":"GeoPoint"},{"name":"period","type":"int"}],"type":"MessageMedia"},{"id":1272375192,"predicate":"messageMediaPoll","params":[{"name":"poll","type":"Poll"},{"name":"results","type":"PollResults"}],"type":"MessageMedia"},{"id":1065280907,"predicate":"messageMediaDice","params":[{"name":"value","type":"int"},{"name":"emoticon","type":"string"}],"type":"MessageMedia"},{"id":3064919984,"predicate":"messageActionEmpty","params":[],"type":"MessageAction"},{"id":2791541658,"predicate":"messageActionChatCreate","params":[{"name":"title","type":"string"},{"name":"users","type":"Vector"}],"type":"MessageAction"},{"id":3047280218,"predicate":"messageActionChatEditTitle","params":[{"name":"title","type":"string"}],"type":"MessageAction"},{"id":2144015272,"predicate":"messageActionChatEditPhoto","params":[{"name":"photo","type":"Photo"}],"type":"MessageAction"},{"id":2514746351,"predicate":"messageActionChatDeletePhoto","params":[],"type":"MessageAction"},{"id":1217033015,"predicate":"messageActionChatAddUser","params":[{"name":"users","type":"Vector"}],"type":"MessageAction"},{"id":2997787404,"predicate":"messageActionChatDeleteUser","params":[{"name":"user_id","type":"int"}],"type":"MessageAction"},{"id":4171036136,"predicate":"messageActionChatJoinedByLink","params":[{"name":"inviter_id","type":"int"}],"type":"MessageAction"},{"id":2513611922,"predicate":"messageActionChannelCreate","params":[{"name":"title","type":"string"}],"type":"MessageAction"},{"id":1371385889,"predicate":"messageActionChatMigrateTo","params":[{"name":"channel_id","type":"int"}],"type":"MessageAction"},{"id":2958420718,"predicate":"messageActionChannelMigrateFrom","params":[{"name":"title","type":"string"},{"name":"chat_id","type":"int"}],"type":"MessageAction"},{"id":2495428845,"predicate":"messageActionPinMessage","params":[],"type":"MessageAction"},{"id":2679813636,"predicate":"messageActionHistoryClear","params":[],"type":"MessageAction"},{"id":2460428406,"predicate":"messageActionGameScore","params":[{"name":"game_id","type":"long"},{"name":"score","type":"int"}],"type":"MessageAction"},{"id":2402399015,"predicate":"messageActionPaymentSentMe","params":[{"name":"flags","type":"#"},{"name":"currency","type":"string"},{"name":"total_amount","type":"long"},{"name":"payload","type":"bytes"},{"name":"info","type":"flags.0?PaymentRequestedInfo"},{"name":"shipping_option_id","type":"flags.1?string"},{"name":"charge","type":"PaymentCharge"}],"type":"MessageAction"},{"id":1080663248,"predicate":"messageActionPaymentSent","params":[{"name":"currency","type":"string"},{"name":"total_amount","type":"long"}],"type":"MessageAction"},{"id":2162236031,"predicate":"messageActionPhoneCall","params":[{"name":"flags","type":"#"},{"name":"video","type":"flags.2?true"},{"name":"call_id","type":"long"},{"name":"reason","type":"flags.0?PhoneCallDiscardReason"},{"name":"duration","type":"flags.1?int"}],"type":"MessageAction"},{"id":1200788123,"predicate":"messageActionScreenshotTaken","params":[],"type":"MessageAction"},{"id":4209418070,"predicate":"messageActionCustomAction","params":[{"name":"message","type":"string"}],"type":"MessageAction"},{"id":2884218878,"predicate":"messageActionBotAllowed","params":[{"name":"domain","type":"string"}],"type":"MessageAction"},{"id":455635795,"predicate":"messageActionSecureValuesSentMe","params":[{"name":"values","type":"Vector"},{"name":"credentials","type":"SecureCredentialsEncrypted"}],"type":"MessageAction"},{"id":3646710100,"predicate":"messageActionSecureValuesSent","params":[{"name":"types","type":"Vector"}],"type":"MessageAction"},{"id":4092747638,"predicate":"messageActionContactSignUp","params":[],"type":"MessageAction"},{"id":739712882,"predicate":"dialog","params":[{"name":"flags","type":"#"},{"name":"pinned","type":"flags.2?true"},{"name":"unread_mark","type":"flags.3?true"},{"name":"peer","type":"Peer"},{"name":"top_message","type":"int"},{"name":"read_inbox_max_id","type":"int"},{"name":"read_outbox_max_id","type":"int"},{"name":"unread_count","type":"int"},{"name":"unread_mentions_count","type":"int"},{"name":"notify_settings","type":"PeerNotifySettings"},{"name":"pts","type":"flags.0?int"},{"name":"draft","type":"flags.1?DraftMessage"},{"name":"folder_id","type":"flags.4?int"}],"type":"Dialog"},{"id":1908216652,"predicate":"dialogFolder","params":[{"name":"flags","type":"#"},{"name":"pinned","type":"flags.2?true"},{"name":"folder","type":"Folder"},{"name":"peer","type":"Peer"},{"name":"top_message","type":"int"},{"name":"unread_muted_peers_count","type":"int"},{"name":"unread_unmuted_peers_count","type":"int"},{"name":"unread_muted_messages_count","type":"int"},{"name":"unread_unmuted_messages_count","type":"int"}],"type":"Dialog"},{"id":590459437,"predicate":"photoEmpty","params":[{"name":"id","type":"long"}],"type":"Photo"},{"id":3497329829,"predicate":"photo","params":[{"name":"flags","type":"#"},{"name":"has_stickers","type":"flags.0?true"},{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"file_reference","type":"bytes"},{"name":"date","type":"int"},{"name":"sizes","type":"Vector"},{"name":"dc_id","type":"int"}],"type":"Photo"},{"id":236446268,"predicate":"photoSizeEmpty","params":[{"name":"type","type":"string"}],"type":"PhotoSize"},{"id":2009052699,"predicate":"photoSize","params":[{"name":"type","type":"string"},{"name":"location","type":"FileLocation"},{"name":"w","type":"int"},{"name":"h","type":"int"},{"name":"size","type":"int"}],"type":"PhotoSize"},{"id":3920049402,"predicate":"photoCachedSize","params":[{"name":"type","type":"string"},{"name":"location","type":"FileLocation"},{"name":"w","type":"int"},{"name":"h","type":"int"},{"name":"bytes","type":"bytes"}],"type":"PhotoSize"},{"id":3769678894,"predicate":"photoStrippedSize","params":[{"name":"type","type":"string"},{"name":"bytes","type":"bytes"}],"type":"PhotoSize"},{"id":286776671,"predicate":"geoPointEmpty","params":[],"type":"GeoPoint"},{"id":43446532,"predicate":"geoPoint","params":[{"name":"long","type":"double"},{"name":"lat","type":"double"},{"name":"access_hash","type":"long"}],"type":"GeoPoint"},{"id":1577067778,"predicate":"auth.sentCode","params":[{"name":"flags","type":"#"},{"name":"type","type":"auth.SentCodeType"},{"name":"phone_code_hash","type":"string"},{"name":"next_type","type":"flags.1?auth.CodeType"},{"name":"timeout","type":"flags.2?int"}],"type":"auth.SentCode"},{"id":3439659286,"predicate":"auth.authorization","params":[{"name":"flags","type":"#"},{"name":"tmp_sessions","type":"flags.0?int"},{"name":"user","type":"User"}],"type":"auth.Authorization"},{"id":1148485274,"predicate":"auth.authorizationSignUpRequired","params":[{"name":"flags","type":"#"},{"name":"terms_of_service","type":"flags.0?help.TermsOfService"}],"type":"auth.Authorization"},{"id":3751189549,"predicate":"auth.exportedAuthorization","params":[{"name":"id","type":"int"},{"name":"bytes","type":"bytes"}],"type":"auth.ExportedAuthorization"},{"id":3099351820,"predicate":"inputNotifyPeer","params":[{"name":"peer","type":"InputPeer"}],"type":"InputNotifyPeer"},{"id":423314455,"predicate":"inputNotifyUsers","params":[],"type":"InputNotifyPeer"},{"id":1251338318,"predicate":"inputNotifyChats","params":[],"type":"InputNotifyPeer"},{"id":2983951486,"predicate":"inputNotifyBroadcasts","params":[],"type":"InputNotifyPeer"},{"id":2621249934,"predicate":"inputPeerNotifySettings","params":[{"name":"flags","type":"#"},{"name":"show_previews","type":"flags.0?Bool"},{"name":"silent","type":"flags.1?Bool"},{"name":"mute_until","type":"flags.2?int"},{"name":"sound","type":"flags.3?string"}],"type":"InputPeerNotifySettings"},{"id":2941295904,"predicate":"peerNotifySettings","params":[{"name":"flags","type":"#"},{"name":"show_previews","type":"flags.0?Bool"},{"name":"silent","type":"flags.1?Bool"},{"name":"mute_until","type":"flags.2?int"},{"name":"sound","type":"flags.3?string"}],"type":"PeerNotifySettings"},{"id":2172921549,"predicate":"peerSettings","params":[{"name":"flags","type":"#"},{"name":"report_spam","type":"flags.0?true"},{"name":"add_contact","type":"flags.1?true"},{"name":"block_contact","type":"flags.2?true"},{"name":"share_contact","type":"flags.3?true"},{"name":"need_contacts_exception","type":"flags.4?true"},{"name":"report_geo","type":"flags.5?true"}],"type":"PeerSettings"},{"id":2755118061,"predicate":"wallPaper","params":[{"name":"id","type":"long"},{"name":"flags","type":"#"},{"name":"creator","type":"flags.0?true"},{"name":"default","type":"flags.1?true"},{"name":"pattern","type":"flags.3?true"},{"name":"dark","type":"flags.4?true"},{"name":"access_hash","type":"long"},{"name":"slug","type":"string"},{"name":"document","type":"Document"},{"name":"settings","type":"flags.2?WallPaperSettings"}],"type":"WallPaper"},{"id":2331249445,"predicate":"wallPaperNoFile","params":[{"name":"flags","type":"#"},{"name":"default","type":"flags.1?true"},{"name":"dark","type":"flags.4?true"},{"name":"settings","type":"flags.2?WallPaperSettings"}],"type":"WallPaper"},{"id":1490799288,"predicate":"inputReportReasonSpam","params":[],"type":"ReportReason"},{"id":505595789,"predicate":"inputReportReasonViolence","params":[],"type":"ReportReason"},{"id":777640226,"predicate":"inputReportReasonPornography","params":[],"type":"ReportReason"},{"id":2918469347,"predicate":"inputReportReasonChildAbuse","params":[],"type":"ReportReason"},{"id":3782503690,"predicate":"inputReportReasonOther","params":[{"name":"text","type":"string"}],"type":"ReportReason"},{"id":2609510714,"predicate":"inputReportReasonCopyright","params":[],"type":"ReportReason"},{"id":3688169197,"predicate":"inputReportReasonGeoIrrelevant","params":[],"type":"ReportReason"},{"id":3992026130,"predicate":"userFull","params":[{"name":"flags","type":"#"},{"name":"blocked","type":"flags.0?true"},{"name":"phone_calls_available","type":"flags.4?true"},{"name":"phone_calls_private","type":"flags.5?true"},{"name":"can_pin_message","type":"flags.7?true"},{"name":"has_scheduled","type":"flags.12?true"},{"name":"user","type":"User"},{"name":"about","type":"flags.1?string"},{"name":"settings","type":"PeerSettings"},{"name":"profile_photo","type":"flags.2?Photo"},{"name":"notify_settings","type":"PeerNotifySettings"},{"name":"bot_info","type":"flags.3?BotInfo"},{"name":"pinned_msg_id","type":"flags.6?int"},{"name":"common_chats_count","type":"int"},{"name":"folder_id","type":"flags.11?int"}],"type":"UserFull"},{"id":4178692500,"predicate":"contact","params":[{"name":"user_id","type":"int"},{"name":"mutual","type":"Bool"}],"type":"Contact"},{"id":3489825848,"predicate":"importedContact","params":[{"name":"user_id","type":"int"},{"name":"client_id","type":"long"}],"type":"ImportedContact"},{"id":1444661369,"predicate":"contactBlocked","params":[{"name":"user_id","type":"int"},{"name":"date","type":"int"}],"type":"ContactBlocked"},{"id":3546811489,"predicate":"contactStatus","params":[{"name":"user_id","type":"int"},{"name":"status","type":"UserStatus"}],"type":"ContactStatus"},{"id":3075189202,"predicate":"contacts.contactsNotModified","params":[],"type":"contacts.Contacts"},{"id":3941105218,"predicate":"contacts.contacts","params":[{"name":"contacts","type":"Vector"},{"name":"saved_count","type":"int"},{"name":"users","type":"Vector"}],"type":"contacts.Contacts"},{"id":2010127419,"predicate":"contacts.importedContacts","params":[{"name":"imported","type":"Vector"},{"name":"popular_invites","type":"Vector"},{"name":"retry_contacts","type":"Vector"},{"name":"users","type":"Vector"}],"type":"contacts.ImportedContacts"},{"id":471043349,"predicate":"contacts.blocked","params":[{"name":"blocked","type":"Vector"},{"name":"users","type":"Vector"}],"type":"contacts.Blocked"},{"id":2416444065,"predicate":"contacts.blockedSlice","params":[{"name":"count","type":"int"},{"name":"blocked","type":"Vector"},{"name":"users","type":"Vector"}],"type":"contacts.Blocked"},{"id":364538944,"predicate":"messages.dialogs","params":[{"name":"dialogs","type":"Vector"},{"name":"messages","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"messages.Dialogs"},{"id":1910543603,"predicate":"messages.dialogsSlice","params":[{"name":"count","type":"int"},{"name":"dialogs","type":"Vector"},{"name":"messages","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"messages.Dialogs"},{"id":4041467286,"predicate":"messages.dialogsNotModified","params":[{"name":"count","type":"int"}],"type":"messages.Dialogs"},{"id":2356252295,"predicate":"messages.messages","params":[{"name":"messages","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"messages.Messages"},{"id":3371027998,"predicate":"messages.messagesSlice","params":[{"name":"flags","type":"#"},{"name":"inexact","type":"flags.1?true"},{"name":"count","type":"int"},{"name":"next_rate","type":"flags.0?int"},{"name":"messages","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"messages.Messages"},{"id":2569416247,"predicate":"messages.channelMessages","params":[{"name":"flags","type":"#"},{"name":"inexact","type":"flags.1?true"},{"name":"pts","type":"int"},{"name":"count","type":"int"},{"name":"messages","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"messages.Messages"},{"id":1951620897,"predicate":"messages.messagesNotModified","params":[{"name":"count","type":"int"}],"type":"messages.Messages"},{"id":1694474197,"predicate":"messages.chats","params":[{"name":"chats","type":"Vector"}],"type":"messages.Chats"},{"id":2631405892,"predicate":"messages.chatsSlice","params":[{"name":"count","type":"int"},{"name":"chats","type":"Vector"}],"type":"messages.Chats"},{"id":3856126364,"predicate":"messages.chatFull","params":[{"name":"full_chat","type":"ChatFull"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"messages.ChatFull"},{"id":3025955281,"predicate":"messages.affectedHistory","params":[{"name":"pts","type":"int"},{"name":"pts_count","type":"int"},{"name":"offset","type":"int"}],"type":"messages.AffectedHistory"},{"id":1474492012,"predicate":"inputMessagesFilterEmpty","params":[],"type":"MessagesFilter"},{"id":2517214492,"predicate":"inputMessagesFilterPhotos","params":[],"type":"MessagesFilter"},{"id":2680163941,"predicate":"inputMessagesFilterVideo","params":[],"type":"MessagesFilter"},{"id":1458172132,"predicate":"inputMessagesFilterPhotoVideo","params":[],"type":"MessagesFilter"},{"id":2665345416,"predicate":"inputMessagesFilterDocument","params":[],"type":"MessagesFilter"},{"id":2129714567,"predicate":"inputMessagesFilterUrl","params":[],"type":"MessagesFilter"},{"id":4291323271,"predicate":"inputMessagesFilterGif","params":[],"type":"MessagesFilter"},{"id":1358283666,"predicate":"inputMessagesFilterVoice","params":[],"type":"MessagesFilter"},{"id":928101534,"predicate":"inputMessagesFilterMusic","params":[],"type":"MessagesFilter"},{"id":975236280,"predicate":"inputMessagesFilterChatPhotos","params":[],"type":"MessagesFilter"},{"id":2160695144,"predicate":"inputMessagesFilterPhoneCalls","params":[{"name":"flags","type":"#"},{"name":"missed","type":"flags.0?true"}],"type":"MessagesFilter"},{"id":2054952868,"predicate":"inputMessagesFilterRoundVoice","params":[],"type":"MessagesFilter"},{"id":3041516115,"predicate":"inputMessagesFilterRoundVideo","params":[],"type":"MessagesFilter"},{"id":3254314650,"predicate":"inputMessagesFilterMyMentions","params":[],"type":"MessagesFilter"},{"id":3875695885,"predicate":"inputMessagesFilterGeo","params":[],"type":"MessagesFilter"},{"id":3764575107,"predicate":"inputMessagesFilterContacts","params":[],"type":"MessagesFilter"},{"id":522914557,"predicate":"updateNewMessage","params":[{"name":"message","type":"Message"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"Update"},{"id":1318109142,"predicate":"updateMessageID","params":[{"name":"id","type":"int"},{"name":"random_id","type":"long"}],"type":"Update"},{"id":2718806245,"predicate":"updateDeleteMessages","params":[{"name":"messages","type":"Vector"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"Update"},{"id":1548249383,"predicate":"updateUserTyping","params":[{"name":"user_id","type":"int"},{"name":"action","type":"SendMessageAction"}],"type":"Update"},{"id":2590370335,"predicate":"updateChatUserTyping","params":[{"name":"chat_id","type":"int"},{"name":"user_id","type":"int"},{"name":"action","type":"SendMessageAction"}],"type":"Update"},{"id":125178264,"predicate":"updateChatParticipants","params":[{"name":"participants","type":"ChatParticipants"}],"type":"Update"},{"id":469489699,"predicate":"updateUserStatus","params":[{"name":"user_id","type":"int"},{"name":"status","type":"UserStatus"}],"type":"Update"},{"id":2805148531,"predicate":"updateUserName","params":[{"name":"user_id","type":"int"},{"name":"first_name","type":"string"},{"name":"last_name","type":"string"},{"name":"username","type":"string"}],"type":"Update"},{"id":2503031564,"predicate":"updateUserPhoto","params":[{"name":"user_id","type":"int"},{"name":"date","type":"int"},{"name":"photo","type":"UserProfilePhoto"},{"name":"previous","type":"Bool"}],"type":"Update"},{"id":314359194,"predicate":"updateNewEncryptedMessage","params":[{"name":"message","type":"EncryptedMessage"},{"name":"qts","type":"int"}],"type":"Update"},{"id":386986326,"predicate":"updateEncryptedChatTyping","params":[{"name":"chat_id","type":"int"}],"type":"Update"},{"id":3030575245,"predicate":"updateEncryption","params":[{"name":"chat","type":"EncryptedChat"},{"name":"date","type":"int"}],"type":"Update"},{"id":956179895,"predicate":"updateEncryptedMessagesRead","params":[{"name":"chat_id","type":"int"},{"name":"max_date","type":"int"},{"name":"date","type":"int"}],"type":"Update"},{"id":3930787420,"predicate":"updateChatParticipantAdd","params":[{"name":"chat_id","type":"int"},{"name":"user_id","type":"int"},{"name":"inviter_id","type":"int"},{"name":"date","type":"int"},{"name":"version","type":"int"}],"type":"Update"},{"id":1851755554,"predicate":"updateChatParticipantDelete","params":[{"name":"chat_id","type":"int"},{"name":"user_id","type":"int"},{"name":"version","type":"int"}],"type":"Update"},{"id":2388564083,"predicate":"updateDcOptions","params":[{"name":"dc_options","type":"Vector"}],"type":"Update"},{"id":2163009562,"predicate":"updateUserBlocked","params":[{"name":"user_id","type":"int"},{"name":"blocked","type":"Bool"}],"type":"Update"},{"id":3200411887,"predicate":"updateNotifySettings","params":[{"name":"peer","type":"NotifyPeer"},{"name":"notify_settings","type":"PeerNotifySettings"}],"type":"Update"},{"id":3957614617,"predicate":"updateServiceNotification","params":[{"name":"flags","type":"#"},{"name":"popup","type":"flags.0?true"},{"name":"inbox_date","type":"flags.1?int"},{"name":"type","type":"string"},{"name":"message","type":"string"},{"name":"media","type":"MessageMedia"},{"name":"entities","type":"Vector"}],"type":"Update"},{"id":3996854058,"predicate":"updatePrivacy","params":[{"name":"key","type":"PrivacyKey"},{"name":"rules","type":"Vector"}],"type":"Update"},{"id":314130811,"predicate":"updateUserPhone","params":[{"name":"user_id","type":"int"},{"name":"phone","type":"string"}],"type":"Update"},{"id":2627162079,"predicate":"updateReadHistoryInbox","params":[{"name":"flags","type":"#"},{"name":"folder_id","type":"flags.0?int"},{"name":"peer","type":"Peer"},{"name":"max_id","type":"int"},{"name":"still_unread_count","type":"int"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"Update"},{"id":791617983,"predicate":"updateReadHistoryOutbox","params":[{"name":"peer","type":"Peer"},{"name":"max_id","type":"int"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"Update"},{"id":2139689491,"predicate":"updateWebPage","params":[{"name":"webpage","type":"WebPage"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"Update"},{"id":1757493555,"predicate":"updateReadMessagesContents","params":[{"name":"messages","type":"Vector"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"Update"},{"id":3942934523,"predicate":"updateChannelTooLong","params":[{"name":"flags","type":"#"},{"name":"channel_id","type":"int"},{"name":"pts","type":"flags.0?int"}],"type":"Update"},{"id":3067369046,"predicate":"updateChannel","params":[{"name":"channel_id","type":"int"}],"type":"Update"},{"id":1656358105,"predicate":"updateNewChannelMessage","params":[{"name":"message","type":"Message"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"Update"},{"id":856380452,"predicate":"updateReadChannelInbox","params":[{"name":"flags","type":"#"},{"name":"folder_id","type":"flags.0?int"},{"name":"channel_id","type":"int"},{"name":"max_id","type":"int"},{"name":"still_unread_count","type":"int"},{"name":"pts","type":"int"}],"type":"Update"},{"id":3279233481,"predicate":"updateDeleteChannelMessages","params":[{"name":"channel_id","type":"int"},{"name":"messages","type":"Vector"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"Update"},{"id":2560699211,"predicate":"updateChannelMessageViews","params":[{"name":"channel_id","type":"int"},{"name":"id","type":"int"},{"name":"views","type":"int"}],"type":"Update"},{"id":3062896985,"predicate":"updateChatParticipantAdmin","params":[{"name":"chat_id","type":"int"},{"name":"user_id","type":"int"},{"name":"is_admin","type":"Bool"},{"name":"version","type":"int"}],"type":"Update"},{"id":1753886890,"predicate":"updateNewStickerSet","params":[{"name":"stickerset","type":"messages.StickerSet"}],"type":"Update"},{"id":196268545,"predicate":"updateStickerSetsOrder","params":[{"name":"flags","type":"#"},{"name":"masks","type":"flags.0?true"},{"name":"order","type":"Vector"}],"type":"Update"},{"id":1135492588,"predicate":"updateStickerSets","params":[],"type":"Update"},{"id":2473931806,"predicate":"updateSavedGifs","params":[],"type":"Update"},{"id":1417832080,"predicate":"updateBotInlineQuery","params":[{"name":"flags","type":"#"},{"name":"query_id","type":"long"},{"name":"user_id","type":"int"},{"name":"query","type":"string"},{"name":"geo","type":"flags.0?GeoPoint"},{"name":"offset","type":"string"}],"type":"Update"},{"id":239663460,"predicate":"updateBotInlineSend","params":[{"name":"flags","type":"#"},{"name":"user_id","type":"int"},{"name":"query","type":"string"},{"name":"geo","type":"flags.0?GeoPoint"},{"name":"id","type":"string"},{"name":"msg_id","type":"flags.1?InputBotInlineMessageID"}],"type":"Update"},{"id":457133559,"predicate":"updateEditChannelMessage","params":[{"name":"message","type":"Message"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"Update"},{"id":2555978869,"predicate":"updateChannelPinnedMessage","params":[{"name":"channel_id","type":"int"},{"name":"id","type":"int"}],"type":"Update"},{"id":3879028705,"predicate":"updateBotCallbackQuery","params":[{"name":"flags","type":"#"},{"name":"query_id","type":"long"},{"name":"user_id","type":"int"},{"name":"peer","type":"Peer"},{"name":"msg_id","type":"int"},{"name":"chat_instance","type":"long"},{"name":"data","type":"flags.0?bytes"},{"name":"game_short_name","type":"flags.1?string"}],"type":"Update"},{"id":3825430691,"predicate":"updateEditMessage","params":[{"name":"message","type":"Message"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"Update"},{"id":4191320666,"predicate":"updateInlineBotCallbackQuery","params":[{"name":"flags","type":"#"},{"name":"query_id","type":"long"},{"name":"user_id","type":"int"},{"name":"msg_id","type":"InputBotInlineMessageID"},{"name":"chat_instance","type":"long"},{"name":"data","type":"flags.0?bytes"},{"name":"game_short_name","type":"flags.1?string"}],"type":"Update"},{"id":634833351,"predicate":"updateReadChannelOutbox","params":[{"name":"channel_id","type":"int"},{"name":"max_id","type":"int"}],"type":"Update"},{"id":3995842921,"predicate":"updateDraftMessage","params":[{"name":"peer","type":"Peer"},{"name":"draft","type":"DraftMessage"}],"type":"Update"},{"id":1461528386,"predicate":"updateReadFeaturedStickers","params":[],"type":"Update"},{"id":2588027936,"predicate":"updateRecentStickers","params":[],"type":"Update"},{"id":2720652550,"predicate":"updateConfig","params":[],"type":"Update"},{"id":861169551,"predicate":"updatePtsChanged","params":[],"type":"Update"},{"id":1081547008,"predicate":"updateChannelWebPage","params":[{"name":"channel_id","type":"int"},{"name":"webpage","type":"WebPage"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"Update"},{"id":1852826908,"predicate":"updateDialogPinned","params":[{"name":"flags","type":"#"},{"name":"pinned","type":"flags.0?true"},{"name":"folder_id","type":"flags.1?int"},{"name":"peer","type":"DialogPeer"}],"type":"Update"},{"id":4195302562,"predicate":"updatePinnedDialogs","params":[{"name":"flags","type":"#"},{"name":"folder_id","type":"flags.1?int"},{"name":"order","type":"flags.0?Vector"}],"type":"Update"},{"id":2199371971,"predicate":"updateBotWebhookJSON","params":[{"name":"data","type":"DataJSON"}],"type":"Update"},{"id":2610053286,"predicate":"updateBotWebhookJSONQuery","params":[{"name":"query_id","type":"long"},{"name":"data","type":"DataJSON"},{"name":"timeout","type":"int"}],"type":"Update"},{"id":3771582784,"predicate":"updateBotShippingQuery","params":[{"name":"query_id","type":"long"},{"name":"user_id","type":"int"},{"name":"payload","type":"bytes"},{"name":"shipping_address","type":"PostAddress"}],"type":"Update"},{"id":1563376297,"predicate":"updateBotPrecheckoutQuery","params":[{"name":"flags","type":"#"},{"name":"query_id","type":"long"},{"name":"user_id","type":"int"},{"name":"payload","type":"bytes"},{"name":"info","type":"flags.0?PaymentRequestedInfo"},{"name":"shipping_option_id","type":"flags.1?string"},{"name":"currency","type":"string"},{"name":"total_amount","type":"long"}],"type":"Update"},{"id":2869914398,"predicate":"updatePhoneCall","params":[{"name":"phone_call","type":"PhoneCall"}],"type":"Update"},{"id":1180041828,"predicate":"updateLangPackTooLong","params":[{"name":"lang_code","type":"string"}],"type":"Update"},{"id":1442983757,"predicate":"updateLangPack","params":[{"name":"difference","type":"LangPackDifference"}],"type":"Update"},{"id":3843135853,"predicate":"updateFavedStickers","params":[],"type":"Update"},{"id":2307472197,"predicate":"updateChannelReadMessagesContents","params":[{"name":"channel_id","type":"int"},{"name":"messages","type":"Vector"}],"type":"Update"},{"id":1887741886,"predicate":"updateContactsReset","params":[],"type":"Update"},{"id":1893427255,"predicate":"updateChannelAvailableMessages","params":[{"name":"channel_id","type":"int"},{"name":"available_min_id","type":"int"}],"type":"Update"},{"id":3781450179,"predicate":"updateDialogUnreadMark","params":[{"name":"flags","type":"#"},{"name":"unread","type":"flags.0?true"},{"name":"peer","type":"DialogPeer"}],"type":"Update"},{"id":1279515160,"predicate":"updateUserPinnedMessage","params":[{"name":"user_id","type":"int"},{"name":"id","type":"int"}],"type":"Update"},{"id":3775771465,"predicate":"updateChatPinnedMessage","params":[{"name":"chat_id","type":"int"},{"name":"id","type":"int"},{"name":"version","type":"int"}],"type":"Update"},{"id":2896258427,"predicate":"updateMessagePoll","params":[{"name":"flags","type":"#"},{"name":"poll_id","type":"long"},{"name":"poll","type":"flags.0?Poll"},{"name":"results","type":"PollResults"}],"type":"Update"},{"id":1421875280,"predicate":"updateChatDefaultBannedRights","params":[{"name":"peer","type":"Peer"},{"name":"default_banned_rights","type":"ChatBannedRights"},{"name":"version","type":"int"}],"type":"Update"},{"id":422972864,"predicate":"updateFolderPeers","params":[{"name":"folder_peers","type":"Vector"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"Update"},{"id":1786671974,"predicate":"updatePeerSettings","params":[{"name":"peer","type":"Peer"},{"name":"settings","type":"PeerSettings"}],"type":"Update"},{"id":3031420848,"predicate":"updatePeerLocated","params":[{"name":"peers","type":"Vector"}],"type":"Update"},{"id":967122427,"predicate":"updateNewScheduledMessage","params":[{"name":"message","type":"Message"}],"type":"Update"},{"id":2424728814,"predicate":"updateDeleteScheduledMessages","params":[{"name":"peer","type":"Peer"},{"name":"messages","type":"Vector"}],"type":"Update"},{"id":2182544291,"predicate":"updateTheme","params":[{"name":"theme","type":"Theme"}],"type":"Update"},{"id":2267003193,"predicate":"updateGeoLiveViewed","params":[{"name":"peer","type":"Peer"},{"name":"msg_id","type":"int"}],"type":"Update"},{"id":1448076945,"predicate":"updateLoginToken","params":[],"type":"Update"},{"id":1123585836,"predicate":"updateMessagePollVote","params":[{"name":"poll_id","type":"long"},{"name":"user_id","type":"int"},{"name":"options","type":"Vector"}],"type":"Update"},{"id":654302845,"predicate":"updateDialogFilter","params":[{"name":"flags","type":"#"},{"name":"id","type":"int"},{"name":"filter","type":"flags.0?DialogFilter"}],"type":"Update"},{"id":2782339333,"predicate":"updateDialogFilterOrder","params":[{"name":"order","type":"Vector"}],"type":"Update"},{"id":889491791,"predicate":"updateDialogFilters","params":[],"type":"Update"},{"id":2775329342,"predicate":"updates.state","params":[{"name":"pts","type":"int"},{"name":"qts","type":"int"},{"name":"date","type":"int"},{"name":"seq","type":"int"},{"name":"unread_count","type":"int"}],"type":"updates.State"},{"id":1567990072,"predicate":"updates.differenceEmpty","params":[{"name":"date","type":"int"},{"name":"seq","type":"int"}],"type":"updates.Difference"},{"id":16030880,"predicate":"updates.difference","params":[{"name":"new_messages","type":"Vector"},{"name":"new_encrypted_messages","type":"Vector"},{"name":"other_updates","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"},{"name":"state","type":"updates.State"}],"type":"updates.Difference"},{"id":2835028353,"predicate":"updates.differenceSlice","params":[{"name":"new_messages","type":"Vector"},{"name":"new_encrypted_messages","type":"Vector"},{"name":"other_updates","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"},{"name":"intermediate_state","type":"updates.State"}],"type":"updates.Difference"},{"id":1258196845,"predicate":"updates.differenceTooLong","params":[{"name":"pts","type":"int"}],"type":"updates.Difference"},{"id":3809980286,"predicate":"updatesTooLong","params":[],"type":"Updates"},{"id":2437922577,"predicate":"updateShortMessage","params":[{"name":"flags","type":"#"},{"name":"out","type":"flags.1?true"},{"name":"mentioned","type":"flags.4?true"},{"name":"media_unread","type":"flags.5?true"},{"name":"silent","type":"flags.13?true"},{"name":"id","type":"int"},{"name":"user_id","type":"int"},{"name":"message","type":"string"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"},{"name":"date","type":"int"},{"name":"fwd_from","type":"flags.2?MessageFwdHeader"},{"name":"via_bot_id","type":"flags.11?int"},{"name":"reply_to_msg_id","type":"flags.3?int"},{"name":"entities","type":"flags.7?Vector"}],"type":"Updates"},{"id":377562760,"predicate":"updateShortChatMessage","params":[{"name":"flags","type":"#"},{"name":"out","type":"flags.1?true"},{"name":"mentioned","type":"flags.4?true"},{"name":"media_unread","type":"flags.5?true"},{"name":"silent","type":"flags.13?true"},{"name":"id","type":"int"},{"name":"from_id","type":"int"},{"name":"chat_id","type":"int"},{"name":"message","type":"string"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"},{"name":"date","type":"int"},{"name":"fwd_from","type":"flags.2?MessageFwdHeader"},{"name":"via_bot_id","type":"flags.11?int"},{"name":"reply_to_msg_id","type":"flags.3?int"},{"name":"entities","type":"flags.7?Vector"}],"type":"Updates"},{"id":2027216577,"predicate":"updateShort","params":[{"name":"update","type":"Update"},{"name":"date","type":"int"}],"type":"Updates"},{"id":1918567619,"predicate":"updatesCombined","params":[{"name":"updates","type":"Vector"},{"name":"users","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"date","type":"int"},{"name":"seq_start","type":"int"},{"name":"seq","type":"int"}],"type":"Updates"},{"id":1957577280,"predicate":"updates","params":[{"name":"updates","type":"Vector"},{"name":"users","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"date","type":"int"},{"name":"seq","type":"int"}],"type":"Updates"},{"id":301019932,"predicate":"updateShortSentMessage","params":[{"name":"flags","type":"#"},{"name":"out","type":"flags.1?true"},{"name":"id","type":"int"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"},{"name":"date","type":"int"},{"name":"media","type":"flags.9?MessageMedia"},{"name":"entities","type":"flags.7?Vector"}],"type":"Updates"},{"id":2378853029,"predicate":"photos.photos","params":[{"name":"photos","type":"Vector"},{"name":"users","type":"Vector"}],"type":"photos.Photos"},{"id":352657236,"predicate":"photos.photosSlice","params":[{"name":"count","type":"int"},{"name":"photos","type":"Vector"},{"name":"users","type":"Vector"}],"type":"photos.Photos"},{"id":539045032,"predicate":"photos.photo","params":[{"name":"photo","type":"Photo"},{"name":"users","type":"Vector"}],"type":"photos.Photo"},{"id":157948117,"predicate":"upload.file","params":[{"name":"type","type":"storage.FileType"},{"name":"mtime","type":"int"},{"name":"bytes","type":"bytes"}],"type":"upload.File"},{"id":4052539972,"predicate":"upload.fileCdnRedirect","params":[{"name":"dc_id","type":"int"},{"name":"file_token","type":"bytes"},{"name":"encryption_key","type":"bytes"},{"name":"encryption_iv","type":"bytes"},{"name":"file_hashes","type":"Vector"}],"type":"upload.File"},{"id":414687501,"predicate":"dcOption","params":[{"name":"flags","type":"#"},{"name":"ipv6","type":"flags.0?true"},{"name":"media_only","type":"flags.1?true"},{"name":"tcpo_only","type":"flags.2?true"},{"name":"cdn","type":"flags.3?true"},{"name":"static","type":"flags.4?true"},{"name":"id","type":"int"},{"name":"ip_address","type":"string"},{"name":"port","type":"int"},{"name":"secret","type":"flags.10?bytes"}],"type":"DcOption"},{"id":856375399,"predicate":"config","params":[{"name":"flags","type":"#"},{"name":"phonecalls_enabled","type":"flags.1?true"},{"name":"default_p2p_contacts","type":"flags.3?true"},{"name":"preload_featured_stickers","type":"flags.4?true"},{"name":"ignore_phone_entities","type":"flags.5?true"},{"name":"revoke_pm_inbox","type":"flags.6?true"},{"name":"blocked_mode","type":"flags.8?true"},{"name":"pfs_enabled","type":"flags.13?true"},{"name":"date","type":"int"},{"name":"expires","type":"int"},{"name":"test_mode","type":"Bool"},{"name":"this_dc","type":"int"},{"name":"dc_options","type":"Vector"},{"name":"dc_txt_domain_name","type":"string"},{"name":"chat_size_max","type":"int"},{"name":"megagroup_size_max","type":"int"},{"name":"forwarded_count_max","type":"int"},{"name":"online_update_period_ms","type":"int"},{"name":"offline_blur_timeout_ms","type":"int"},{"name":"offline_idle_timeout_ms","type":"int"},{"name":"online_cloud_timeout_ms","type":"int"},{"name":"notify_cloud_delay_ms","type":"int"},{"name":"notify_default_delay_ms","type":"int"},{"name":"push_chat_period_ms","type":"int"},{"name":"push_chat_limit","type":"int"},{"name":"saved_gifs_limit","type":"int"},{"name":"edit_time_limit","type":"int"},{"name":"revoke_time_limit","type":"int"},{"name":"revoke_pm_time_limit","type":"int"},{"name":"rating_e_decay","type":"int"},{"name":"stickers_recent_limit","type":"int"},{"name":"stickers_faved_limit","type":"int"},{"name":"channels_read_media_period","type":"int"},{"name":"tmp_sessions","type":"flags.0?int"},{"name":"pinned_dialogs_count_max","type":"int"},{"name":"pinned_infolder_count_max","type":"int"},{"name":"call_receive_timeout_ms","type":"int"},{"name":"call_ring_timeout_ms","type":"int"},{"name":"call_connect_timeout_ms","type":"int"},{"name":"call_packet_timeout_ms","type":"int"},{"name":"me_url_prefix","type":"string"},{"name":"autoupdate_url_prefix","type":"flags.7?string"},{"name":"gif_search_username","type":"flags.9?string"},{"name":"venue_search_username","type":"flags.10?string"},{"name":"img_search_username","type":"flags.11?string"},{"name":"static_maps_provider","type":"flags.12?string"},{"name":"caption_length_max","type":"int"},{"name":"message_length_max","type":"int"},{"name":"webfile_dc_id","type":"int"},{"name":"suggested_lang_code","type":"flags.2?string"},{"name":"lang_pack_version","type":"flags.2?int"},{"name":"base_lang_pack_version","type":"flags.2?int"}],"type":"Config"},{"id":2384074613,"predicate":"nearestDc","params":[{"name":"country","type":"string"},{"name":"this_dc","type":"int"},{"name":"nearest_dc","type":"int"}],"type":"NearestDc"},{"id":497489295,"predicate":"help.appUpdate","params":[{"name":"flags","type":"#"},{"name":"can_not_skip","type":"flags.0?true"},{"name":"id","type":"int"},{"name":"version","type":"string"},{"name":"text","type":"string"},{"name":"entities","type":"Vector"},{"name":"document","type":"flags.1?Document"},{"name":"url","type":"flags.2?string"}],"type":"help.AppUpdate"},{"id":3294258486,"predicate":"help.noAppUpdate","params":[],"type":"help.AppUpdate"},{"id":415997816,"predicate":"help.inviteText","params":[{"name":"message","type":"string"}],"type":"help.InviteText"},{"id":2877210784,"predicate":"encryptedChatEmpty","params":[{"name":"id","type":"int"}],"type":"EncryptedChat"},{"id":1006044124,"predicate":"encryptedChatWaiting","params":[{"name":"id","type":"int"},{"name":"access_hash","type":"long"},{"name":"date","type":"int"},{"name":"admin_id","type":"int"},{"name":"participant_id","type":"int"}],"type":"EncryptedChat"},{"id":3363328638,"predicate":"encryptedChatRequested","params":[{"name":"id","type":"int"},{"name":"access_hash","type":"long"},{"name":"date","type":"int"},{"name":"admin_id","type":"int"},{"name":"participant_id","type":"int"},{"name":"g_a","type":"bytes"}],"type":"EncryptedChat"},{"id":4199992886,"predicate":"encryptedChat","params":[{"name":"id","type":"int"},{"name":"access_hash","type":"long"},{"name":"date","type":"int"},{"name":"admin_id","type":"int"},{"name":"participant_id","type":"int"},{"name":"g_a_or_b","type":"bytes"},{"name":"key_fingerprint","type":"long"}],"type":"EncryptedChat"},{"id":332848423,"predicate":"encryptedChatDiscarded","params":[{"name":"id","type":"int"}],"type":"EncryptedChat"},{"id":4047615457,"predicate":"inputEncryptedChat","params":[{"name":"chat_id","type":"int"},{"name":"access_hash","type":"long"}],"type":"InputEncryptedChat"},{"id":3256830334,"predicate":"encryptedFileEmpty","params":[],"type":"EncryptedFile"},{"id":1248893260,"predicate":"encryptedFile","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"size","type":"int"},{"name":"dc_id","type":"int"},{"name":"key_fingerprint","type":"int"}],"type":"EncryptedFile"},{"id":406307684,"predicate":"inputEncryptedFileEmpty","params":[],"type":"InputEncryptedFile"},{"id":1690108678,"predicate":"inputEncryptedFileUploaded","params":[{"name":"id","type":"long"},{"name":"parts","type":"int"},{"name":"md5_checksum","type":"string"},{"name":"key_fingerprint","type":"int"}],"type":"InputEncryptedFile"},{"id":1511503333,"predicate":"inputEncryptedFile","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"}],"type":"InputEncryptedFile"},{"id":767652808,"predicate":"inputEncryptedFileBigUploaded","params":[{"name":"id","type":"long"},{"name":"parts","type":"int"},{"name":"key_fingerprint","type":"int"}],"type":"InputEncryptedFile"},{"id":3977822488,"predicate":"encryptedMessage","params":[{"name":"random_id","type":"long"},{"name":"chat_id","type":"int"},{"name":"date","type":"int"},{"name":"bytes","type":"bytes"},{"name":"file","type":"EncryptedFile"}],"type":"EncryptedMessage"},{"id":594758406,"predicate":"encryptedMessageService","params":[{"name":"random_id","type":"long"},{"name":"chat_id","type":"int"},{"name":"date","type":"int"},{"name":"bytes","type":"bytes"}],"type":"EncryptedMessage"},{"id":3236054581,"predicate":"messages.dhConfigNotModified","params":[{"name":"random","type":"bytes"}],"type":"messages.DhConfig"},{"id":740433629,"predicate":"messages.dhConfig","params":[{"name":"g","type":"int"},{"name":"p","type":"bytes"},{"name":"version","type":"int"},{"name":"random","type":"bytes"}],"type":"messages.DhConfig"},{"id":1443858741,"predicate":"messages.sentEncryptedMessage","params":[{"name":"date","type":"int"}],"type":"messages.SentEncryptedMessage"},{"id":2492727090,"predicate":"messages.sentEncryptedFile","params":[{"name":"date","type":"int"},{"name":"file","type":"EncryptedFile"}],"type":"messages.SentEncryptedMessage"},{"id":1928391342,"predicate":"inputDocumentEmpty","params":[],"type":"InputDocument"},{"id":448771445,"predicate":"inputDocument","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"file_reference","type":"bytes"}],"type":"InputDocument"},{"id":922273905,"predicate":"documentEmpty","params":[{"name":"id","type":"long"}],"type":"Document"},{"id":2611125441,"predicate":"document","params":[{"name":"flags","type":"#"},{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"file_reference","type":"bytes"},{"name":"date","type":"int"},{"name":"mime_type","type":"string"},{"name":"size","type":"int"},{"name":"thumbs","type":"flags.0?Vector"},{"name":"dc_id","type":"int"},{"name":"attributes","type":"Vector"}],"type":"Document"},{"id":398898678,"predicate":"help.support","params":[{"name":"phone_number","type":"string"},{"name":"user","type":"User"}],"type":"help.Support"},{"id":2681474008,"predicate":"notifyPeer","params":[{"name":"peer","type":"Peer"}],"type":"NotifyPeer"},{"id":3033021260,"predicate":"notifyUsers","params":[],"type":"NotifyPeer"},{"id":3221737155,"predicate":"notifyChats","params":[],"type":"NotifyPeer"},{"id":3591563503,"predicate":"notifyBroadcasts","params":[],"type":"NotifyPeer"},{"id":381645902,"predicate":"sendMessageTypingAction","params":[],"type":"SendMessageAction"},{"id":4250847477,"predicate":"sendMessageCancelAction","params":[],"type":"SendMessageAction"},{"id":2710034031,"predicate":"sendMessageRecordVideoAction","params":[],"type":"SendMessageAction"},{"id":3916839660,"predicate":"sendMessageUploadVideoAction","params":[{"name":"progress","type":"int"}],"type":"SendMessageAction"},{"id":3576656887,"predicate":"sendMessageRecordAudioAction","params":[],"type":"SendMessageAction"},{"id":4082227115,"predicate":"sendMessageUploadAudioAction","params":[{"name":"progress","type":"int"}],"type":"SendMessageAction"},{"id":3520285222,"predicate":"sendMessageUploadPhotoAction","params":[{"name":"progress","type":"int"}],"type":"SendMessageAction"},{"id":2852968932,"predicate":"sendMessageUploadDocumentAction","params":[{"name":"progress","type":"int"}],"type":"SendMessageAction"},{"id":393186209,"predicate":"sendMessageGeoLocationAction","params":[],"type":"SendMessageAction"},{"id":1653390447,"predicate":"sendMessageChooseContactAction","params":[],"type":"SendMessageAction"},{"id":3714748232,"predicate":"sendMessageGamePlayAction","params":[],"type":"SendMessageAction"},{"id":2297593788,"predicate":"sendMessageRecordRoundAction","params":[],"type":"SendMessageAction"},{"id":608050278,"predicate":"sendMessageUploadRoundAction","params":[{"name":"progress","type":"int"}],"type":"SendMessageAction"},{"id":3004386717,"predicate":"contacts.found","params":[{"name":"my_results","type":"Vector"},{"name":"results","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"contacts.Found"},{"id":1335282456,"predicate":"inputPrivacyKeyStatusTimestamp","params":[],"type":"InputPrivacyKey"},{"id":3187344422,"predicate":"inputPrivacyKeyChatInvite","params":[],"type":"InputPrivacyKey"},{"id":4206550111,"predicate":"inputPrivacyKeyPhoneCall","params":[],"type":"InputPrivacyKey"},{"id":3684593874,"predicate":"inputPrivacyKeyPhoneP2P","params":[],"type":"InputPrivacyKey"},{"id":2765966344,"predicate":"inputPrivacyKeyForwards","params":[],"type":"InputPrivacyKey"},{"id":1461304012,"predicate":"inputPrivacyKeyProfilePhoto","params":[],"type":"InputPrivacyKey"},{"id":55761658,"predicate":"inputPrivacyKeyPhoneNumber","params":[],"type":"InputPrivacyKey"},{"id":3508640733,"predicate":"inputPrivacyKeyAddedByPhone","params":[],"type":"InputPrivacyKey"},{"id":3157175088,"predicate":"privacyKeyStatusTimestamp","params":[],"type":"PrivacyKey"},{"id":1343122938,"predicate":"privacyKeyChatInvite","params":[],"type":"PrivacyKey"},{"id":1030105979,"predicate":"privacyKeyPhoneCall","params":[],"type":"PrivacyKey"},{"id":961092808,"predicate":"privacyKeyPhoneP2P","params":[],"type":"PrivacyKey"},{"id":1777096355,"predicate":"privacyKeyForwards","params":[],"type":"PrivacyKey"},{"id":2517966829,"predicate":"privacyKeyProfilePhoto","params":[],"type":"PrivacyKey"},{"id":3516589165,"predicate":"privacyKeyPhoneNumber","params":[],"type":"PrivacyKey"},{"id":1124062251,"predicate":"privacyKeyAddedByPhone","params":[],"type":"PrivacyKey"},{"id":218751099,"predicate":"inputPrivacyValueAllowContacts","params":[],"type":"InputPrivacyRule"},{"id":407582158,"predicate":"inputPrivacyValueAllowAll","params":[],"type":"InputPrivacyRule"},{"id":320652927,"predicate":"inputPrivacyValueAllowUsers","params":[{"name":"users","type":"Vector"}],"type":"InputPrivacyRule"},{"id":195371015,"predicate":"inputPrivacyValueDisallowContacts","params":[],"type":"InputPrivacyRule"},{"id":3597362889,"predicate":"inputPrivacyValueDisallowAll","params":[],"type":"InputPrivacyRule"},{"id":2417034343,"predicate":"inputPrivacyValueDisallowUsers","params":[{"name":"users","type":"Vector"}],"type":"InputPrivacyRule"},{"id":1283572154,"predicate":"inputPrivacyValueAllowChatParticipants","params":[{"name":"chats","type":"Vector"}],"type":"InputPrivacyRule"},{"id":3626197935,"predicate":"inputPrivacyValueDisallowChatParticipants","params":[{"name":"chats","type":"Vector"}],"type":"InputPrivacyRule"},{"id":4294843308,"predicate":"privacyValueAllowContacts","params":[],"type":"PrivacyRule"},{"id":1698855810,"predicate":"privacyValueAllowAll","params":[],"type":"PrivacyRule"},{"id":1297858060,"predicate":"privacyValueAllowUsers","params":[{"name":"users","type":"Vector"}],"type":"PrivacyRule"},{"id":4169726490,"predicate":"privacyValueDisallowContacts","params":[],"type":"PrivacyRule"},{"id":2339628899,"predicate":"privacyValueDisallowAll","params":[],"type":"PrivacyRule"},{"id":209668535,"predicate":"privacyValueDisallowUsers","params":[{"name":"users","type":"Vector"}],"type":"PrivacyRule"},{"id":415136107,"predicate":"privacyValueAllowChatParticipants","params":[{"name":"chats","type":"Vector"}],"type":"PrivacyRule"},{"id":2897086096,"predicate":"privacyValueDisallowChatParticipants","params":[{"name":"chats","type":"Vector"}],"type":"PrivacyRule"},{"id":1352683077,"predicate":"account.privacyRules","params":[{"name":"rules","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"account.PrivacyRules"},{"id":3100684255,"predicate":"accountDaysTTL","params":[{"name":"days","type":"int"}],"type":"AccountDaysTTL"},{"id":1815593308,"predicate":"documentAttributeImageSize","params":[{"name":"w","type":"int"},{"name":"h","type":"int"}],"type":"DocumentAttribute"},{"id":297109817,"predicate":"documentAttributeAnimated","params":[],"type":"DocumentAttribute"},{"id":1662637586,"predicate":"documentAttributeSticker","params":[{"name":"flags","type":"#"},{"name":"mask","type":"flags.1?true"},{"name":"alt","type":"string"},{"name":"stickerset","type":"InputStickerSet"},{"name":"mask_coords","type":"flags.0?MaskCoords"}],"type":"DocumentAttribute"},{"id":250621158,"predicate":"documentAttributeVideo","params":[{"name":"flags","type":"#"},{"name":"round_message","type":"flags.0?true"},{"name":"supports_streaming","type":"flags.1?true"},{"name":"duration","type":"int"},{"name":"w","type":"int"},{"name":"h","type":"int"}],"type":"DocumentAttribute"},{"id":2555574726,"predicate":"documentAttributeAudio","params":[{"name":"flags","type":"#"},{"name":"voice","type":"flags.10?true"},{"name":"duration","type":"int"},{"name":"title","type":"flags.0?string"},{"name":"performer","type":"flags.1?string"},{"name":"waveform","type":"flags.2?bytes"}],"type":"DocumentAttribute"},{"id":358154344,"predicate":"documentAttributeFilename","params":[{"name":"file_name","type":"string"}],"type":"DocumentAttribute"},{"id":2550256375,"predicate":"documentAttributeHasStickers","params":[],"type":"DocumentAttribute"},{"id":4050950690,"predicate":"messages.stickersNotModified","params":[],"type":"messages.Stickers"},{"id":3831077821,"predicate":"messages.stickers","params":[{"name":"hash","type":"int"},{"name":"stickers","type":"Vector"}],"type":"messages.Stickers"},{"id":313694676,"predicate":"stickerPack","params":[{"name":"emoticon","type":"string"},{"name":"documents","type":"Vector"}],"type":"StickerPack"},{"id":3898999491,"predicate":"messages.allStickersNotModified","params":[],"type":"messages.AllStickers"},{"id":3992797279,"predicate":"messages.allStickers","params":[{"name":"hash","type":"int"},{"name":"sets","type":"Vector"}],"type":"messages.AllStickers"},{"id":2228326789,"predicate":"messages.affectedMessages","params":[{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"messages.AffectedMessages"},{"id":3943987176,"predicate":"webPageEmpty","params":[{"name":"id","type":"long"}],"type":"WebPage"},{"id":3313949212,"predicate":"webPagePending","params":[{"name":"id","type":"long"},{"name":"date","type":"int"}],"type":"WebPage"},{"id":3902555570,"predicate":"webPage","params":[{"name":"flags","type":"#"},{"name":"id","type":"long"},{"name":"url","type":"string"},{"name":"display_url","type":"string"},{"name":"hash","type":"int"},{"name":"type","type":"flags.0?string"},{"name":"site_name","type":"flags.1?string"},{"name":"title","type":"flags.2?string"},{"name":"description","type":"flags.3?string"},{"name":"photo","type":"flags.4?Photo"},{"name":"embed_url","type":"flags.5?string"},{"name":"embed_type","type":"flags.5?string"},{"name":"embed_width","type":"flags.6?int"},{"name":"embed_height","type":"flags.6?int"},{"name":"duration","type":"flags.7?int"},{"name":"author","type":"flags.8?string"},{"name":"document","type":"flags.9?Document"},{"name":"cached_page","type":"flags.10?Page"},{"name":"attributes","type":"flags.12?Vector"}],"type":"WebPage"},{"id":1930545681,"predicate":"webPageNotModified","params":[{"name":"flags","type":"#"},{"name":"cached_page_views","type":"flags.0?int"}],"type":"WebPage"},{"id":2902578717,"predicate":"authorization","params":[{"name":"flags","type":"#"},{"name":"current","type":"flags.0?true"},{"name":"official_app","type":"flags.1?true"},{"name":"password_pending","type":"flags.2?true"},{"name":"hash","type":"long"},{"name":"device_model","type":"string"},{"name":"platform","type":"string"},{"name":"system_version","type":"string"},{"name":"api_id","type":"int"},{"name":"app_name","type":"string"},{"name":"app_version","type":"string"},{"name":"date_created","type":"int"},{"name":"date_active","type":"int"},{"name":"ip","type":"string"},{"name":"country","type":"string"},{"name":"region","type":"string"}],"type":"Authorization"},{"id":307276766,"predicate":"account.authorizations","params":[{"name":"authorizations","type":"Vector"}],"type":"account.Authorizations"},{"id":2904965624,"predicate":"account.password","params":[{"name":"flags","type":"#"},{"name":"has_recovery","type":"flags.0?true"},{"name":"has_secure_values","type":"flags.1?true"},{"name":"has_password","type":"flags.2?true"},{"name":"current_algo","type":"flags.2?PasswordKdfAlgo"},{"name":"srp_B","type":"flags.2?bytes"},{"name":"srp_id","type":"flags.2?long"},{"name":"hint","type":"flags.3?string"},{"name":"email_unconfirmed_pattern","type":"flags.4?string"},{"name":"new_algo","type":"PasswordKdfAlgo"},{"name":"new_secure_algo","type":"SecurePasswordKdfAlgo"},{"name":"secure_random","type":"bytes"}],"type":"account.Password"},{"id":2589733861,"predicate":"account.passwordSettings","params":[{"name":"flags","type":"#"},{"name":"email","type":"flags.0?string"},{"name":"secure_settings","type":"flags.1?SecureSecretSettings"}],"type":"account.PasswordSettings"},{"id":3258394569,"predicate":"account.passwordInputSettings","params":[{"name":"flags","type":"#"},{"name":"new_algo","type":"flags.0?PasswordKdfAlgo"},{"name":"new_password_hash","type":"flags.0?bytes"},{"name":"hint","type":"flags.0?string"},{"name":"email","type":"flags.1?string"},{"name":"new_secure_settings","type":"flags.2?SecureSecretSettings"}],"type":"account.PasswordInputSettings"},{"id":326715557,"predicate":"auth.passwordRecovery","params":[{"name":"email_pattern","type":"string"}],"type":"auth.PasswordRecovery"},{"id":2743383929,"predicate":"receivedNotifyMessage","params":[{"name":"id","type":"int"},{"name":"flags","type":"int"}],"type":"ReceivedNotifyMessage"},{"id":1776236393,"predicate":"chatInviteEmpty","params":[],"type":"ExportedChatInvite"},{"id":4230874556,"predicate":"chatInviteExported","params":[{"name":"link","type":"string"}],"type":"ExportedChatInvite"},{"id":1516793212,"predicate":"chatInviteAlready","params":[{"name":"chat","type":"Chat"}],"type":"ChatInvite"},{"id":3754096014,"predicate":"chatInvite","params":[{"name":"flags","type":"#"},{"name":"channel","type":"flags.0?true"},{"name":"broadcast","type":"flags.1?true"},{"name":"public","type":"flags.2?true"},{"name":"megagroup","type":"flags.3?true"},{"name":"title","type":"string"},{"name":"photo","type":"Photo"},{"name":"participants_count","type":"int"},{"name":"participants","type":"flags.4?Vector"}],"type":"ChatInvite"},{"id":4290128789,"predicate":"inputStickerSetEmpty","params":[],"type":"InputStickerSet"},{"id":2649203305,"predicate":"inputStickerSetID","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"}],"type":"InputStickerSet"},{"id":2250033312,"predicate":"inputStickerSetShortName","params":[{"name":"short_name","type":"string"}],"type":"InputStickerSet"},{"id":42402760,"predicate":"inputStickerSetAnimatedEmoji","params":[],"type":"InputStickerSet"},{"id":3867103758,"predicate":"inputStickerSetDice","params":[{"name":"emoticon","type":"string"}],"type":"InputStickerSet"},{"id":4004802343,"predicate":"stickerSet","params":[{"name":"flags","type":"#"},{"name":"archived","type":"flags.1?true"},{"name":"official","type":"flags.2?true"},{"name":"masks","type":"flags.3?true"},{"name":"animated","type":"flags.5?true"},{"name":"installed_date","type":"flags.0?int"},{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"title","type":"string"},{"name":"short_name","type":"string"},{"name":"thumb","type":"flags.4?PhotoSize"},{"name":"thumb_dc_id","type":"flags.4?int"},{"name":"count","type":"int"},{"name":"hash","type":"int"}],"type":"StickerSet"},{"id":3054118054,"predicate":"messages.stickerSet","params":[{"name":"set","type":"StickerSet"},{"name":"packs","type":"Vector"},{"name":"documents","type":"Vector"}],"type":"messages.StickerSet"},{"id":3262826695,"predicate":"botCommand","params":[{"name":"command","type":"string"},{"name":"description","type":"string"}],"type":"BotCommand"},{"id":2565348666,"predicate":"botInfo","params":[{"name":"user_id","type":"int"},{"name":"description","type":"string"},{"name":"commands","type":"Vector"}],"type":"BotInfo"},{"id":2734311552,"predicate":"keyboardButton","params":[{"name":"text","type":"string"}],"type":"KeyboardButton"},{"id":629866245,"predicate":"keyboardButtonUrl","params":[{"name":"text","type":"string"},{"name":"url","type":"string"}],"type":"KeyboardButton"},{"id":1748655686,"predicate":"keyboardButtonCallback","params":[{"name":"text","type":"string"},{"name":"data","type":"bytes"}],"type":"KeyboardButton"},{"id":2976541737,"predicate":"keyboardButtonRequestPhone","params":[{"name":"text","type":"string"}],"type":"KeyboardButton"},{"id":4235815743,"predicate":"keyboardButtonRequestGeoLocation","params":[{"name":"text","type":"string"}],"type":"KeyboardButton"},{"id":90744648,"predicate":"keyboardButtonSwitchInline","params":[{"name":"flags","type":"#"},{"name":"same_peer","type":"flags.0?true"},{"name":"text","type":"string"},{"name":"query","type":"string"}],"type":"KeyboardButton"},{"id":1358175439,"predicate":"keyboardButtonGame","params":[{"name":"text","type":"string"}],"type":"KeyboardButton"},{"id":2950250427,"predicate":"keyboardButtonBuy","params":[{"name":"text","type":"string"}],"type":"KeyboardButton"},{"id":280464681,"predicate":"keyboardButtonUrlAuth","params":[{"name":"flags","type":"#"},{"name":"text","type":"string"},{"name":"fwd_text","type":"flags.0?string"},{"name":"url","type":"string"},{"name":"button_id","type":"int"}],"type":"KeyboardButton"},{"id":3492708308,"predicate":"inputKeyboardButtonUrlAuth","params":[{"name":"flags","type":"#"},{"name":"request_write_access","type":"flags.0?true"},{"name":"text","type":"string"},{"name":"fwd_text","type":"flags.1?string"},{"name":"url","type":"string"},{"name":"bot","type":"InputUser"}],"type":"KeyboardButton"},{"id":3150401885,"predicate":"keyboardButtonRequestPoll","params":[{"name":"flags","type":"#"},{"name":"quiz","type":"flags.0?Bool"},{"name":"text","type":"string"}],"type":"KeyboardButton"},{"id":2002815875,"predicate":"keyboardButtonRow","params":[{"name":"buttons","type":"Vector"}],"type":"KeyboardButtonRow"},{"id":2688441221,"predicate":"replyKeyboardHide","params":[{"name":"flags","type":"#"},{"name":"selective","type":"flags.2?true"}],"type":"ReplyMarkup"},{"id":4094724768,"predicate":"replyKeyboardForceReply","params":[{"name":"flags","type":"#"},{"name":"single_use","type":"flags.1?true"},{"name":"selective","type":"flags.2?true"}],"type":"ReplyMarkup"},{"id":889353612,"predicate":"replyKeyboardMarkup","params":[{"name":"flags","type":"#"},{"name":"resize","type":"flags.0?true"},{"name":"single_use","type":"flags.1?true"},{"name":"selective","type":"flags.2?true"},{"name":"rows","type":"Vector"}],"type":"ReplyMarkup"},{"id":1218642516,"predicate":"replyInlineMarkup","params":[{"name":"rows","type":"Vector"}],"type":"ReplyMarkup"},{"id":3146955413,"predicate":"messageEntityUnknown","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":4194588573,"predicate":"messageEntityMention","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":1868782349,"predicate":"messageEntityHashtag","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":1827637959,"predicate":"messageEntityBotCommand","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":1859134776,"predicate":"messageEntityUrl","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":1692693954,"predicate":"messageEntityEmail","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":3177253833,"predicate":"messageEntityBold","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":2188348256,"predicate":"messageEntityItalic","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":681706865,"predicate":"messageEntityCode","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":1938967520,"predicate":"messageEntityPre","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"},{"name":"language","type":"string"}],"type":"MessageEntity"},{"id":1990644519,"predicate":"messageEntityTextUrl","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"},{"name":"url","type":"string"}],"type":"MessageEntity"},{"id":892193368,"predicate":"messageEntityMentionName","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"},{"name":"user_id","type":"int"}],"type":"MessageEntity"},{"id":546203849,"predicate":"inputMessageEntityMentionName","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"},{"name":"user_id","type":"InputUser"}],"type":"MessageEntity"},{"id":2607407947,"predicate":"messageEntityPhone","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":1280209983,"predicate":"messageEntityCashtag","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":2622389899,"predicate":"messageEntityUnderline","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":3204879316,"predicate":"messageEntityStrike","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":34469328,"predicate":"messageEntityBlockquote","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":1981704948,"predicate":"messageEntityBankCard","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":4002160262,"predicate":"inputChannelEmpty","params":[],"type":"InputChannel"},{"id":2951442734,"predicate":"inputChannel","params":[{"name":"channel_id","type":"int"},{"name":"access_hash","type":"long"}],"type":"InputChannel"},{"id":707290417,"predicate":"inputChannelFromMessage","params":[{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int"},{"name":"channel_id","type":"int"}],"type":"InputChannel"},{"id":2131196633,"predicate":"contacts.resolvedPeer","params":[{"name":"peer","type":"Peer"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"contacts.ResolvedPeer"},{"id":182649427,"predicate":"messageRange","params":[{"name":"min_id","type":"int"},{"name":"max_id","type":"int"}],"type":"MessageRange"},{"id":1041346555,"predicate":"updates.channelDifferenceEmpty","params":[{"name":"flags","type":"#"},{"name":"final","type":"flags.0?true"},{"name":"pts","type":"int"},{"name":"timeout","type":"flags.1?int"}],"type":"updates.ChannelDifference"},{"id":2763835134,"predicate":"updates.channelDifferenceTooLong","params":[{"name":"flags","type":"#"},{"name":"final","type":"flags.0?true"},{"name":"timeout","type":"flags.1?int"},{"name":"dialog","type":"Dialog"},{"name":"messages","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"updates.ChannelDifference"},{"id":543450958,"predicate":"updates.channelDifference","params":[{"name":"flags","type":"#"},{"name":"final","type":"flags.0?true"},{"name":"pts","type":"int"},{"name":"timeout","type":"flags.1?int"},{"name":"new_messages","type":"Vector"},{"name":"other_updates","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"updates.ChannelDifference"},{"id":2496933607,"predicate":"channelMessagesFilterEmpty","params":[],"type":"ChannelMessagesFilter"},{"id":3447183703,"predicate":"channelMessagesFilter","params":[{"name":"flags","type":"#"},{"name":"exclude_new_messages","type":"flags.1?true"},{"name":"ranges","type":"Vector"}],"type":"ChannelMessagesFilter"},{"id":367766557,"predicate":"channelParticipant","params":[{"name":"user_id","type":"int"},{"name":"date","type":"int"}],"type":"ChannelParticipant"},{"id":2737347181,"predicate":"channelParticipantSelf","params":[{"name":"user_id","type":"int"},{"name":"inviter_id","type":"int"},{"name":"date","type":"int"}],"type":"ChannelParticipant"},{"id":2156729764,"predicate":"channelParticipantCreator","params":[{"name":"flags","type":"#"},{"name":"user_id","type":"int"},{"name":"rank","type":"flags.0?string"}],"type":"ChannelParticipant"},{"id":3435051951,"predicate":"channelParticipantAdmin","params":[{"name":"flags","type":"#"},{"name":"can_edit","type":"flags.0?true"},{"name":"self","type":"flags.1?true"},{"name":"user_id","type":"int"},{"name":"inviter_id","type":"flags.1?int"},{"name":"promoted_by","type":"int"},{"name":"date","type":"int"},{"name":"admin_rights","type":"ChatAdminRights"},{"name":"rank","type":"flags.2?string"}],"type":"ChannelParticipant"},{"id":470789295,"predicate":"channelParticipantBanned","params":[{"name":"flags","type":"#"},{"name":"left","type":"flags.0?true"},{"name":"user_id","type":"int"},{"name":"kicked_by","type":"int"},{"name":"date","type":"int"},{"name":"banned_rights","type":"ChatBannedRights"}],"type":"ChannelParticipant"},{"id":3728686201,"predicate":"channelParticipantsRecent","params":[],"type":"ChannelParticipantsFilter"},{"id":3026225513,"predicate":"channelParticipantsAdmins","params":[],"type":"ChannelParticipantsFilter"},{"id":2746567045,"predicate":"channelParticipantsKicked","params":[{"name":"q","type":"string"}],"type":"ChannelParticipantsFilter"},{"id":2966521435,"predicate":"channelParticipantsBots","params":[],"type":"ChannelParticipantsFilter"},{"id":338142689,"predicate":"channelParticipantsBanned","params":[{"name":"q","type":"string"}],"type":"ChannelParticipantsFilter"},{"id":106343499,"predicate":"channelParticipantsSearch","params":[{"name":"q","type":"string"}],"type":"ChannelParticipantsFilter"},{"id":3144345741,"predicate":"channelParticipantsContacts","params":[{"name":"q","type":"string"}],"type":"ChannelParticipantsFilter"},{"id":4117684904,"predicate":"channels.channelParticipants","params":[{"name":"count","type":"int"},{"name":"participants","type":"Vector"},{"name":"users","type":"Vector"}],"type":"channels.ChannelParticipants"},{"id":4028055529,"predicate":"channels.channelParticipantsNotModified","params":[],"type":"channels.ChannelParticipants"},{"id":3503927651,"predicate":"channels.channelParticipant","params":[{"name":"participant","type":"ChannelParticipant"},{"name":"users","type":"Vector"}],"type":"channels.ChannelParticipant"},{"id":2013922064,"predicate":"help.termsOfService","params":[{"name":"flags","type":"#"},{"name":"popup","type":"flags.0?true"},{"name":"id","type":"DataJSON"},{"name":"text","type":"string"},{"name":"entities","type":"Vector"},{"name":"min_age_confirm","type":"flags.1?int"}],"type":"help.TermsOfService"},{"id":372165663,"predicate":"foundGif","params":[{"name":"url","type":"string"},{"name":"thumb_url","type":"string"},{"name":"content_url","type":"string"},{"name":"content_type","type":"string"},{"name":"w","type":"int"},{"name":"h","type":"int"}],"type":"FoundGif"},{"id":2624914441,"predicate":"foundGifCached","params":[{"name":"url","type":"string"},{"name":"photo","type":"Photo"},{"name":"document","type":"Document"}],"type":"FoundGif"},{"id":1158290442,"predicate":"messages.foundGifs","params":[{"name":"next_offset","type":"int"},{"name":"results","type":"Vector"}],"type":"messages.FoundGifs"},{"id":3892468898,"predicate":"messages.savedGifsNotModified","params":[],"type":"messages.SavedGifs"},{"id":772213157,"predicate":"messages.savedGifs","params":[{"name":"hash","type":"int"},{"name":"gifs","type":"Vector"}],"type":"messages.SavedGifs"},{"id":864077702,"predicate":"inputBotInlineMessageMediaAuto","params":[{"name":"flags","type":"#"},{"name":"message","type":"string"},{"name":"entities","type":"flags.1?Vector"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"}],"type":"InputBotInlineMessage"},{"id":1036876423,"predicate":"inputBotInlineMessageText","params":[{"name":"flags","type":"#"},{"name":"no_webpage","type":"flags.0?true"},{"name":"message","type":"string"},{"name":"entities","type":"flags.1?Vector"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"}],"type":"InputBotInlineMessage"},{"id":3249626469,"predicate":"inputBotInlineMessageMediaGeo","params":[{"name":"flags","type":"#"},{"name":"geo_point","type":"InputGeoPoint"},{"name":"period","type":"int"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"}],"type":"InputBotInlineMessage"},{"id":1098628881,"predicate":"inputBotInlineMessageMediaVenue","params":[{"name":"flags","type":"#"},{"name":"geo_point","type":"InputGeoPoint"},{"name":"title","type":"string"},{"name":"address","type":"string"},{"name":"provider","type":"string"},{"name":"venue_id","type":"string"},{"name":"venue_type","type":"string"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"}],"type":"InputBotInlineMessage"},{"id":2800599037,"predicate":"inputBotInlineMessageMediaContact","params":[{"name":"flags","type":"#"},{"name":"phone_number","type":"string"},{"name":"first_name","type":"string"},{"name":"last_name","type":"string"},{"name":"vcard","type":"string"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"}],"type":"InputBotInlineMessage"},{"id":1262639204,"predicate":"inputBotInlineMessageGame","params":[{"name":"flags","type":"#"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"}],"type":"InputBotInlineMessage"},{"id":2294256409,"predicate":"inputBotInlineResult","params":[{"name":"flags","type":"#"},{"name":"id","type":"string"},{"name":"type","type":"string"},{"name":"title","type":"flags.1?string"},{"name":"description","type":"flags.2?string"},{"name":"url","type":"flags.3?string"},{"name":"thumb","type":"flags.4?InputWebDocument"},{"name":"content","type":"flags.5?InputWebDocument"},{"name":"send_message","type":"InputBotInlineMessage"}],"type":"InputBotInlineResult"},{"id":2832753831,"predicate":"inputBotInlineResultPhoto","params":[{"name":"id","type":"string"},{"name":"type","type":"string"},{"name":"photo","type":"InputPhoto"},{"name":"send_message","type":"InputBotInlineMessage"}],"type":"InputBotInlineResult"},{"id":4294507972,"predicate":"inputBotInlineResultDocument","params":[{"name":"flags","type":"#"},{"name":"id","type":"string"},{"name":"type","type":"string"},{"name":"title","type":"flags.1?string"},{"name":"description","type":"flags.2?string"},{"name":"document","type":"InputDocument"},{"name":"send_message","type":"InputBotInlineMessage"}],"type":"InputBotInlineResult"},{"id":1336154098,"predicate":"inputBotInlineResultGame","params":[{"name":"id","type":"string"},{"name":"short_name","type":"string"},{"name":"send_message","type":"InputBotInlineMessage"}],"type":"InputBotInlineResult"},{"id":1984755728,"predicate":"botInlineMessageMediaAuto","params":[{"name":"flags","type":"#"},{"name":"message","type":"string"},{"name":"entities","type":"flags.1?Vector"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"}],"type":"BotInlineMessage"},{"id":2357159394,"predicate":"botInlineMessageText","params":[{"name":"flags","type":"#"},{"name":"no_webpage","type":"flags.0?true"},{"name":"message","type":"string"},{"name":"entities","type":"flags.1?Vector"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"}],"type":"BotInlineMessage"},{"id":3072515685,"predicate":"botInlineMessageMediaGeo","params":[{"name":"flags","type":"#"},{"name":"geo","type":"GeoPoint"},{"name":"period","type":"int"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"}],"type":"BotInlineMessage"},{"id":2324063644,"predicate":"botInlineMessageMediaVenue","params":[{"name":"flags","type":"#"},{"name":"geo","type":"GeoPoint"},{"name":"title","type":"string"},{"name":"address","type":"string"},{"name":"provider","type":"string"},{"name":"venue_id","type":"string"},{"name":"venue_type","type":"string"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"}],"type":"BotInlineMessage"},{"id":416402882,"predicate":"botInlineMessageMediaContact","params":[{"name":"flags","type":"#"},{"name":"phone_number","type":"string"},{"name":"first_name","type":"string"},{"name":"last_name","type":"string"},{"name":"vcard","type":"string"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"}],"type":"BotInlineMessage"},{"id":295067450,"predicate":"botInlineResult","params":[{"name":"flags","type":"#"},{"name":"id","type":"string"},{"name":"type","type":"string"},{"name":"title","type":"flags.1?string"},{"name":"description","type":"flags.2?string"},{"name":"url","type":"flags.3?string"},{"name":"thumb","type":"flags.4?WebDocument"},{"name":"content","type":"flags.5?WebDocument"},{"name":"send_message","type":"BotInlineMessage"}],"type":"BotInlineResult"},{"id":400266251,"predicate":"botInlineMediaResult","params":[{"name":"flags","type":"#"},{"name":"id","type":"string"},{"name":"type","type":"string"},{"name":"photo","type":"flags.0?Photo"},{"name":"document","type":"flags.1?Document"},{"name":"title","type":"flags.2?string"},{"name":"description","type":"flags.3?string"},{"name":"send_message","type":"BotInlineMessage"}],"type":"BotInlineResult"},{"id":2491197512,"predicate":"messages.botResults","params":[{"name":"flags","type":"#"},{"name":"gallery","type":"flags.0?true"},{"name":"query_id","type":"long"},{"name":"next_offset","type":"flags.1?string"},{"name":"switch_pm","type":"flags.2?InlineBotSwitchPM"},{"name":"results","type":"Vector"},{"name":"cache_time","type":"int"},{"name":"users","type":"Vector"}],"type":"messages.BotResults"},{"id":1571494644,"predicate":"exportedMessageLink","params":[{"name":"link","type":"string"},{"name":"html","type":"string"}],"type":"ExportedMessageLink"},{"id":893020267,"predicate":"messageFwdHeader","params":[{"name":"flags","type":"#"},{"name":"from_id","type":"flags.0?int"},{"name":"from_name","type":"flags.5?string"},{"name":"date","type":"int"},{"name":"channel_id","type":"flags.1?int"},{"name":"channel_post","type":"flags.2?int"},{"name":"post_author","type":"flags.3?string"},{"name":"saved_from_peer","type":"flags.4?Peer"},{"name":"saved_from_msg_id","type":"flags.4?int"},{"name":"psa_type","type":"flags.6?string"}],"type":"MessageFwdHeader"},{"id":1923290508,"predicate":"auth.codeTypeSms","params":[],"type":"auth.CodeType"},{"id":1948046307,"predicate":"auth.codeTypeCall","params":[],"type":"auth.CodeType"},{"id":577556219,"predicate":"auth.codeTypeFlashCall","params":[],"type":"auth.CodeType"},{"id":1035688326,"predicate":"auth.sentCodeTypeApp","params":[{"name":"length","type":"int"}],"type":"auth.SentCodeType"},{"id":3221273506,"predicate":"auth.sentCodeTypeSms","params":[{"name":"length","type":"int"}],"type":"auth.SentCodeType"},{"id":1398007207,"predicate":"auth.sentCodeTypeCall","params":[{"name":"length","type":"int"}],"type":"auth.SentCodeType"},{"id":2869151449,"predicate":"auth.sentCodeTypeFlashCall","params":[{"name":"pattern","type":"string"}],"type":"auth.SentCodeType"},{"id":911761060,"predicate":"messages.botCallbackAnswer","params":[{"name":"flags","type":"#"},{"name":"alert","type":"flags.1?true"},{"name":"has_url","type":"flags.3?true"},{"name":"native_ui","type":"flags.4?true"},{"name":"message","type":"flags.0?string"},{"name":"url","type":"flags.2?string"},{"name":"cache_time","type":"int"}],"type":"messages.BotCallbackAnswer"},{"id":649453030,"predicate":"messages.messageEditData","params":[{"name":"flags","type":"#"},{"name":"caption","type":"flags.0?true"}],"type":"messages.MessageEditData"},{"id":2299280777,"predicate":"inputBotInlineMessageID","params":[{"name":"dc_id","type":"int"},{"name":"id","type":"long"},{"name":"access_hash","type":"long"}],"type":"InputBotInlineMessageID"},{"id":1008755359,"predicate":"inlineBotSwitchPM","params":[{"name":"text","type":"string"},{"name":"start_param","type":"string"}],"type":"InlineBotSwitchPM"},{"id":863093588,"predicate":"messages.peerDialogs","params":[{"name":"dialogs","type":"Vector"},{"name":"messages","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"},{"name":"state","type":"updates.State"}],"type":"messages.PeerDialogs"},{"id":3989684315,"predicate":"topPeer","params":[{"name":"peer","type":"Peer"},{"name":"rating","type":"double"}],"type":"TopPeer"},{"id":2875595611,"predicate":"topPeerCategoryBotsPM","params":[],"type":"TopPeerCategory"},{"id":344356834,"predicate":"topPeerCategoryBotsInline","params":[],"type":"TopPeerCategory"},{"id":104314861,"predicate":"topPeerCategoryCorrespondents","params":[],"type":"TopPeerCategory"},{"id":3172442442,"predicate":"topPeerCategoryGroups","params":[],"type":"TopPeerCategory"},{"id":371037736,"predicate":"topPeerCategoryChannels","params":[],"type":"TopPeerCategory"},{"id":511092620,"predicate":"topPeerCategoryPhoneCalls","params":[],"type":"TopPeerCategory"},{"id":2822794409,"predicate":"topPeerCategoryForwardUsers","params":[],"type":"TopPeerCategory"},{"id":4226728176,"predicate":"topPeerCategoryForwardChats","params":[],"type":"TopPeerCategory"},{"id":4219683473,"predicate":"topPeerCategoryPeers","params":[{"name":"category","type":"TopPeerCategory"},{"name":"count","type":"int"},{"name":"peers","type":"Vector"}],"type":"TopPeerCategoryPeers"},{"id":3727060725,"predicate":"contacts.topPeersNotModified","params":[],"type":"contacts.TopPeers"},{"id":1891070632,"predicate":"contacts.topPeers","params":[{"name":"categories","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"contacts.TopPeers"},{"id":3039597469,"predicate":"contacts.topPeersDisabled","params":[],"type":"contacts.TopPeers"},{"id":453805082,"predicate":"draftMessageEmpty","params":[{"name":"flags","type":"#"},{"name":"date","type":"flags.0?int"}],"type":"DraftMessage"},{"id":4253970719,"predicate":"draftMessage","params":[{"name":"flags","type":"#"},{"name":"no_webpage","type":"flags.1?true"},{"name":"reply_to_msg_id","type":"flags.0?int"},{"name":"message","type":"string"},{"name":"entities","type":"flags.3?Vector"},{"name":"date","type":"int"}],"type":"DraftMessage"},{"id":3336309862,"predicate":"messages.featuredStickersNotModified","params":[{"name":"count","type":"int"}],"type":"messages.FeaturedStickers"},{"id":3064709953,"predicate":"messages.featuredStickers","params":[{"name":"hash","type":"int"},{"name":"count","type":"int"},{"name":"sets","type":"Vector"},{"name":"unread","type":"Vector"}],"type":"messages.FeaturedStickers"},{"id":186120336,"predicate":"messages.recentStickersNotModified","params":[],"type":"messages.RecentStickers"},{"id":586395571,"predicate":"messages.recentStickers","params":[{"name":"hash","type":"int"},{"name":"packs","type":"Vector"},{"name":"stickers","type":"Vector"},{"name":"dates","type":"Vector"}],"type":"messages.RecentStickers"},{"id":1338747336,"predicate":"messages.archivedStickers","params":[{"name":"count","type":"int"},{"name":"sets","type":"Vector"}],"type":"messages.ArchivedStickers"},{"id":946083368,"predicate":"messages.stickerSetInstallResultSuccess","params":[],"type":"messages.StickerSetInstallResult"},{"id":904138920,"predicate":"messages.stickerSetInstallResultArchive","params":[{"name":"sets","type":"Vector"}],"type":"messages.StickerSetInstallResult"},{"id":1678812626,"predicate":"stickerSetCovered","params":[{"name":"set","type":"StickerSet"},{"name":"cover","type":"Document"}],"type":"StickerSetCovered"},{"id":872932635,"predicate":"stickerSetMultiCovered","params":[{"name":"set","type":"StickerSet"},{"name":"covers","type":"Vector"}],"type":"StickerSetCovered"},{"id":2933316530,"predicate":"maskCoords","params":[{"name":"n","type":"int"},{"name":"x","type":"double"},{"name":"y","type":"double"},{"name":"zoom","type":"double"}],"type":"MaskCoords"},{"id":1251549527,"predicate":"inputStickeredMediaPhoto","params":[{"name":"id","type":"InputPhoto"}],"type":"InputStickeredMedia"},{"id":70813275,"predicate":"inputStickeredMediaDocument","params":[{"name":"id","type":"InputDocument"}],"type":"InputStickeredMedia"},{"id":3187238203,"predicate":"game","params":[{"name":"flags","type":"#"},{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"short_name","type":"string"},{"name":"title","type":"string"},{"name":"description","type":"string"},{"name":"photo","type":"Photo"},{"name":"document","type":"flags.0?Document"}],"type":"Game"},{"id":53231223,"predicate":"inputGameID","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"}],"type":"InputGame"},{"id":3274827786,"predicate":"inputGameShortName","params":[{"name":"bot_id","type":"InputUser"},{"name":"short_name","type":"string"}],"type":"InputGame"},{"id":1493171408,"predicate":"highScore","params":[{"name":"pos","type":"int"},{"name":"user_id","type":"int"},{"name":"score","type":"int"}],"type":"HighScore"},{"id":2587622809,"predicate":"messages.highScores","params":[{"name":"scores","type":"Vector"},{"name":"users","type":"Vector"}],"type":"messages.HighScores"},{"id":3695018575,"predicate":"textEmpty","params":[],"type":"RichText"},{"id":1950782688,"predicate":"textPlain","params":[{"name":"text","type":"string"}],"type":"RichText"},{"id":1730456516,"predicate":"textBold","params":[{"name":"text","type":"RichText"}],"type":"RichText"},{"id":3641877916,"predicate":"textItalic","params":[{"name":"text","type":"RichText"}],"type":"RichText"},{"id":3240501956,"predicate":"textUnderline","params":[{"name":"text","type":"RichText"}],"type":"RichText"},{"id":2616769429,"predicate":"textStrike","params":[{"name":"text","type":"RichText"}],"type":"RichText"},{"id":1816074681,"predicate":"textFixed","params":[{"name":"text","type":"RichText"}],"type":"RichText"},{"id":1009288385,"predicate":"textUrl","params":[{"name":"text","type":"RichText"},{"name":"url","type":"string"},{"name":"webpage_id","type":"long"}],"type":"RichText"},{"id":3730443734,"predicate":"textEmail","params":[{"name":"text","type":"RichText"},{"name":"email","type":"string"}],"type":"RichText"},{"id":2120376535,"predicate":"textConcat","params":[{"name":"texts","type":"Vector"}],"type":"RichText"},{"id":3983181060,"predicate":"textSubscript","params":[{"name":"text","type":"RichText"}],"type":"RichText"},{"id":3355139585,"predicate":"textSuperscript","params":[{"name":"text","type":"RichText"}],"type":"RichText"},{"id":55281185,"predicate":"textMarked","params":[{"name":"text","type":"RichText"}],"type":"RichText"},{"id":483104362,"predicate":"textPhone","params":[{"name":"text","type":"RichText"},{"name":"phone","type":"string"}],"type":"RichText"},{"id":136105807,"predicate":"textImage","params":[{"name":"document_id","type":"long"},{"name":"w","type":"int"},{"name":"h","type":"int"}],"type":"RichText"},{"id":894777186,"predicate":"textAnchor","params":[{"name":"text","type":"RichText"},{"name":"name","type":"string"}],"type":"RichText"},{"id":324435594,"predicate":"pageBlockUnsupported","params":[],"type":"PageBlock"},{"id":1890305021,"predicate":"pageBlockTitle","params":[{"name":"text","type":"RichText"}],"type":"PageBlock"},{"id":2415565343,"predicate":"pageBlockSubtitle","params":[{"name":"text","type":"RichText"}],"type":"PageBlock"},{"id":3132089824,"predicate":"pageBlockAuthorDate","params":[{"name":"author","type":"RichText"},{"name":"published_date","type":"int"}],"type":"PageBlock"},{"id":3218105580,"predicate":"pageBlockHeader","params":[{"name":"text","type":"RichText"}],"type":"PageBlock"},{"id":4046173921,"predicate":"pageBlockSubheader","params":[{"name":"text","type":"RichText"}],"type":"PageBlock"},{"id":1182402406,"predicate":"pageBlockParagraph","params":[{"name":"text","type":"RichText"}],"type":"PageBlock"},{"id":3228621118,"predicate":"pageBlockPreformatted","params":[{"name":"text","type":"RichText"},{"name":"language","type":"string"}],"type":"PageBlock"},{"id":1216809369,"predicate":"pageBlockFooter","params":[{"name":"text","type":"RichText"}],"type":"PageBlock"},{"id":3676352904,"predicate":"pageBlockDivider","params":[],"type":"PageBlock"},{"id":3456972720,"predicate":"pageBlockAnchor","params":[{"name":"name","type":"string"}],"type":"PageBlock"},{"id":3840442385,"predicate":"pageBlockList","params":[{"name":"items","type":"Vector"}],"type":"PageBlock"},{"id":641563686,"predicate":"pageBlockBlockquote","params":[{"name":"text","type":"RichText"},{"name":"caption","type":"RichText"}],"type":"PageBlock"},{"id":1329878739,"predicate":"pageBlockPullquote","params":[{"name":"text","type":"RichText"},{"name":"caption","type":"RichText"}],"type":"PageBlock"},{"id":391759200,"predicate":"pageBlockPhoto","params":[{"name":"flags","type":"#"},{"name":"photo_id","type":"long"},{"name":"caption","type":"PageCaption"},{"name":"url","type":"flags.0?string"},{"name":"webpage_id","type":"flags.0?long"}],"type":"PageBlock"},{"id":2089805750,"predicate":"pageBlockVideo","params":[{"name":"flags","type":"#"},{"name":"autoplay","type":"flags.0?true"},{"name":"loop","type":"flags.1?true"},{"name":"video_id","type":"long"},{"name":"caption","type":"PageCaption"}],"type":"PageBlock"},{"id":972174080,"predicate":"pageBlockCover","params":[{"name":"cover","type":"PageBlock"}],"type":"PageBlock"},{"id":2826014149,"predicate":"pageBlockEmbed","params":[{"name":"flags","type":"#"},{"name":"full_width","type":"flags.0?true"},{"name":"allow_scrolling","type":"flags.3?true"},{"name":"url","type":"flags.1?string"},{"name":"html","type":"flags.2?string"},{"name":"poster_photo_id","type":"flags.4?long"},{"name":"w","type":"flags.5?int"},{"name":"h","type":"flags.5?int"},{"name":"caption","type":"PageCaption"}],"type":"PageBlock"},{"id":4065961995,"predicate":"pageBlockEmbedPost","params":[{"name":"url","type":"string"},{"name":"webpage_id","type":"long"},{"name":"author_photo_id","type":"long"},{"name":"author","type":"string"},{"name":"date","type":"int"},{"name":"blocks","type":"Vector"},{"name":"caption","type":"PageCaption"}],"type":"PageBlock"},{"id":1705048653,"predicate":"pageBlockCollage","params":[{"name":"items","type":"Vector"},{"name":"caption","type":"PageCaption"}],"type":"PageBlock"},{"id":52401552,"predicate":"pageBlockSlideshow","params":[{"name":"items","type":"Vector"},{"name":"caption","type":"PageCaption"}],"type":"PageBlock"},{"id":4011282869,"predicate":"pageBlockChannel","params":[{"name":"channel","type":"Chat"}],"type":"PageBlock"},{"id":2151899626,"predicate":"pageBlockAudio","params":[{"name":"audio_id","type":"long"},{"name":"caption","type":"PageCaption"}],"type":"PageBlock"},{"id":504660880,"predicate":"pageBlockKicker","params":[{"name":"text","type":"RichText"}],"type":"PageBlock"},{"id":3209554562,"predicate":"pageBlockTable","params":[{"name":"flags","type":"#"},{"name":"bordered","type":"flags.0?true"},{"name":"striped","type":"flags.1?true"},{"name":"title","type":"RichText"},{"name":"rows","type":"Vector"}],"type":"PageBlock"},{"id":2592793057,"predicate":"pageBlockOrderedList","params":[{"name":"items","type":"Vector"}],"type":"PageBlock"},{"id":1987480557,"predicate":"pageBlockDetails","params":[{"name":"flags","type":"#"},{"name":"open","type":"flags.0?true"},{"name":"blocks","type":"Vector"},{"name":"title","type":"RichText"}],"type":"PageBlock"},{"id":370236054,"predicate":"pageBlockRelatedArticles","params":[{"name":"title","type":"RichText"},{"name":"articles","type":"Vector"}],"type":"PageBlock"},{"id":2756656886,"predicate":"pageBlockMap","params":[{"name":"geo","type":"GeoPoint"},{"name":"zoom","type":"int"},{"name":"w","type":"int"},{"name":"h","type":"int"},{"name":"caption","type":"PageCaption"}],"type":"PageBlock"},{"id":2246320897,"predicate":"phoneCallDiscardReasonMissed","params":[],"type":"PhoneCallDiscardReason"},{"id":3767910816,"predicate":"phoneCallDiscardReasonDisconnect","params":[],"type":"PhoneCallDiscardReason"},{"id":1471006352,"predicate":"phoneCallDiscardReasonHangup","params":[],"type":"PhoneCallDiscardReason"},{"id":4210550985,"predicate":"phoneCallDiscardReasonBusy","params":[],"type":"PhoneCallDiscardReason"},{"id":2104790276,"predicate":"dataJSON","params":[{"name":"data","type":"string"}],"type":"DataJSON"},{"id":3408489464,"predicate":"labeledPrice","params":[{"name":"label","type":"string"},{"name":"amount","type":"long"}],"type":"LabeledPrice"},{"id":3272254296,"predicate":"invoice","params":[{"name":"flags","type":"#"},{"name":"test","type":"flags.0?true"},{"name":"name_requested","type":"flags.1?true"},{"name":"phone_requested","type":"flags.2?true"},{"name":"email_requested","type":"flags.3?true"},{"name":"shipping_address_requested","type":"flags.4?true"},{"name":"flexible","type":"flags.5?true"},{"name":"phone_to_provider","type":"flags.6?true"},{"name":"email_to_provider","type":"flags.7?true"},{"name":"currency","type":"string"},{"name":"prices","type":"Vector"}],"type":"Invoice"},{"id":3926049406,"predicate":"paymentCharge","params":[{"name":"id","type":"string"},{"name":"provider_charge_id","type":"string"}],"type":"PaymentCharge"},{"id":512535275,"predicate":"postAddress","params":[{"name":"street_line1","type":"string"},{"name":"street_line2","type":"string"},{"name":"city","type":"string"},{"name":"state","type":"string"},{"name":"country_iso2","type":"string"},{"name":"post_code","type":"string"}],"type":"PostAddress"},{"id":2426158996,"predicate":"paymentRequestedInfo","params":[{"name":"flags","type":"#"},{"name":"name","type":"flags.0?string"},{"name":"phone","type":"flags.1?string"},{"name":"email","type":"flags.2?string"},{"name":"shipping_address","type":"flags.3?PostAddress"}],"type":"PaymentRequestedInfo"},{"id":3452074527,"predicate":"paymentSavedCredentialsCard","params":[{"name":"id","type":"string"},{"name":"title","type":"string"}],"type":"PaymentSavedCredentials"},{"id":475467473,"predicate":"webDocument","params":[{"name":"url","type":"string"},{"name":"access_hash","type":"long"},{"name":"size","type":"int"},{"name":"mime_type","type":"string"},{"name":"attributes","type":"Vector"}],"type":"WebDocument"},{"id":4190682310,"predicate":"webDocumentNoProxy","params":[{"name":"url","type":"string"},{"name":"size","type":"int"},{"name":"mime_type","type":"string"},{"name":"attributes","type":"Vector"}],"type":"WebDocument"},{"id":2616017741,"predicate":"inputWebDocument","params":[{"name":"url","type":"string"},{"name":"size","type":"int"},{"name":"mime_type","type":"string"},{"name":"attributes","type":"Vector"}],"type":"InputWebDocument"},{"id":3258570374,"predicate":"inputWebFileLocation","params":[{"name":"url","type":"string"},{"name":"access_hash","type":"long"}],"type":"InputWebFileLocation"},{"id":2669814217,"predicate":"inputWebFileGeoPointLocation","params":[{"name":"geo_point","type":"InputGeoPoint"},{"name":"access_hash","type":"long"},{"name":"w","type":"int"},{"name":"h","type":"int"},{"name":"zoom","type":"int"},{"name":"scale","type":"int"}],"type":"InputWebFileLocation"},{"id":568808380,"predicate":"upload.webFile","params":[{"name":"size","type":"int"},{"name":"mime_type","type":"string"},{"name":"file_type","type":"storage.FileType"},{"name":"mtime","type":"int"},{"name":"bytes","type":"bytes"}],"type":"upload.WebFile"},{"id":1062645411,"predicate":"payments.paymentForm","params":[{"name":"flags","type":"#"},{"name":"can_save_credentials","type":"flags.2?true"},{"name":"password_missing","type":"flags.3?true"},{"name":"bot_id","type":"int"},{"name":"invoice","type":"Invoice"},{"name":"provider_id","type":"int"},{"name":"url","type":"string"},{"name":"native_provider","type":"flags.4?string"},{"name":"native_params","type":"flags.4?DataJSON"},{"name":"saved_info","type":"flags.0?PaymentRequestedInfo"},{"name":"saved_credentials","type":"flags.1?PaymentSavedCredentials"},{"name":"users","type":"Vector"}],"type":"payments.PaymentForm"},{"id":3510966403,"predicate":"payments.validatedRequestedInfo","params":[{"name":"flags","type":"#"},{"name":"id","type":"flags.0?string"},{"name":"shipping_options","type":"flags.1?Vector"}],"type":"payments.ValidatedRequestedInfo"},{"id":1314881805,"predicate":"payments.paymentResult","params":[{"name":"updates","type":"Updates"}],"type":"payments.PaymentResult"},{"id":3628142905,"predicate":"payments.paymentVerificationNeeded","params":[{"name":"url","type":"string"}],"type":"payments.PaymentResult"},{"id":1342771681,"predicate":"payments.paymentReceipt","params":[{"name":"flags","type":"#"},{"name":"date","type":"int"},{"name":"bot_id","type":"int"},{"name":"invoice","type":"Invoice"},{"name":"provider_id","type":"int"},{"name":"info","type":"flags.0?PaymentRequestedInfo"},{"name":"shipping","type":"flags.1?ShippingOption"},{"name":"currency","type":"string"},{"name":"total_amount","type":"long"},{"name":"credentials_title","type":"string"},{"name":"users","type":"Vector"}],"type":"payments.PaymentReceipt"},{"id":4220511292,"predicate":"payments.savedInfo","params":[{"name":"flags","type":"#"},{"name":"has_saved_credentials","type":"flags.1?true"},{"name":"saved_info","type":"flags.0?PaymentRequestedInfo"}],"type":"payments.SavedInfo"},{"id":3238965967,"predicate":"inputPaymentCredentialsSaved","params":[{"name":"id","type":"string"},{"name":"tmp_password","type":"bytes"}],"type":"InputPaymentCredentials"},{"id":873977640,"predicate":"inputPaymentCredentials","params":[{"name":"flags","type":"#"},{"name":"save","type":"flags.0?true"},{"name":"data","type":"DataJSON"}],"type":"InputPaymentCredentials"},{"id":178373535,"predicate":"inputPaymentCredentialsApplePay","params":[{"name":"payment_data","type":"DataJSON"}],"type":"InputPaymentCredentials"},{"id":3389379854,"predicate":"inputPaymentCredentialsAndroidPay","params":[{"name":"payment_token","type":"DataJSON"},{"name":"google_transaction_id","type":"string"}],"type":"InputPaymentCredentials"},{"id":3680828724,"predicate":"account.tmpPassword","params":[{"name":"tmp_password","type":"bytes"},{"name":"valid_until","type":"int"}],"type":"account.TmpPassword"},{"id":3055631583,"predicate":"shippingOption","params":[{"name":"id","type":"string"},{"name":"title","type":"string"},{"name":"prices","type":"Vector"}],"type":"ShippingOption"},{"id":4288717974,"predicate":"inputStickerSetItem","params":[{"name":"flags","type":"#"},{"name":"document","type":"InputDocument"},{"name":"emoji","type":"string"},{"name":"mask_coords","type":"flags.0?MaskCoords"}],"type":"InputStickerSetItem"},{"id":506920429,"predicate":"inputPhoneCall","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"}],"type":"InputPhoneCall"},{"id":1399245077,"predicate":"phoneCallEmpty","params":[{"name":"id","type":"long"}],"type":"PhoneCall"},{"id":462375633,"predicate":"phoneCallWaiting","params":[{"name":"flags","type":"#"},{"name":"video","type":"flags.5?true"},{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"date","type":"int"},{"name":"admin_id","type":"int"},{"name":"participant_id","type":"int"},{"name":"protocol","type":"PhoneCallProtocol"},{"name":"receive_date","type":"flags.0?int"}],"type":"PhoneCall"},{"id":2280307539,"predicate":"phoneCallRequested","params":[{"name":"flags","type":"#"},{"name":"video","type":"flags.5?true"},{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"date","type":"int"},{"name":"admin_id","type":"int"},{"name":"participant_id","type":"int"},{"name":"g_a_hash","type":"bytes"},{"name":"protocol","type":"PhoneCallProtocol"}],"type":"PhoneCall"},{"id":2575058250,"predicate":"phoneCallAccepted","params":[{"name":"flags","type":"#"},{"name":"video","type":"flags.5?true"},{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"date","type":"int"},{"name":"admin_id","type":"int"},{"name":"participant_id","type":"int"},{"name":"g_b","type":"bytes"},{"name":"protocol","type":"PhoneCallProtocol"}],"type":"PhoneCall"},{"id":2269294207,"predicate":"phoneCall","params":[{"name":"flags","type":"#"},{"name":"p2p_allowed","type":"flags.5?true"},{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"date","type":"int"},{"name":"admin_id","type":"int"},{"name":"participant_id","type":"int"},{"name":"g_a_or_b","type":"bytes"},{"name":"key_fingerprint","type":"long"},{"name":"protocol","type":"PhoneCallProtocol"},{"name":"connections","type":"Vector"},{"name":"start_date","type":"int"}],"type":"PhoneCall"},{"id":1355435489,"predicate":"phoneCallDiscarded","params":[{"name":"flags","type":"#"},{"name":"need_rating","type":"flags.2?true"},{"name":"need_debug","type":"flags.3?true"},{"name":"video","type":"flags.5?true"},{"name":"id","type":"long"},{"name":"reason","type":"flags.0?PhoneCallDiscardReason"},{"name":"duration","type":"flags.1?int"}],"type":"PhoneCall"},{"id":2639009728,"predicate":"phoneConnection","params":[{"name":"id","type":"long"},{"name":"ip","type":"string"},{"name":"ipv6","type":"string"},{"name":"port","type":"int"},{"name":"peer_tag","type":"bytes"}],"type":"PhoneConnection"},{"id":4236742600,"predicate":"phoneCallProtocol","params":[{"name":"flags","type":"#"},{"name":"udp_p2p","type":"flags.0?true"},{"name":"udp_reflector","type":"flags.1?true"},{"name":"min_layer","type":"int"},{"name":"max_layer","type":"int"},{"name":"library_versions","type":"Vector"}],"type":"PhoneCallProtocol"},{"id":3968000320,"predicate":"phone.phoneCall","params":[{"name":"phone_call","type":"PhoneCall"},{"name":"users","type":"Vector"}],"type":"phone.PhoneCall"},{"id":4004045934,"predicate":"upload.cdnFileReuploadNeeded","params":[{"name":"request_token","type":"bytes"}],"type":"upload.CdnFile"},{"id":2845821519,"predicate":"upload.cdnFile","params":[{"name":"bytes","type":"bytes"}],"type":"upload.CdnFile"},{"id":3380800186,"predicate":"cdnPublicKey","params":[{"name":"dc_id","type":"int"},{"name":"public_key","type":"string"}],"type":"CdnPublicKey"},{"id":1462101002,"predicate":"cdnConfig","params":[{"name":"public_keys","type":"Vector"}],"type":"CdnConfig"},{"id":3402727926,"predicate":"langPackString","params":[{"name":"key","type":"string"},{"name":"value","type":"string"}],"type":"LangPackString"},{"id":1816636575,"predicate":"langPackStringPluralized","params":[{"name":"flags","type":"#"},{"name":"key","type":"string"},{"name":"zero_value","type":"flags.0?string"},{"name":"one_value","type":"flags.1?string"},{"name":"two_value","type":"flags.2?string"},{"name":"few_value","type":"flags.3?string"},{"name":"many_value","type":"flags.4?string"},{"name":"other_value","type":"string"}],"type":"LangPackString"},{"id":695856818,"predicate":"langPackStringDeleted","params":[{"name":"key","type":"string"}],"type":"LangPackString"},{"id":4085629430,"predicate":"langPackDifference","params":[{"name":"lang_code","type":"string"},{"name":"from_version","type":"int"},{"name":"version","type":"int"},{"name":"strings","type":"Vector"}],"type":"LangPackDifference"},{"id":4006239459,"predicate":"langPackLanguage","params":[{"name":"flags","type":"#"},{"name":"official","type":"flags.0?true"},{"name":"rtl","type":"flags.2?true"},{"name":"beta","type":"flags.3?true"},{"name":"name","type":"string"},{"name":"native_name","type":"string"},{"name":"lang_code","type":"string"},{"name":"base_lang_code","type":"flags.1?string"},{"name":"plural_code","type":"string"},{"name":"strings_count","type":"int"},{"name":"translated_count","type":"int"},{"name":"translations_url","type":"string"}],"type":"LangPackLanguage"},{"id":3873421349,"predicate":"channelAdminLogEventActionChangeTitle","params":[{"name":"prev_value","type":"string"},{"name":"new_value","type":"string"}],"type":"ChannelAdminLogEventAction"},{"id":1427671598,"predicate":"channelAdminLogEventActionChangeAbout","params":[{"name":"prev_value","type":"string"},{"name":"new_value","type":"string"}],"type":"ChannelAdminLogEventAction"},{"id":1783299128,"predicate":"channelAdminLogEventActionChangeUsername","params":[{"name":"prev_value","type":"string"},{"name":"new_value","type":"string"}],"type":"ChannelAdminLogEventAction"},{"id":1129042607,"predicate":"channelAdminLogEventActionChangePhoto","params":[{"name":"prev_photo","type":"Photo"},{"name":"new_photo","type":"Photo"}],"type":"ChannelAdminLogEventAction"},{"id":460916654,"predicate":"channelAdminLogEventActionToggleInvites","params":[{"name":"new_value","type":"Bool"}],"type":"ChannelAdminLogEventAction"},{"id":648939889,"predicate":"channelAdminLogEventActionToggleSignatures","params":[{"name":"new_value","type":"Bool"}],"type":"ChannelAdminLogEventAction"},{"id":3924306968,"predicate":"channelAdminLogEventActionUpdatePinned","params":[{"name":"message","type":"Message"}],"type":"ChannelAdminLogEventAction"},{"id":1889215493,"predicate":"channelAdminLogEventActionEditMessage","params":[{"name":"prev_message","type":"Message"},{"name":"new_message","type":"Message"}],"type":"ChannelAdminLogEventAction"},{"id":1121994683,"predicate":"channelAdminLogEventActionDeleteMessage","params":[{"name":"message","type":"Message"}],"type":"ChannelAdminLogEventAction"},{"id":405815507,"predicate":"channelAdminLogEventActionParticipantJoin","params":[],"type":"ChannelAdminLogEventAction"},{"id":4170676210,"predicate":"channelAdminLogEventActionParticipantLeave","params":[],"type":"ChannelAdminLogEventAction"},{"id":3810276568,"predicate":"channelAdminLogEventActionParticipantInvite","params":[{"name":"participant","type":"ChannelParticipant"}],"type":"ChannelAdminLogEventAction"},{"id":3872931198,"predicate":"channelAdminLogEventActionParticipantToggleBan","params":[{"name":"prev_participant","type":"ChannelParticipant"},{"name":"new_participant","type":"ChannelParticipant"}],"type":"ChannelAdminLogEventAction"},{"id":3580323600,"predicate":"channelAdminLogEventActionParticipantToggleAdmin","params":[{"name":"prev_participant","type":"ChannelParticipant"},{"name":"new_participant","type":"ChannelParticipant"}],"type":"ChannelAdminLogEventAction"},{"id":2982398631,"predicate":"channelAdminLogEventActionChangeStickerSet","params":[{"name":"prev_stickerset","type":"InputStickerSet"},{"name":"new_stickerset","type":"InputStickerSet"}],"type":"ChannelAdminLogEventAction"},{"id":1599903217,"predicate":"channelAdminLogEventActionTogglePreHistoryHidden","params":[{"name":"new_value","type":"Bool"}],"type":"ChannelAdminLogEventAction"},{"id":771095562,"predicate":"channelAdminLogEventActionDefaultBannedRights","params":[{"name":"prev_banned_rights","type":"ChatBannedRights"},{"name":"new_banned_rights","type":"ChatBannedRights"}],"type":"ChannelAdminLogEventAction"},{"id":2399639107,"predicate":"channelAdminLogEventActionStopPoll","params":[{"name":"message","type":"Message"}],"type":"ChannelAdminLogEventAction"},{"id":2725218331,"predicate":"channelAdminLogEventActionChangeLinkedChat","params":[{"name":"prev_value","type":"int"},{"name":"new_value","type":"int"}],"type":"ChannelAdminLogEventAction"},{"id":241923758,"predicate":"channelAdminLogEventActionChangeLocation","params":[{"name":"prev_value","type":"ChannelLocation"},{"name":"new_value","type":"ChannelLocation"}],"type":"ChannelAdminLogEventAction"},{"id":1401984889,"predicate":"channelAdminLogEventActionToggleSlowMode","params":[{"name":"prev_value","type":"int"},{"name":"new_value","type":"int"}],"type":"ChannelAdminLogEventAction"},{"id":995769920,"predicate":"channelAdminLogEvent","params":[{"name":"id","type":"long"},{"name":"date","type":"int"},{"name":"user_id","type":"int"},{"name":"action","type":"ChannelAdminLogEventAction"}],"type":"ChannelAdminLogEvent"},{"id":3985307469,"predicate":"channels.adminLogResults","params":[{"name":"events","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"channels.AdminLogResults"},{"id":3926948580,"predicate":"channelAdminLogEventsFilter","params":[{"name":"flags","type":"#"},{"name":"join","type":"flags.0?true"},{"name":"leave","type":"flags.1?true"},{"name":"invite","type":"flags.2?true"},{"name":"ban","type":"flags.3?true"},{"name":"unban","type":"flags.4?true"},{"name":"kick","type":"flags.5?true"},{"name":"unkick","type":"flags.6?true"},{"name":"promote","type":"flags.7?true"},{"name":"demote","type":"flags.8?true"},{"name":"info","type":"flags.9?true"},{"name":"settings","type":"flags.10?true"},{"name":"pinned","type":"flags.11?true"},{"name":"edit","type":"flags.12?true"},{"name":"delete","type":"flags.13?true"}],"type":"ChannelAdminLogEventsFilter"},{"id":1558266229,"predicate":"popularContact","params":[{"name":"client_id","type":"long"},{"name":"importers","type":"int"}],"type":"PopularContact"},{"id":2660214483,"predicate":"messages.favedStickersNotModified","params":[],"type":"messages.FavedStickers"},{"id":4085198614,"predicate":"messages.favedStickers","params":[{"name":"hash","type":"int"},{"name":"packs","type":"Vector"},{"name":"stickers","type":"Vector"}],"type":"messages.FavedStickers"},{"id":1189204285,"predicate":"recentMeUrlUnknown","params":[{"name":"url","type":"string"}],"type":"RecentMeUrl"},{"id":2377921334,"predicate":"recentMeUrlUser","params":[{"name":"url","type":"string"},{"name":"user_id","type":"int"}],"type":"RecentMeUrl"},{"id":2686132985,"predicate":"recentMeUrlChat","params":[{"name":"url","type":"string"},{"name":"chat_id","type":"int"}],"type":"RecentMeUrl"},{"id":3947431965,"predicate":"recentMeUrlChatInvite","params":[{"name":"url","type":"string"},{"name":"chat_invite","type":"ChatInvite"}],"type":"RecentMeUrl"},{"id":3154794460,"predicate":"recentMeUrlStickerSet","params":[{"name":"url","type":"string"},{"name":"set","type":"StickerSetCovered"}],"type":"RecentMeUrl"},{"id":235081943,"predicate":"help.recentMeUrls","params":[{"name":"urls","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"help.RecentMeUrls"},{"id":482797855,"predicate":"inputSingleMedia","params":[{"name":"flags","type":"#"},{"name":"media","type":"InputMedia"},{"name":"random_id","type":"long"},{"name":"message","type":"string"},{"name":"entities","type":"flags.0?Vector"}],"type":"InputSingleMedia"},{"id":3402187762,"predicate":"webAuthorization","params":[{"name":"hash","type":"long"},{"name":"bot_id","type":"int"},{"name":"domain","type":"string"},{"name":"browser","type":"string"},{"name":"platform","type":"string"},{"name":"date_created","type":"int"},{"name":"date_active","type":"int"},{"name":"ip","type":"string"},{"name":"region","type":"string"}],"type":"WebAuthorization"},{"id":3981887996,"predicate":"account.webAuthorizations","params":[{"name":"authorizations","type":"Vector"},{"name":"users","type":"Vector"}],"type":"account.WebAuthorizations"},{"id":2792792866,"predicate":"inputMessageID","params":[{"name":"id","type":"int"}],"type":"InputMessage"},{"id":3134751637,"predicate":"inputMessageReplyTo","params":[{"name":"id","type":"int"}],"type":"InputMessage"},{"id":2257003832,"predicate":"inputMessagePinned","params":[],"type":"InputMessage"},{"id":4239064759,"predicate":"inputDialogPeer","params":[{"name":"peer","type":"InputPeer"}],"type":"InputDialogPeer"},{"id":1684014375,"predicate":"inputDialogPeerFolder","params":[{"name":"folder_id","type":"int"}],"type":"InputDialogPeer"},{"id":3849174789,"predicate":"dialogPeer","params":[{"name":"peer","type":"Peer"}],"type":"DialogPeer"},{"id":1363483106,"predicate":"dialogPeerFolder","params":[{"name":"folder_id","type":"int"}],"type":"DialogPeer"},{"id":223655517,"predicate":"messages.foundStickerSetsNotModified","params":[],"type":"messages.FoundStickerSets"},{"id":1359533640,"predicate":"messages.foundStickerSets","params":[{"name":"hash","type":"int"},{"name":"sets","type":"Vector"}],"type":"messages.FoundStickerSets"},{"id":1648543603,"predicate":"fileHash","params":[{"name":"offset","type":"int"},{"name":"limit","type":"int"},{"name":"hash","type":"bytes"}],"type":"FileHash"},{"id":1968737087,"predicate":"inputClientProxy","params":[{"name":"address","type":"string"},{"name":"port","type":"int"}],"type":"InputClientProxy"},{"id":3811614591,"predicate":"help.termsOfServiceUpdateEmpty","params":[{"name":"expires","type":"int"}],"type":"help.TermsOfServiceUpdate"},{"id":686618977,"predicate":"help.termsOfServiceUpdate","params":[{"name":"expires","type":"int"},{"name":"terms_of_service","type":"help.TermsOfService"}],"type":"help.TermsOfServiceUpdate"},{"id":859091184,"predicate":"inputSecureFileUploaded","params":[{"name":"id","type":"long"},{"name":"parts","type":"int"},{"name":"md5_checksum","type":"string"},{"name":"file_hash","type":"bytes"},{"name":"secret","type":"bytes"}],"type":"InputSecureFile"},{"id":1399317950,"predicate":"inputSecureFile","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"}],"type":"InputSecureFile"},{"id":1679398724,"predicate":"secureFileEmpty","params":[],"type":"SecureFile"},{"id":3760683618,"predicate":"secureFile","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"size","type":"int"},{"name":"dc_id","type":"int"},{"name":"date","type":"int"},{"name":"file_hash","type":"bytes"},{"name":"secret","type":"bytes"}],"type":"SecureFile"},{"id":2330640067,"predicate":"secureData","params":[{"name":"data","type":"bytes"},{"name":"data_hash","type":"bytes"},{"name":"secret","type":"bytes"}],"type":"SecureData"},{"id":2103482845,"predicate":"securePlainPhone","params":[{"name":"phone","type":"string"}],"type":"SecurePlainData"},{"id":569137759,"predicate":"securePlainEmail","params":[{"name":"email","type":"string"}],"type":"SecurePlainData"},{"id":2636808675,"predicate":"secureValueTypePersonalDetails","params":[],"type":"SecureValueType"},{"id":1034709504,"predicate":"secureValueTypePassport","params":[],"type":"SecureValueType"},{"id":115615172,"predicate":"secureValueTypeDriverLicense","params":[],"type":"SecureValueType"},{"id":2698015819,"predicate":"secureValueTypeIdentityCard","params":[],"type":"SecureValueType"},{"id":2577698595,"predicate":"secureValueTypeInternalPassport","params":[],"type":"SecureValueType"},{"id":3420659238,"predicate":"secureValueTypeAddress","params":[],"type":"SecureValueType"},{"id":4231435598,"predicate":"secureValueTypeUtilityBill","params":[],"type":"SecureValueType"},{"id":2299755533,"predicate":"secureValueTypeBankStatement","params":[],"type":"SecureValueType"},{"id":2340959368,"predicate":"secureValueTypeRentalAgreement","params":[],"type":"SecureValueType"},{"id":2581823594,"predicate":"secureValueTypePassportRegistration","params":[],"type":"SecureValueType"},{"id":3926060083,"predicate":"secureValueTypeTemporaryRegistration","params":[],"type":"SecureValueType"},{"id":3005262555,"predicate":"secureValueTypePhone","params":[],"type":"SecureValueType"},{"id":2386339822,"predicate":"secureValueTypeEmail","params":[],"type":"SecureValueType"},{"id":411017418,"predicate":"secureValue","params":[{"name":"flags","type":"#"},{"name":"type","type":"SecureValueType"},{"name":"data","type":"flags.0?SecureData"},{"name":"front_side","type":"flags.1?SecureFile"},{"name":"reverse_side","type":"flags.2?SecureFile"},{"name":"selfie","type":"flags.3?SecureFile"},{"name":"translation","type":"flags.6?Vector"},{"name":"files","type":"flags.4?Vector"},{"name":"plain_data","type":"flags.5?SecurePlainData"},{"name":"hash","type":"bytes"}],"type":"SecureValue"},{"id":3676426407,"predicate":"inputSecureValue","params":[{"name":"flags","type":"#"},{"name":"type","type":"SecureValueType"},{"name":"data","type":"flags.0?SecureData"},{"name":"front_side","type":"flags.1?InputSecureFile"},{"name":"reverse_side","type":"flags.2?InputSecureFile"},{"name":"selfie","type":"flags.3?InputSecureFile"},{"name":"translation","type":"flags.6?Vector"},{"name":"files","type":"flags.4?Vector"},{"name":"plain_data","type":"flags.5?SecurePlainData"}],"type":"InputSecureValue"},{"id":3978218928,"predicate":"secureValueHash","params":[{"name":"type","type":"SecureValueType"},{"name":"hash","type":"bytes"}],"type":"SecureValueHash"},{"id":3903065049,"predicate":"secureValueErrorData","params":[{"name":"type","type":"SecureValueType"},{"name":"data_hash","type":"bytes"},{"name":"field","type":"string"},{"name":"text","type":"string"}],"type":"SecureValueError"},{"id":12467706,"predicate":"secureValueErrorFrontSide","params":[{"name":"type","type":"SecureValueType"},{"name":"file_hash","type":"bytes"},{"name":"text","type":"string"}],"type":"SecureValueError"},{"id":2257201829,"predicate":"secureValueErrorReverseSide","params":[{"name":"type","type":"SecureValueType"},{"name":"file_hash","type":"bytes"},{"name":"text","type":"string"}],"type":"SecureValueError"},{"id":3845639894,"predicate":"secureValueErrorSelfie","params":[{"name":"type","type":"SecureValueType"},{"name":"file_hash","type":"bytes"},{"name":"text","type":"string"}],"type":"SecureValueError"},{"id":2054162547,"predicate":"secureValueErrorFile","params":[{"name":"type","type":"SecureValueType"},{"name":"file_hash","type":"bytes"},{"name":"text","type":"string"}],"type":"SecureValueError"},{"id":1717706985,"predicate":"secureValueErrorFiles","params":[{"name":"type","type":"SecureValueType"},{"name":"file_hash","type":"Vector"},{"name":"text","type":"string"}],"type":"SecureValueError"},{"id":2258466191,"predicate":"secureValueError","params":[{"name":"type","type":"SecureValueType"},{"name":"hash","type":"bytes"},{"name":"text","type":"string"}],"type":"SecureValueError"},{"id":2702460784,"predicate":"secureValueErrorTranslationFile","params":[{"name":"type","type":"SecureValueType"},{"name":"file_hash","type":"bytes"},{"name":"text","type":"string"}],"type":"SecureValueError"},{"id":878931416,"predicate":"secureValueErrorTranslationFiles","params":[{"name":"type","type":"SecureValueType"},{"name":"file_hash","type":"Vector"},{"name":"text","type":"string"}],"type":"SecureValueError"},{"id":871426631,"predicate":"secureCredentialsEncrypted","params":[{"name":"data","type":"bytes"},{"name":"hash","type":"bytes"},{"name":"secret","type":"bytes"}],"type":"SecureCredentialsEncrypted"},{"id":2905480408,"predicate":"account.authorizationForm","params":[{"name":"flags","type":"#"},{"name":"required_types","type":"Vector"},{"name":"values","type":"Vector"},{"name":"errors","type":"Vector"},{"name":"users","type":"Vector"},{"name":"privacy_policy_url","type":"flags.0?string"}],"type":"account.AuthorizationForm"},{"id":2166326607,"predicate":"account.sentEmailCode","params":[{"name":"email_pattern","type":"string"},{"name":"length","type":"int"}],"type":"account.SentEmailCode"},{"id":1722786150,"predicate":"help.deepLinkInfoEmpty","params":[],"type":"help.DeepLinkInfo"},{"id":1783556146,"predicate":"help.deepLinkInfo","params":[{"name":"flags","type":"#"},{"name":"update_app","type":"flags.0?true"},{"name":"message","type":"string"},{"name":"entities","type":"flags.1?Vector"}],"type":"help.DeepLinkInfo"},{"id":289586518,"predicate":"savedPhoneContact","params":[{"name":"phone","type":"string"},{"name":"first_name","type":"string"},{"name":"last_name","type":"string"},{"name":"date","type":"int"}],"type":"SavedContact"},{"id":1304052993,"predicate":"account.takeout","params":[{"name":"id","type":"long"}],"type":"account.Takeout"},{"id":3562713238,"predicate":"passwordKdfAlgoUnknown","params":[],"type":"PasswordKdfAlgo"},{"id":982592842,"predicate":"passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow","params":[{"name":"salt1","type":"bytes"},{"name":"salt2","type":"bytes"},{"name":"g","type":"int"},{"name":"p","type":"bytes"}],"type":"PasswordKdfAlgo"},{"id":4883767,"predicate":"securePasswordKdfAlgoUnknown","params":[],"type":"SecurePasswordKdfAlgo"},{"id":3153255840,"predicate":"securePasswordKdfAlgoPBKDF2HMACSHA512iter100000","params":[{"name":"salt","type":"bytes"}],"type":"SecurePasswordKdfAlgo"},{"id":2252807570,"predicate":"securePasswordKdfAlgoSHA512","params":[{"name":"salt","type":"bytes"}],"type":"SecurePasswordKdfAlgo"},{"id":354925740,"predicate":"secureSecretSettings","params":[{"name":"secure_algo","type":"SecurePasswordKdfAlgo"},{"name":"secure_secret","type":"bytes"},{"name":"secure_secret_id","type":"long"}],"type":"SecureSecretSettings"},{"id":2558588504,"predicate":"inputCheckPasswordEmpty","params":[],"type":"InputCheckPasswordSRP"},{"id":3531600002,"predicate":"inputCheckPasswordSRP","params":[{"name":"srp_id","type":"long"},{"name":"A","type":"bytes"},{"name":"M1","type":"bytes"}],"type":"InputCheckPasswordSRP"},{"id":2191366618,"predicate":"secureRequiredType","params":[{"name":"flags","type":"#"},{"name":"native_names","type":"flags.0?true"},{"name":"selfie_required","type":"flags.1?true"},{"name":"translation_required","type":"flags.2?true"},{"name":"type","type":"SecureValueType"}],"type":"SecureRequiredType"},{"id":41187252,"predicate":"secureRequiredTypeOneOf","params":[{"name":"types","type":"Vector"}],"type":"SecureRequiredType"},{"id":3216634967,"predicate":"help.passportConfigNotModified","params":[],"type":"help.PassportConfig"},{"id":2694370991,"predicate":"help.passportConfig","params":[{"name":"hash","type":"int"},{"name":"countries_langs","type":"DataJSON"}],"type":"help.PassportConfig"},{"id":488313413,"predicate":"inputAppEvent","params":[{"name":"time","type":"double"},{"name":"type","type":"string"},{"name":"peer","type":"long"},{"name":"data","type":"JSONValue"}],"type":"InputAppEvent"},{"id":3235781593,"predicate":"jsonObjectValue","params":[{"name":"key","type":"string"},{"name":"value","type":"JSONValue"}],"type":"JSONObjectValue"},{"id":1064139624,"predicate":"jsonNull","params":[],"type":"JSONValue"},{"id":3342098026,"predicate":"jsonBool","params":[{"name":"value","type":"Bool"}],"type":"JSONValue"},{"id":736157604,"predicate":"jsonNumber","params":[{"name":"value","type":"double"}],"type":"JSONValue"},{"id":3072226938,"predicate":"jsonString","params":[{"name":"value","type":"string"}],"type":"JSONValue"},{"id":4148447075,"predicate":"jsonArray","params":[{"name":"value","type":"Vector"}],"type":"JSONValue"},{"id":2579616925,"predicate":"jsonObject","params":[{"name":"value","type":"Vector"}],"type":"JSONValue"},{"id":878078826,"predicate":"pageTableCell","params":[{"name":"flags","type":"#"},{"name":"header","type":"flags.0?true"},{"name":"align_center","type":"flags.3?true"},{"name":"align_right","type":"flags.4?true"},{"name":"valign_middle","type":"flags.5?true"},{"name":"valign_bottom","type":"flags.6?true"},{"name":"text","type":"flags.7?RichText"},{"name":"colspan","type":"flags.1?int"},{"name":"rowspan","type":"flags.2?int"}],"type":"PageTableCell"},{"id":3770729957,"predicate":"pageTableRow","params":[{"name":"cells","type":"Vector"}],"type":"PageTableRow"},{"id":1869903447,"predicate":"pageCaption","params":[{"name":"text","type":"RichText"},{"name":"credit","type":"RichText"}],"type":"PageCaption"},{"id":3106911949,"predicate":"pageListItemText","params":[{"name":"text","type":"RichText"}],"type":"PageListItem"},{"id":635466748,"predicate":"pageListItemBlocks","params":[{"name":"blocks","type":"Vector"}],"type":"PageListItem"},{"id":1577484359,"predicate":"pageListOrderedItemText","params":[{"name":"num","type":"string"},{"name":"text","type":"RichText"}],"type":"PageListOrderedItem"},{"id":2564655414,"predicate":"pageListOrderedItemBlocks","params":[{"name":"num","type":"string"},{"name":"blocks","type":"Vector"}],"type":"PageListOrderedItem"},{"id":3012615176,"predicate":"pageRelatedArticle","params":[{"name":"flags","type":"#"},{"name":"url","type":"string"},{"name":"webpage_id","type":"long"},{"name":"title","type":"flags.0?string"},{"name":"description","type":"flags.1?string"},{"name":"photo_id","type":"flags.2?long"},{"name":"author","type":"flags.3?string"},{"name":"published_date","type":"flags.4?int"}],"type":"PageRelatedArticle"},{"id":2556788493,"predicate":"page","params":[{"name":"flags","type":"#"},{"name":"part","type":"flags.0?true"},{"name":"rtl","type":"flags.1?true"},{"name":"v2","type":"flags.2?true"},{"name":"url","type":"string"},{"name":"blocks","type":"Vector"},{"name":"photos","type":"Vector"},{"name":"documents","type":"Vector"},{"name":"views","type":"flags.3?int"}],"type":"Page"},{"id":2349199817,"predicate":"help.supportName","params":[{"name":"name","type":"string"}],"type":"help.SupportName"},{"id":4088278765,"predicate":"help.userInfoEmpty","params":[],"type":"help.UserInfo"},{"id":32192344,"predicate":"help.userInfo","params":[{"name":"message","type":"string"},{"name":"entities","type":"Vector"},{"name":"author","type":"string"},{"name":"date","type":"int"}],"type":"help.UserInfo"},{"id":1823064809,"predicate":"pollAnswer","params":[{"name":"text","type":"string"},{"name":"option","type":"bytes"}],"type":"PollAnswer"},{"id":2262925665,"predicate":"poll","params":[{"name":"id","type":"long"},{"name":"flags","type":"#"},{"name":"closed","type":"flags.0?true"},{"name":"public_voters","type":"flags.1?true"},{"name":"multiple_choice","type":"flags.2?true"},{"name":"quiz","type":"flags.3?true"},{"name":"question","type":"string"},{"name":"answers","type":"Vector"},{"name":"close_period","type":"flags.4?int"},{"name":"close_date","type":"flags.5?int"}],"type":"Poll"},{"id":997055186,"predicate":"pollAnswerVoters","params":[{"name":"flags","type":"#"},{"name":"chosen","type":"flags.0?true"},{"name":"correct","type":"flags.1?true"},{"name":"option","type":"bytes"},{"name":"voters","type":"int"}],"type":"PollAnswerVoters"},{"id":3135029667,"predicate":"pollResults","params":[{"name":"flags","type":"#"},{"name":"min","type":"flags.0?true"},{"name":"results","type":"flags.1?Vector"},{"name":"total_voters","type":"flags.2?int"},{"name":"recent_voters","type":"flags.3?Vector"},{"name":"solution","type":"flags.4?string"},{"name":"solution_entities","type":"flags.4?Vector"}],"type":"PollResults"},{"id":4030849616,"predicate":"chatOnlines","params":[{"name":"onlines","type":"int"}],"type":"ChatOnlines"},{"id":1202287072,"predicate":"statsURL","params":[{"name":"url","type":"string"}],"type":"StatsURL"},{"id":1605510357,"predicate":"chatAdminRights","params":[{"name":"flags","type":"#"},{"name":"change_info","type":"flags.0?true"},{"name":"post_messages","type":"flags.1?true"},{"name":"edit_messages","type":"flags.2?true"},{"name":"delete_messages","type":"flags.3?true"},{"name":"ban_users","type":"flags.4?true"},{"name":"invite_users","type":"flags.5?true"},{"name":"pin_messages","type":"flags.7?true"},{"name":"add_admins","type":"flags.9?true"}],"type":"ChatAdminRights"},{"id":2668758040,"predicate":"chatBannedRights","params":[{"name":"flags","type":"#"},{"name":"view_messages","type":"flags.0?true"},{"name":"send_messages","type":"flags.1?true"},{"name":"send_media","type":"flags.2?true"},{"name":"send_stickers","type":"flags.3?true"},{"name":"send_gifs","type":"flags.4?true"},{"name":"send_games","type":"flags.5?true"},{"name":"send_inline","type":"flags.6?true"},{"name":"embed_links","type":"flags.7?true"},{"name":"send_polls","type":"flags.8?true"},{"name":"change_info","type":"flags.10?true"},{"name":"invite_users","type":"flags.15?true"},{"name":"pin_messages","type":"flags.17?true"},{"name":"until_date","type":"int"}],"type":"ChatBannedRights"},{"id":3861952889,"predicate":"inputWallPaper","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"}],"type":"InputWallPaper"},{"id":1913199744,"predicate":"inputWallPaperSlug","params":[{"name":"slug","type":"string"}],"type":"InputWallPaper"},{"id":2217196460,"predicate":"inputWallPaperNoFile","params":[],"type":"InputWallPaper"},{"id":471437699,"predicate":"account.wallPapersNotModified","params":[],"type":"account.WallPapers"},{"id":1881892265,"predicate":"account.wallPapers","params":[{"name":"hash","type":"int"},{"name":"wallpapers","type":"Vector"}],"type":"account.WallPapers"},{"id":3737042563,"predicate":"codeSettings","params":[{"name":"flags","type":"#"},{"name":"allow_flashcall","type":"flags.0?true"},{"name":"current_number","type":"flags.1?true"},{"name":"allow_app_hash","type":"flags.4?true"}],"type":"CodeSettings"},{"id":84438264,"predicate":"wallPaperSettings","params":[{"name":"flags","type":"#"},{"name":"blur","type":"flags.1?true"},{"name":"motion","type":"flags.2?true"},{"name":"background_color","type":"flags.0?int"},{"name":"second_background_color","type":"flags.4?int"},{"name":"intensity","type":"flags.3?int"},{"name":"rotation","type":"flags.4?int"}],"type":"WallPaperSettings"},{"id":3762434803,"predicate":"autoDownloadSettings","params":[{"name":"flags","type":"#"},{"name":"disabled","type":"flags.0?true"},{"name":"video_preload_large","type":"flags.1?true"},{"name":"audio_preload_next","type":"flags.2?true"},{"name":"phonecalls_less_data","type":"flags.3?true"},{"name":"photo_size_max","type":"int"},{"name":"video_size_max","type":"int"},{"name":"file_size_max","type":"int"},{"name":"video_upload_maxbitrate","type":"int"}],"type":"AutoDownloadSettings"},{"id":1674235686,"predicate":"account.autoDownloadSettings","params":[{"name":"low","type":"AutoDownloadSettings"},{"name":"medium","type":"AutoDownloadSettings"},{"name":"high","type":"AutoDownloadSettings"}],"type":"account.AutoDownloadSettings"},{"id":3585325561,"predicate":"emojiKeyword","params":[{"name":"keyword","type":"string"},{"name":"emoticons","type":"Vector"}],"type":"EmojiKeyword"},{"id":594408994,"predicate":"emojiKeywordDeleted","params":[{"name":"keyword","type":"string"},{"name":"emoticons","type":"Vector"}],"type":"EmojiKeyword"},{"id":1556570557,"predicate":"emojiKeywordsDifference","params":[{"name":"lang_code","type":"string"},{"name":"from_version","type":"int"},{"name":"version","type":"int"},{"name":"keywords","type":"Vector"}],"type":"EmojiKeywordsDifference"},{"id":2775937949,"predicate":"emojiURL","params":[{"name":"url","type":"string"}],"type":"EmojiURL"},{"id":3019592545,"predicate":"emojiLanguage","params":[{"name":"lang_code","type":"string"}],"type":"EmojiLanguage"},{"id":3162490573,"predicate":"fileLocationToBeDeprecated","params":[{"name":"volume_id","type":"long"},{"name":"local_id","type":"int"}],"type":"FileLocation"},{"id":4283715173,"predicate":"folder","params":[{"name":"flags","type":"#"},{"name":"autofill_new_broadcasts","type":"flags.0?true"},{"name":"autofill_public_groups","type":"flags.1?true"},{"name":"autofill_new_correspondents","type":"flags.2?true"},{"name":"id","type":"int"},{"name":"title","type":"string"},{"name":"photo","type":"flags.3?ChatPhoto"}],"type":"Folder"},{"id":4224893590,"predicate":"inputFolderPeer","params":[{"name":"peer","type":"InputPeer"},{"name":"folder_id","type":"int"}],"type":"InputFolderPeer"},{"id":3921323624,"predicate":"folderPeer","params":[{"name":"peer","type":"Peer"},{"name":"folder_id","type":"int"}],"type":"FolderPeer"},{"id":3896830975,"predicate":"messages.searchCounter","params":[{"name":"flags","type":"#"},{"name":"inexact","type":"flags.1?true"},{"name":"filter","type":"MessagesFilter"},{"name":"count","type":"int"}],"type":"messages.SearchCounter"},{"id":2463316494,"predicate":"urlAuthResultRequest","params":[{"name":"flags","type":"#"},{"name":"request_write_access","type":"flags.0?true"},{"name":"bot","type":"User"},{"name":"domain","type":"string"}],"type":"UrlAuthResult"},{"id":2408320590,"predicate":"urlAuthResultAccepted","params":[{"name":"url","type":"string"}],"type":"UrlAuthResult"},{"id":2849430303,"predicate":"urlAuthResultDefault","params":[],"type":"UrlAuthResult"},{"id":3216354699,"predicate":"channelLocationEmpty","params":[],"type":"ChannelLocation"},{"id":547062491,"predicate":"channelLocation","params":[{"name":"geo_point","type":"GeoPoint"},{"name":"address","type":"string"}],"type":"ChannelLocation"},{"id":3393592157,"predicate":"peerLocated","params":[{"name":"peer","type":"Peer"},{"name":"expires","type":"int"},{"name":"distance","type":"int"}],"type":"PeerLocated"},{"id":4176226379,"predicate":"peerSelfLocated","params":[{"name":"expires","type":"int"}],"type":"PeerLocated"},{"id":3497176244,"predicate":"restrictionReason","params":[{"name":"platform","type":"string"},{"name":"reason","type":"string"},{"name":"text","type":"string"}],"type":"RestrictionReason"},{"id":1012306921,"predicate":"inputTheme","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"}],"type":"InputTheme"},{"id":4119399921,"predicate":"inputThemeSlug","params":[{"name":"slug","type":"string"}],"type":"InputTheme"},{"id":42930452,"predicate":"theme","params":[{"name":"flags","type":"#"},{"name":"creator","type":"flags.0?true"},{"name":"default","type":"flags.1?true"},{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"slug","type":"string"},{"name":"title","type":"string"},{"name":"document","type":"flags.2?Document"},{"name":"settings","type":"flags.3?ThemeSettings"},{"name":"installs_count","type":"int"}],"type":"Theme"},{"id":4095653410,"predicate":"account.themesNotModified","params":[],"type":"account.Themes"},{"id":2137482273,"predicate":"account.themes","params":[{"name":"hash","type":"int"},{"name":"themes","type":"Vector"}],"type":"account.Themes"},{"id":1654593920,"predicate":"auth.loginToken","params":[{"name":"expires","type":"int"},{"name":"token","type":"bytes"}],"type":"auth.LoginToken"},{"id":110008598,"predicate":"auth.loginTokenMigrateTo","params":[{"name":"dc_id","type":"int"},{"name":"token","type":"bytes"}],"type":"auth.LoginToken"},{"id":957176926,"predicate":"auth.loginTokenSuccess","params":[{"name":"authorization","type":"auth.Authorization"}],"type":"auth.LoginToken"},{"id":1474462241,"predicate":"account.contentSettings","params":[{"name":"flags","type":"#"},{"name":"sensitive_enabled","type":"flags.0?true"},{"name":"sensitive_can_change","type":"flags.1?true"}],"type":"account.ContentSettings"},{"id":2837970629,"predicate":"messages.inactiveChats","params":[{"name":"dates","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"messages.InactiveChats"},{"id":3282117730,"predicate":"baseThemeClassic","params":[],"type":"BaseTheme"},{"id":4225242760,"predicate":"baseThemeDay","params":[],"type":"BaseTheme"},{"id":3081969320,"predicate":"baseThemeNight","params":[],"type":"BaseTheme"},{"id":1834973166,"predicate":"baseThemeTinted","params":[],"type":"BaseTheme"},{"id":1527845466,"predicate":"baseThemeArctic","params":[],"type":"BaseTheme"},{"id":3176168657,"predicate":"inputThemeSettings","params":[{"name":"flags","type":"#"},{"name":"base_theme","type":"BaseTheme"},{"name":"accent_color","type":"int"},{"name":"message_top_color","type":"flags.0?int"},{"name":"message_bottom_color","type":"flags.0?int"},{"name":"wallpaper","type":"flags.1?InputWallPaper"},{"name":"wallpaper_settings","type":"flags.1?WallPaperSettings"}],"type":"InputThemeSettings"},{"id":2618595402,"predicate":"themeSettings","params":[{"name":"flags","type":"#"},{"name":"base_theme","type":"BaseTheme"},{"name":"accent_color","type":"int"},{"name":"message_top_color","type":"flags.0?int"},{"name":"message_bottom_color","type":"flags.0?int"},{"name":"wallpaper","type":"flags.1?WallPaper"}],"type":"ThemeSettings"},{"id":1421174295,"predicate":"webPageAttributeTheme","params":[{"name":"flags","type":"#"},{"name":"documents","type":"flags.0?Vector"},{"name":"settings","type":"flags.1?ThemeSettings"}],"type":"WebPageAttribute"},{"id":2727236953,"predicate":"messageUserVote","params":[{"name":"user_id","type":"int"},{"name":"option","type":"bytes"},{"name":"date","type":"int"}],"type":"MessageUserVote"},{"id":909603888,"predicate":"messageUserVoteInputOption","params":[{"name":"user_id","type":"int"},{"name":"date","type":"int"}],"type":"MessageUserVote"},{"id":244310238,"predicate":"messageUserVoteMultiple","params":[{"name":"user_id","type":"int"},{"name":"options","type":"Vector"},{"name":"date","type":"int"}],"type":"MessageUserVote"},{"id":136574537,"predicate":"messages.votesList","params":[{"name":"flags","type":"#"},{"name":"count","type":"int"},{"name":"votes","type":"Vector"},{"name":"users","type":"Vector"},{"name":"next_offset","type":"flags.0?string"}],"type":"messages.VotesList"},{"id":4117234314,"predicate":"bankCardOpenUrl","params":[{"name":"url","type":"string"},{"name":"name","type":"string"}],"type":"BankCardOpenUrl"},{"id":1042605427,"predicate":"payments.bankCardData","params":[{"name":"title","type":"string"},{"name":"open_urls","type":"Vector"}],"type":"payments.BankCardData"},{"id":1949890536,"predicate":"dialogFilter","params":[{"name":"flags","type":"#"},{"name":"contacts","type":"flags.0?true"},{"name":"non_contacts","type":"flags.1?true"},{"name":"groups","type":"flags.2?true"},{"name":"broadcasts","type":"flags.3?true"},{"name":"bots","type":"flags.4?true"},{"name":"exclude_muted","type":"flags.11?true"},{"name":"exclude_read","type":"flags.12?true"},{"name":"exclude_archived","type":"flags.13?true"},{"name":"id","type":"int"},{"name":"title","type":"string"},{"name":"emoticon","type":"flags.25?string"},{"name":"pinned_peers","type":"Vector"},{"name":"include_peers","type":"Vector"},{"name":"exclude_peers","type":"Vector"}],"type":"DialogFilter"},{"id":2004110666,"predicate":"dialogFilterSuggested","params":[{"name":"filter","type":"DialogFilter"},{"name":"description","type":"string"}],"type":"DialogFilterSuggested"},{"id":3057118639,"predicate":"statsDateRangeDays","params":[{"name":"min_date","type":"int"},{"name":"max_date","type":"int"}],"type":"StatsDateRangeDays"},{"id":3410210014,"predicate":"statsAbsValueAndPrev","params":[{"name":"current","type":"double"},{"name":"previous","type":"double"}],"type":"StatsAbsValueAndPrev"},{"id":3419287520,"predicate":"statsPercentValue","params":[{"name":"part","type":"double"},{"name":"total","type":"double"}],"type":"StatsPercentValue"},{"id":1244130093,"predicate":"statsGraphAsync","params":[{"name":"token","type":"string"}],"type":"StatsGraph"},{"id":3202127906,"predicate":"statsGraphError","params":[{"name":"error","type":"string"}],"type":"StatsGraph"},{"id":2393138358,"predicate":"statsGraph","params":[{"name":"flags","type":"#"},{"name":"json","type":"DataJSON"},{"name":"zoom_token","type":"flags.0?string"}],"type":"StatsGraph"},{"id":2907687357,"predicate":"messageInteractionCounters","params":[{"name":"msg_id","type":"int"},{"name":"views","type":"int"},{"name":"forwards","type":"int"}],"type":"MessageInteractionCounters"},{"id":3187114900,"predicate":"stats.broadcastStats","params":[{"name":"period","type":"StatsDateRangeDays"},{"name":"followers","type":"StatsAbsValueAndPrev"},{"name":"views_per_post","type":"StatsAbsValueAndPrev"},{"name":"shares_per_post","type":"StatsAbsValueAndPrev"},{"name":"enabled_notifications","type":"StatsPercentValue"},{"name":"growth_graph","type":"StatsGraph"},{"name":"followers_graph","type":"StatsGraph"},{"name":"mute_graph","type":"StatsGraph"},{"name":"top_hours_graph","type":"StatsGraph"},{"name":"interactions_graph","type":"StatsGraph"},{"name":"iv_interactions_graph","type":"StatsGraph"},{"name":"views_by_source_graph","type":"StatsGraph"},{"name":"new_followers_by_source_graph","type":"StatsGraph"},{"name":"languages_graph","type":"StatsGraph"},{"name":"recent_message_interactions","type":"Vector"}],"type":"stats.BroadcastStats"},{"id":2566302837,"predicate":"help.promoDataEmpty","params":[{"name":"expires","type":"int"}],"type":"help.PromoData"},{"id":2352576831,"predicate":"help.promoData","params":[{"name":"flags","type":"#"},{"name":"proxy","type":"flags.0?true"},{"name":"expires","type":"int"},{"name":"peer","type":"Peer"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"},{"name":"psa_type","type":"flags.1?string"},{"name":"psa_message","type":"flags.2?string"}],"type":"help.PromoData"}],"methods":[{"id":3416209197,"method":"invokeAfterMsg","params":[{"name":"msg_id","type":"long"},{"name":"query","type":"!X"}],"type":"X"},{"id":1036301552,"method":"invokeAfterMsgs","params":[{"name":"msg_ids","type":"Vector"},{"name":"query","type":"!X"}],"type":"X"},{"id":3251461801,"method":"initConnection","params":[{"name":"flags","type":"#"},{"name":"api_id","type":"int"},{"name":"device_model","type":"string"},{"name":"system_version","type":"string"},{"name":"app_version","type":"string"},{"name":"system_lang_code","type":"string"},{"name":"lang_pack","type":"string"},{"name":"lang_code","type":"string"},{"name":"proxy","type":"flags.0?InputClientProxy"},{"name":"params","type":"flags.1?JSONValue"},{"name":"query","type":"!X"}],"type":"X"},{"id":3667594509,"method":"invokeWithLayer","params":[{"name":"layer","type":"int"},{"name":"query","type":"!X"}],"type":"X"},{"id":3214170551,"method":"invokeWithoutUpdates","params":[{"name":"query","type":"!X"}],"type":"X"},{"id":911373810,"method":"invokeWithMessagesRange","params":[{"name":"range","type":"MessageRange"},{"name":"query","type":"!X"}],"type":"X"},{"id":2896821550,"method":"invokeWithTakeout","params":[{"name":"takeout_id","type":"long"},{"name":"query","type":"!X"}],"type":"X"},{"id":2792825935,"method":"auth.sendCode","params":[{"name":"phone_number","type":"string"},{"name":"api_id","type":"int"},{"name":"api_hash","type":"string"},{"name":"settings","type":"CodeSettings"}],"type":"auth.SentCode"},{"id":2163139623,"method":"auth.signUp","params":[{"name":"phone_number","type":"string"},{"name":"phone_code_hash","type":"string"},{"name":"first_name","type":"string"},{"name":"last_name","type":"string"}],"type":"auth.Authorization"},{"id":3168081281,"method":"auth.signIn","params":[{"name":"phone_number","type":"string"},{"name":"phone_code_hash","type":"string"},{"name":"phone_code","type":"string"}],"type":"auth.Authorization"},{"id":1461180992,"method":"auth.logOut","params":[],"type":"Bool"},{"id":2678787354,"method":"auth.resetAuthorizations","params":[],"type":"Bool"},{"id":3854565325,"method":"auth.exportAuthorization","params":[{"name":"dc_id","type":"int"}],"type":"auth.ExportedAuthorization"},{"id":3824129555,"method":"auth.importAuthorization","params":[{"name":"id","type":"int"},{"name":"bytes","type":"bytes"}],"type":"auth.Authorization"},{"id":3453233669,"method":"auth.bindTempAuthKey","params":[{"name":"perm_auth_key_id","type":"long"},{"name":"nonce","type":"long"},{"name":"expires_at","type":"int"},{"name":"encrypted_message","type":"bytes"}],"type":"Bool"},{"id":1738800940,"method":"auth.importBotAuthorization","params":[{"name":"flags","type":"int"},{"name":"api_id","type":"int"},{"name":"api_hash","type":"string"},{"name":"bot_auth_token","type":"string"}],"type":"auth.Authorization"},{"id":3515567382,"method":"auth.checkPassword","params":[{"name":"password","type":"InputCheckPasswordSRP"}],"type":"auth.Authorization"},{"id":3633822822,"method":"auth.requestPasswordRecovery","params":[],"type":"auth.PasswordRecovery"},{"id":1319464594,"method":"auth.recoverPassword","params":[{"name":"code","type":"string"}],"type":"auth.Authorization"},{"id":1056025023,"method":"auth.resendCode","params":[{"name":"phone_number","type":"string"},{"name":"phone_code_hash","type":"string"}],"type":"auth.SentCode"},{"id":520357240,"method":"auth.cancelCode","params":[{"name":"phone_number","type":"string"},{"name":"phone_code_hash","type":"string"}],"type":"Bool"},{"id":2387124616,"method":"auth.dropTempAuthKeys","params":[{"name":"except_auth_keys","type":"Vector"}],"type":"Bool"},{"id":2981369111,"method":"auth.exportLoginToken","params":[{"name":"api_id","type":"int"},{"name":"api_hash","type":"string"},{"name":"except_ids","type":"Vector"}],"type":"auth.LoginToken"},{"id":2511101156,"method":"auth.importLoginToken","params":[{"name":"token","type":"bytes"}],"type":"auth.LoginToken"},{"id":3902057805,"method":"auth.acceptLoginToken","params":[{"name":"token","type":"bytes"}],"type":"Authorization"},{"id":1754754159,"method":"account.registerDevice","params":[{"name":"flags","type":"#"},{"name":"no_muted","type":"flags.0?true"},{"name":"token_type","type":"int"},{"name":"token","type":"string"},{"name":"app_sandbox","type":"Bool"},{"name":"secret","type":"bytes"},{"name":"other_uids","type":"Vector"}],"type":"Bool"},{"id":813089983,"method":"account.unregisterDevice","params":[{"name":"token_type","type":"int"},{"name":"token","type":"string"},{"name":"other_uids","type":"Vector"}],"type":"Bool"},{"id":2227067795,"method":"account.updateNotifySettings","params":[{"name":"peer","type":"InputNotifyPeer"},{"name":"settings","type":"InputPeerNotifySettings"}],"type":"Bool"},{"id":313765169,"method":"account.getNotifySettings","params":[{"name":"peer","type":"InputNotifyPeer"}],"type":"PeerNotifySettings"},{"id":3682473799,"method":"account.resetNotifySettings","params":[],"type":"Bool"},{"id":2018596725,"method":"account.updateProfile","params":[{"name":"flags","type":"#"},{"name":"first_name","type":"flags.0?string"},{"name":"last_name","type":"flags.1?string"},{"name":"about","type":"flags.2?string"}],"type":"User"},{"id":1713919532,"method":"account.updateStatus","params":[{"name":"offline","type":"Bool"}],"type":"Bool"},{"id":2864387939,"method":"account.getWallPapers","params":[{"name":"hash","type":"int"}],"type":"account.WallPapers"},{"id":2920848735,"method":"account.reportPeer","params":[{"name":"peer","type":"InputPeer"},{"name":"reason","type":"ReportReason"}],"type":"Bool"},{"id":655677548,"method":"account.checkUsername","params":[{"name":"username","type":"string"}],"type":"Bool"},{"id":1040964988,"method":"account.updateUsername","params":[{"name":"username","type":"string"}],"type":"User"},{"id":3671837008,"method":"account.getPrivacy","params":[{"name":"key","type":"InputPrivacyKey"}],"type":"account.PrivacyRules"},{"id":3388480744,"method":"account.setPrivacy","params":[{"name":"key","type":"InputPrivacyKey"},{"name":"rules","type":"Vector"}],"type":"account.PrivacyRules"},{"id":1099779595,"method":"account.deleteAccount","params":[{"name":"reason","type":"string"}],"type":"Bool"},{"id":150761757,"method":"account.getAccountTTL","params":[],"type":"AccountDaysTTL"},{"id":608323678,"method":"account.setAccountTTL","params":[{"name":"ttl","type":"AccountDaysTTL"}],"type":"Bool"},{"id":2186758885,"method":"account.sendChangePhoneCode","params":[{"name":"phone_number","type":"string"},{"name":"settings","type":"CodeSettings"}],"type":"auth.SentCode"},{"id":1891839707,"method":"account.changePhone","params":[{"name":"phone_number","type":"string"},{"name":"phone_code_hash","type":"string"},{"name":"phone_code","type":"string"}],"type":"User"},{"id":954152242,"method":"account.updateDeviceLocked","params":[{"name":"period","type":"int"}],"type":"Bool"},{"id":3810574680,"method":"account.getAuthorizations","params":[],"type":"account.Authorizations"},{"id":3749180348,"method":"account.resetAuthorization","params":[{"name":"hash","type":"long"}],"type":"Bool"},{"id":1418342645,"method":"account.getPassword","params":[],"type":"account.Password"},{"id":2631199481,"method":"account.getPasswordSettings","params":[{"name":"password","type":"InputCheckPasswordSRP"}],"type":"account.PasswordSettings"},{"id":2778402863,"method":"account.updatePasswordSettings","params":[{"name":"password","type":"InputCheckPasswordSRP"},{"name":"new_settings","type":"account.PasswordInputSettings"}],"type":"Bool"},{"id":457157256,"method":"account.sendConfirmPhoneCode","params":[{"name":"hash","type":"string"},{"name":"settings","type":"CodeSettings"}],"type":"auth.SentCode"},{"id":1596029123,"method":"account.confirmPhone","params":[{"name":"phone_code_hash","type":"string"},{"name":"phone_code","type":"string"}],"type":"Bool"},{"id":1151208273,"method":"account.getTmpPassword","params":[{"name":"password","type":"InputCheckPasswordSRP"},{"name":"period","type":"int"}],"type":"account.TmpPassword"},{"id":405695855,"method":"account.getWebAuthorizations","params":[],"type":"account.WebAuthorizations"},{"id":755087855,"method":"account.resetWebAuthorization","params":[{"name":"hash","type":"long"}],"type":"Bool"},{"id":1747789204,"method":"account.resetWebAuthorizations","params":[],"type":"Bool"},{"id":2995305597,"method":"account.getAllSecureValues","params":[],"type":"Vector"},{"id":1936088002,"method":"account.getSecureValue","params":[{"name":"types","type":"Vector"}],"type":"Vector"},{"id":2308956957,"method":"account.saveSecureValue","params":[{"name":"value","type":"InputSecureValue"},{"name":"secure_secret_id","type":"long"}],"type":"SecureValue"},{"id":3095444555,"method":"account.deleteSecureValue","params":[{"name":"types","type":"Vector"}],"type":"Bool"},{"id":3094063329,"method":"account.getAuthorizationForm","params":[{"name":"bot_id","type":"int"},{"name":"scope","type":"string"},{"name":"public_key","type":"string"}],"type":"account.AuthorizationForm"},{"id":3875699860,"method":"account.acceptAuthorization","params":[{"name":"bot_id","type":"int"},{"name":"scope","type":"string"},{"name":"public_key","type":"string"},{"name":"value_hashes","type":"Vector"},{"name":"credentials","type":"SecureCredentialsEncrypted"}],"type":"Bool"},{"id":2778945273,"method":"account.sendVerifyPhoneCode","params":[{"name":"phone_number","type":"string"},{"name":"settings","type":"CodeSettings"}],"type":"auth.SentCode"},{"id":1305716726,"method":"account.verifyPhone","params":[{"name":"phone_number","type":"string"},{"name":"phone_code_hash","type":"string"},{"name":"phone_code","type":"string"}],"type":"Bool"},{"id":1880182943,"method":"account.sendVerifyEmailCode","params":[{"name":"email","type":"string"}],"type":"account.SentEmailCode"},{"id":3971627483,"method":"account.verifyEmail","params":[{"name":"email","type":"string"},{"name":"code","type":"string"}],"type":"Bool"},{"id":4032514052,"method":"account.initTakeoutSession","params":[{"name":"flags","type":"#"},{"name":"contacts","type":"flags.0?true"},{"name":"message_users","type":"flags.1?true"},{"name":"message_chats","type":"flags.2?true"},{"name":"message_megagroups","type":"flags.3?true"},{"name":"message_channels","type":"flags.4?true"},{"name":"files","type":"flags.5?true"},{"name":"file_max_size","type":"flags.5?int"}],"type":"account.Takeout"},{"id":489050862,"method":"account.finishTakeoutSession","params":[{"name":"flags","type":"#"},{"name":"success","type":"flags.0?true"}],"type":"Bool"},{"id":2413762848,"method":"account.confirmPasswordEmail","params":[{"name":"code","type":"string"}],"type":"Bool"},{"id":2055154197,"method":"account.resendPasswordEmail","params":[],"type":"Bool"},{"id":3251361206,"method":"account.cancelPasswordEmail","params":[],"type":"Bool"},{"id":2668087080,"method":"account.getContactSignUpNotification","params":[],"type":"Bool"},{"id":3488890721,"method":"account.setContactSignUpNotification","params":[{"name":"silent","type":"Bool"}],"type":"Bool"},{"id":1398240377,"method":"account.getNotifyExceptions","params":[{"name":"flags","type":"#"},{"name":"compare_sound","type":"flags.1?true"},{"name":"peer","type":"flags.0?InputNotifyPeer"}],"type":"Updates"},{"id":4237155306,"method":"account.getWallPaper","params":[{"name":"wallpaper","type":"InputWallPaper"}],"type":"WallPaper"},{"id":3716494945,"method":"account.uploadWallPaper","params":[{"name":"file","type":"InputFile"},{"name":"mime_type","type":"string"},{"name":"settings","type":"WallPaperSettings"}],"type":"WallPaper"},{"id":1817860919,"method":"account.saveWallPaper","params":[{"name":"wallpaper","type":"InputWallPaper"},{"name":"unsave","type":"Bool"},{"name":"settings","type":"WallPaperSettings"}],"type":"Bool"},{"id":4276967273,"method":"account.installWallPaper","params":[{"name":"wallpaper","type":"InputWallPaper"},{"name":"settings","type":"WallPaperSettings"}],"type":"Bool"},{"id":3141244932,"method":"account.resetWallPapers","params":[],"type":"Bool"},{"id":1457130303,"method":"account.getAutoDownloadSettings","params":[],"type":"account.AutoDownloadSettings"},{"id":1995661875,"method":"account.saveAutoDownloadSettings","params":[{"name":"flags","type":"#"},{"name":"low","type":"flags.0?true"},{"name":"high","type":"flags.1?true"},{"name":"settings","type":"AutoDownloadSettings"}],"type":"Bool"},{"id":473805619,"method":"account.uploadTheme","params":[{"name":"flags","type":"#"},{"name":"file","type":"InputFile"},{"name":"thumb","type":"flags.0?InputFile"},{"name":"file_name","type":"string"},{"name":"mime_type","type":"string"}],"type":"Document"},{"id":2217919007,"method":"account.createTheme","params":[{"name":"flags","type":"#"},{"name":"slug","type":"string"},{"name":"title","type":"string"},{"name":"document","type":"flags.2?InputDocument"},{"name":"settings","type":"flags.3?InputThemeSettings"}],"type":"Theme"},{"id":1555261397,"method":"account.updateTheme","params":[{"name":"flags","type":"#"},{"name":"format","type":"string"},{"name":"theme","type":"InputTheme"},{"name":"slug","type":"flags.0?string"},{"name":"title","type":"flags.1?string"},{"name":"document","type":"flags.2?InputDocument"},{"name":"settings","type":"flags.3?InputThemeSettings"}],"type":"Theme"},{"id":4065792108,"method":"account.saveTheme","params":[{"name":"theme","type":"InputTheme"},{"name":"unsave","type":"Bool"}],"type":"Bool"},{"id":2061776695,"method":"account.installTheme","params":[{"name":"flags","type":"#"},{"name":"dark","type":"flags.0?true"},{"name":"format","type":"flags.1?string"},{"name":"theme","type":"flags.1?InputTheme"}],"type":"Bool"},{"id":2375906347,"method":"account.getTheme","params":[{"name":"format","type":"string"},{"name":"theme","type":"InputTheme"},{"name":"document_id","type":"long"}],"type":"Theme"},{"id":676939512,"method":"account.getThemes","params":[{"name":"format","type":"string"},{"name":"hash","type":"int"}],"type":"account.Themes"},{"id":3044323691,"method":"account.setContentSettings","params":[{"name":"flags","type":"#"},{"name":"sensitive_enabled","type":"flags.0?true"}],"type":"Bool"},{"id":2342210990,"method":"account.getContentSettings","params":[],"type":"account.ContentSettings"},{"id":1705865692,"method":"account.getMultiWallPapers","params":[{"name":"wallpapers","type":"Vector"}],"type":"Vector"},{"id":227648840,"method":"users.getUsers","params":[{"name":"id","type":"Vector"}],"type":"Vector"},{"id":3392185777,"method":"users.getFullUser","params":[{"name":"id","type":"InputUser"}],"type":"UserFull"},{"id":2429064373,"method":"users.setSecureValueErrors","params":[{"name":"id","type":"InputUser"},{"name":"errors","type":"Vector"}],"type":"Bool"},{"id":749357634,"method":"contacts.getContactIDs","params":[{"name":"hash","type":"int"}],"type":"Vector"},{"id":3299038190,"method":"contacts.getStatuses","params":[],"type":"Vector"},{"id":3223553183,"method":"contacts.getContacts","params":[{"name":"hash","type":"int"}],"type":"contacts.Contacts"},{"id":746589157,"method":"contacts.importContacts","params":[{"name":"contacts","type":"Vector"}],"type":"contacts.ImportedContacts"},{"id":157945344,"method":"contacts.deleteContacts","params":[{"name":"id","type":"Vector"}],"type":"Updates"},{"id":269745566,"method":"contacts.deleteByPhones","params":[{"name":"phones","type":"Vector"}],"type":"Bool"},{"id":858475004,"method":"contacts.block","params":[{"name":"id","type":"InputUser"}],"type":"Bool"},{"id":3846242493,"method":"contacts.unblock","params":[{"name":"id","type":"InputUser"}],"type":"Bool"},{"id":4118557967,"method":"contacts.getBlocked","params":[{"name":"offset","type":"int"},{"name":"limit","type":"int"}],"type":"contacts.Blocked"},{"id":301470424,"method":"contacts.search","params":[{"name":"q","type":"string"},{"name":"limit","type":"int"}],"type":"contacts.Found"},{"id":4181511075,"method":"contacts.resolveUsername","params":[{"name":"username","type":"string"}],"type":"contacts.ResolvedPeer"},{"id":3566742965,"method":"contacts.getTopPeers","params":[{"name":"flags","type":"#"},{"name":"correspondents","type":"flags.0?true"},{"name":"bots_pm","type":"flags.1?true"},{"name":"bots_inline","type":"flags.2?true"},{"name":"phone_calls","type":"flags.3?true"},{"name":"forward_users","type":"flags.4?true"},{"name":"forward_chats","type":"flags.5?true"},{"name":"groups","type":"flags.10?true"},{"name":"channels","type":"flags.15?true"},{"name":"offset","type":"int"},{"name":"limit","type":"int"},{"name":"hash","type":"int"}],"type":"contacts.TopPeers"},{"id":451113900,"method":"contacts.resetTopPeerRating","params":[{"name":"category","type":"TopPeerCategory"},{"name":"peer","type":"InputPeer"}],"type":"Bool"},{"id":2274703345,"method":"contacts.resetSaved","params":[],"type":"Bool"},{"id":2196890527,"method":"contacts.getSaved","params":[],"type":"Vector"},{"id":2232729050,"method":"contacts.toggleTopPeers","params":[{"name":"enabled","type":"Bool"}],"type":"Bool"},{"id":3908330448,"method":"contacts.addContact","params":[{"name":"flags","type":"#"},{"name":"add_phone_privacy_exception","type":"flags.0?true"},{"name":"id","type":"InputUser"},{"name":"first_name","type":"string"},{"name":"last_name","type":"string"},{"name":"phone","type":"string"}],"type":"Updates"},{"id":4164002319,"method":"contacts.acceptContact","params":[{"name":"id","type":"InputUser"}],"type":"Updates"},{"id":3544759364,"method":"contacts.getLocated","params":[{"name":"flags","type":"#"},{"name":"background","type":"flags.1?true"},{"name":"geo_point","type":"InputGeoPoint"},{"name":"self_expires","type":"flags.0?int"}],"type":"Updates"},{"id":1673946374,"method":"messages.getMessages","params":[{"name":"id","type":"Vector"}],"type":"messages.Messages"},{"id":2699967347,"method":"messages.getDialogs","params":[{"name":"flags","type":"#"},{"name":"exclude_pinned","type":"flags.0?true"},{"name":"folder_id","type":"flags.1?int"},{"name":"offset_date","type":"int"},{"name":"offset_id","type":"int"},{"name":"offset_peer","type":"InputPeer"},{"name":"limit","type":"int"},{"name":"hash","type":"int"}],"type":"messages.Dialogs"},{"id":3703276128,"method":"messages.getHistory","params":[{"name":"peer","type":"InputPeer"},{"name":"offset_id","type":"int"},{"name":"offset_date","type":"int"},{"name":"add_offset","type":"int"},{"name":"limit","type":"int"},{"name":"max_id","type":"int"},{"name":"min_id","type":"int"},{"name":"hash","type":"int"}],"type":"messages.Messages"},{"id":2249518952,"method":"messages.search","params":[{"name":"flags","type":"#"},{"name":"peer","type":"InputPeer"},{"name":"q","type":"string"},{"name":"from_id","type":"flags.0?InputUser"},{"name":"filter","type":"MessagesFilter"},{"name":"min_date","type":"int"},{"name":"max_date","type":"int"},{"name":"offset_id","type":"int"},{"name":"add_offset","type":"int"},{"name":"limit","type":"int"},{"name":"max_id","type":"int"},{"name":"min_id","type":"int"},{"name":"hash","type":"int"}],"type":"messages.Messages"},{"id":238054714,"method":"messages.readHistory","params":[{"name":"peer","type":"InputPeer"},{"name":"max_id","type":"int"}],"type":"messages.AffectedMessages"},{"id":469850889,"method":"messages.deleteHistory","params":[{"name":"flags","type":"#"},{"name":"just_clear","type":"flags.0?true"},{"name":"revoke","type":"flags.1?true"},{"name":"peer","type":"InputPeer"},{"name":"max_id","type":"int"}],"type":"messages.AffectedHistory"},{"id":3851326930,"method":"messages.deleteMessages","params":[{"name":"flags","type":"#"},{"name":"revoke","type":"flags.0?true"},{"name":"id","type":"Vector"}],"type":"messages.AffectedMessages"},{"id":94983360,"method":"messages.receivedMessages","params":[{"name":"max_id","type":"int"}],"type":"Vector"},{"id":2743230032,"method":"messages.setTyping","params":[{"name":"peer","type":"InputPeer"},{"name":"action","type":"SendMessageAction"}],"type":"Bool"},{"id":1376532592,"method":"messages.sendMessage","params":[{"name":"flags","type":"#"},{"name":"no_webpage","type":"flags.1?true"},{"name":"silent","type":"flags.5?true"},{"name":"background","type":"flags.6?true"},{"name":"clear_draft","type":"flags.7?true"},{"name":"peer","type":"InputPeer"},{"name":"reply_to_msg_id","type":"flags.0?int"},{"name":"message","type":"string"},{"name":"random_id","type":"long"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"},{"name":"entities","type":"flags.3?Vector"},{"name":"schedule_date","type":"flags.10?int"}],"type":"Updates"},{"id":881978281,"method":"messages.sendMedia","params":[{"name":"flags","type":"#"},{"name":"silent","type":"flags.5?true"},{"name":"background","type":"flags.6?true"},{"name":"clear_draft","type":"flags.7?true"},{"name":"peer","type":"InputPeer"},{"name":"reply_to_msg_id","type":"flags.0?int"},{"name":"media","type":"InputMedia"},{"name":"message","type":"string"},{"name":"random_id","type":"long"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"},{"name":"entities","type":"flags.3?Vector"},{"name":"schedule_date","type":"flags.10?int"}],"type":"Updates"},{"id":3657360910,"method":"messages.forwardMessages","params":[{"name":"flags","type":"#"},{"name":"silent","type":"flags.5?true"},{"name":"background","type":"flags.6?true"},{"name":"with_my_score","type":"flags.8?true"},{"name":"grouped","type":"flags.9?true"},{"name":"from_peer","type":"InputPeer"},{"name":"id","type":"Vector"},{"name":"random_id","type":"Vector"},{"name":"to_peer","type":"InputPeer"},{"name":"schedule_date","type":"flags.10?int"}],"type":"Updates"},{"id":3474297563,"method":"messages.reportSpam","params":[{"name":"peer","type":"InputPeer"}],"type":"Bool"},{"id":913498268,"method":"messages.getPeerSettings","params":[{"name":"peer","type":"InputPeer"}],"type":"PeerSettings"},{"id":3179460184,"method":"messages.report","params":[{"name":"peer","type":"InputPeer"},{"name":"id","type":"Vector"},{"name":"reason","type":"ReportReason"}],"type":"Bool"},{"id":1013621127,"method":"messages.getChats","params":[{"name":"id","type":"Vector"}],"type":"messages.Chats"},{"id":998448230,"method":"messages.getFullChat","params":[{"name":"chat_id","type":"int"}],"type":"messages.ChatFull"},{"id":3695519829,"method":"messages.editChatTitle","params":[{"name":"chat_id","type":"int"},{"name":"title","type":"string"}],"type":"Updates"},{"id":3394009560,"method":"messages.editChatPhoto","params":[{"name":"chat_id","type":"int"},{"name":"photo","type":"InputChatPhoto"}],"type":"Updates"},{"id":4188056073,"method":"messages.addChatUser","params":[{"name":"chat_id","type":"int"},{"name":"user_id","type":"InputUser"},{"name":"fwd_limit","type":"int"}],"type":"Updates"},{"id":3764461334,"method":"messages.deleteChatUser","params":[{"name":"chat_id","type":"int"},{"name":"user_id","type":"InputUser"}],"type":"Updates"},{"id":164303470,"method":"messages.createChat","params":[{"name":"users","type":"Vector"},{"name":"title","type":"string"}],"type":"Updates"},{"id":651135312,"method":"messages.getDhConfig","params":[{"name":"version","type":"int"},{"name":"random_length","type":"int"}],"type":"messages.DhConfig"},{"id":4132286275,"method":"messages.requestEncryption","params":[{"name":"user_id","type":"InputUser"},{"name":"random_id","type":"int"},{"name":"g_a","type":"bytes"}],"type":"EncryptedChat"},{"id":1035731989,"method":"messages.acceptEncryption","params":[{"name":"peer","type":"InputEncryptedChat"},{"name":"g_b","type":"bytes"},{"name":"key_fingerprint","type":"long"}],"type":"EncryptedChat"},{"id":3990430661,"method":"messages.discardEncryption","params":[{"name":"chat_id","type":"int"}],"type":"Bool"},{"id":2031374829,"method":"messages.setEncryptedTyping","params":[{"name":"peer","type":"InputEncryptedChat"},{"name":"typing","type":"Bool"}],"type":"Bool"},{"id":2135648522,"method":"messages.readEncryptedHistory","params":[{"name":"peer","type":"InputEncryptedChat"},{"name":"max_date","type":"int"}],"type":"Bool"},{"id":2843174771,"method":"messages.sendEncrypted","params":[{"name":"peer","type":"InputEncryptedChat"},{"name":"random_id","type":"long"},{"name":"data","type":"bytes"}],"type":"messages.SentEncryptedMessage"},{"id":2593135462,"method":"messages.sendEncryptedFile","params":[{"name":"peer","type":"InputEncryptedChat"},{"name":"random_id","type":"long"},{"name":"data","type":"bytes"},{"name":"file","type":"InputEncryptedFile"}],"type":"messages.SentEncryptedMessage"},{"id":852769188,"method":"messages.sendEncryptedService","params":[{"name":"peer","type":"InputEncryptedChat"},{"name":"random_id","type":"long"},{"name":"data","type":"bytes"}],"type":"messages.SentEncryptedMessage"},{"id":1436924774,"method":"messages.receivedQueue","params":[{"name":"max_qts","type":"int"}],"type":"Vector"},{"id":1259113487,"method":"messages.reportEncryptedSpam","params":[{"name":"peer","type":"InputEncryptedChat"}],"type":"Bool"},{"id":916930423,"method":"messages.readMessageContents","params":[{"name":"id","type":"Vector"}],"type":"messages.AffectedMessages"},{"id":71126828,"method":"messages.getStickers","params":[{"name":"emoticon","type":"string"},{"name":"hash","type":"int"}],"type":"messages.Stickers"},{"id":479598769,"method":"messages.getAllStickers","params":[{"name":"hash","type":"int"}],"type":"messages.AllStickers"},{"id":2338894028,"method":"messages.getWebPagePreview","params":[{"name":"flags","type":"#"},{"name":"message","type":"string"},{"name":"entities","type":"flags.3?Vector"}],"type":"MessageMedia"},{"id":234312524,"method":"messages.exportChatInvite","params":[{"name":"peer","type":"InputPeer"}],"type":"ExportedChatInvite"},{"id":1051570619,"method":"messages.checkChatInvite","params":[{"name":"hash","type":"string"}],"type":"ChatInvite"},{"id":1817183516,"method":"messages.importChatInvite","params":[{"name":"hash","type":"string"}],"type":"Updates"},{"id":639215886,"method":"messages.getStickerSet","params":[{"name":"stickerset","type":"InputStickerSet"}],"type":"messages.StickerSet"},{"id":3348096096,"method":"messages.installStickerSet","params":[{"name":"stickerset","type":"InputStickerSet"},{"name":"archived","type":"Bool"}],"type":"messages.StickerSetInstallResult"},{"id":4184757726,"method":"messages.uninstallStickerSet","params":[{"name":"stickerset","type":"InputStickerSet"}],"type":"Bool"},{"id":3873403768,"method":"messages.startBot","params":[{"name":"bot","type":"InputUser"},{"name":"peer","type":"InputPeer"},{"name":"random_id","type":"long"},{"name":"start_param","type":"string"}],"type":"Updates"},{"id":3301483869,"method":"messages.getMessagesViews","params":[{"name":"peer","type":"InputPeer"},{"name":"id","type":"Vector"},{"name":"increment","type":"Bool"}],"type":"Vector"},{"id":2850463534,"method":"messages.editChatAdmin","params":[{"name":"chat_id","type":"int"},{"name":"user_id","type":"InputUser"},{"name":"is_admin","type":"Bool"}],"type":"Bool"},{"id":363051235,"method":"messages.migrateChat","params":[{"name":"chat_id","type":"int"}],"type":"Updates"},{"id":3211928996,"method":"messages.searchGlobal","params":[{"name":"flags","type":"#"},{"name":"folder_id","type":"flags.0?int"},{"name":"q","type":"string"},{"name":"offset_rate","type":"int"},{"name":"offset_peer","type":"InputPeer"},{"name":"offset_id","type":"int"},{"name":"limit","type":"int"}],"type":"messages.Messages"},{"id":2016638777,"method":"messages.reorderStickerSets","params":[{"name":"flags","type":"#"},{"name":"masks","type":"flags.0?true"},{"name":"order","type":"Vector"}],"type":"Bool"},{"id":864953444,"method":"messages.getDocumentByHash","params":[{"name":"sha256","type":"bytes"},{"name":"size","type":"int"},{"name":"mime_type","type":"string"}],"type":"Document"},{"id":3214571371,"method":"messages.searchGifs","params":[{"name":"q","type":"string"},{"name":"offset","type":"int"}],"type":"messages.FoundGifs"},{"id":2210348370,"method":"messages.getSavedGifs","params":[{"name":"hash","type":"int"}],"type":"messages.SavedGifs"},{"id":846868683,"method":"messages.saveGif","params":[{"name":"id","type":"InputDocument"},{"name":"unsave","type":"Bool"}],"type":"Bool"},{"id":1364105629,"method":"messages.getInlineBotResults","params":[{"name":"flags","type":"#"},{"name":"bot","type":"InputUser"},{"name":"peer","type":"InputPeer"},{"name":"geo_point","type":"flags.0?InputGeoPoint"},{"name":"query","type":"string"},{"name":"offset","type":"string"}],"type":"messages.BotResults"},{"id":3948847622,"method":"messages.setInlineBotResults","params":[{"name":"flags","type":"#"},{"name":"gallery","type":"flags.0?true"},{"name":"private","type":"flags.1?true"},{"name":"query_id","type":"long"},{"name":"results","type":"Vector"},{"name":"cache_time","type":"int"},{"name":"next_offset","type":"flags.2?string"},{"name":"switch_pm","type":"flags.3?InlineBotSwitchPM"}],"type":"Bool"},{"id":570955184,"method":"messages.sendInlineBotResult","params":[{"name":"flags","type":"#"},{"name":"silent","type":"flags.5?true"},{"name":"background","type":"flags.6?true"},{"name":"clear_draft","type":"flags.7?true"},{"name":"hide_via","type":"flags.11?true"},{"name":"peer","type":"InputPeer"},{"name":"reply_to_msg_id","type":"flags.0?int"},{"name":"random_id","type":"long"},{"name":"query_id","type":"long"},{"name":"id","type":"string"},{"name":"schedule_date","type":"flags.10?int"}],"type":"Updates"},{"id":4255550774,"method":"messages.getMessageEditData","params":[{"name":"peer","type":"InputPeer"},{"name":"id","type":"int"}],"type":"messages.MessageEditData"},{"id":1224152952,"method":"messages.editMessage","params":[{"name":"flags","type":"#"},{"name":"no_webpage","type":"flags.1?true"},{"name":"peer","type":"InputPeer"},{"name":"id","type":"int"},{"name":"message","type":"flags.11?string"},{"name":"media","type":"flags.14?InputMedia"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"},{"name":"entities","type":"flags.3?Vector"},{"name":"schedule_date","type":"flags.15?int"}],"type":"Updates"},{"id":2203418042,"method":"messages.editInlineBotMessage","params":[{"name":"flags","type":"#"},{"name":"no_webpage","type":"flags.1?true"},{"name":"id","type":"InputBotInlineMessageID"},{"name":"message","type":"flags.11?string"},{"name":"media","type":"flags.14?InputMedia"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"},{"name":"entities","type":"flags.3?Vector"}],"type":"Bool"},{"id":2164957164,"method":"messages.getBotCallbackAnswer","params":[{"name":"flags","type":"#"},{"name":"game","type":"flags.1?true"},{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int"},{"name":"data","type":"flags.0?bytes"}],"type":"messages.BotCallbackAnswer"},{"id":3582923530,"method":"messages.setBotCallbackAnswer","params":[{"name":"flags","type":"#"},{"name":"alert","type":"flags.1?true"},{"name":"query_id","type":"long"},{"name":"message","type":"flags.0?string"},{"name":"url","type":"flags.2?string"},{"name":"cache_time","type":"int"}],"type":"Bool"},{"id":3832593661,"method":"messages.getPeerDialogs","params":[{"name":"peers","type":"Vector"}],"type":"messages.PeerDialogs"},{"id":3157909835,"method":"messages.saveDraft","params":[{"name":"flags","type":"#"},{"name":"no_webpage","type":"flags.1?true"},{"name":"reply_to_msg_id","type":"flags.0?int"},{"name":"peer","type":"InputPeer"},{"name":"message","type":"string"},{"name":"entities","type":"flags.3?Vector"}],"type":"Bool"},{"id":1782549861,"method":"messages.getAllDrafts","params":[],"type":"Updates"},{"id":766298703,"method":"messages.getFeaturedStickers","params":[{"name":"hash","type":"int"}],"type":"messages.FeaturedStickers"},{"id":1527873830,"method":"messages.readFeaturedStickers","params":[{"name":"id","type":"Vector"}],"type":"Bool"},{"id":1587647177,"method":"messages.getRecentStickers","params":[{"name":"flags","type":"#"},{"name":"attached","type":"flags.0?true"},{"name":"hash","type":"int"}],"type":"messages.RecentStickers"},{"id":958863608,"method":"messages.saveRecentSticker","params":[{"name":"flags","type":"#"},{"name":"attached","type":"flags.0?true"},{"name":"id","type":"InputDocument"},{"name":"unsave","type":"Bool"}],"type":"Bool"},{"id":2308530221,"method":"messages.clearRecentStickers","params":[{"name":"flags","type":"#"},{"name":"attached","type":"flags.0?true"}],"type":"Bool"},{"id":1475442322,"method":"messages.getArchivedStickers","params":[{"name":"flags","type":"#"},{"name":"masks","type":"flags.0?true"},{"name":"offset_id","type":"long"},{"name":"limit","type":"int"}],"type":"messages.ArchivedStickers"},{"id":1706608543,"method":"messages.getMaskStickers","params":[{"name":"hash","type":"int"}],"type":"messages.AllStickers"},{"id":3428542412,"method":"messages.getAttachedStickers","params":[{"name":"media","type":"InputStickeredMedia"}],"type":"Vector"},{"id":2398678208,"method":"messages.setGameScore","params":[{"name":"flags","type":"#"},{"name":"edit_message","type":"flags.0?true"},{"name":"force","type":"flags.1?true"},{"name":"peer","type":"InputPeer"},{"name":"id","type":"int"},{"name":"user_id","type":"InputUser"},{"name":"score","type":"int"}],"type":"Updates"},{"id":363700068,"method":"messages.setInlineGameScore","params":[{"name":"flags","type":"#"},{"name":"edit_message","type":"flags.0?true"},{"name":"force","type":"flags.1?true"},{"name":"id","type":"InputBotInlineMessageID"},{"name":"user_id","type":"InputUser"},{"name":"score","type":"int"}],"type":"Bool"},{"id":3894568093,"method":"messages.getGameHighScores","params":[{"name":"peer","type":"InputPeer"},{"name":"id","type":"int"},{"name":"user_id","type":"InputUser"}],"type":"messages.HighScores"},{"id":258170395,"method":"messages.getInlineGameHighScores","params":[{"name":"id","type":"InputBotInlineMessageID"},{"name":"user_id","type":"InputUser"}],"type":"messages.HighScores"},{"id":218777796,"method":"messages.getCommonChats","params":[{"name":"user_id","type":"InputUser"},{"name":"max_id","type":"int"},{"name":"limit","type":"int"}],"type":"messages.Chats"},{"id":3953659888,"method":"messages.getAllChats","params":[{"name":"except_ids","type":"Vector"}],"type":"messages.Chats"},{"id":852135825,"method":"messages.getWebPage","params":[{"name":"url","type":"string"},{"name":"hash","type":"int"}],"type":"WebPage"},{"id":2805064279,"method":"messages.toggleDialogPin","params":[{"name":"flags","type":"#"},{"name":"pinned","type":"flags.0?true"},{"name":"peer","type":"InputDialogPeer"}],"type":"Bool"},{"id":991616823,"method":"messages.reorderPinnedDialogs","params":[{"name":"flags","type":"#"},{"name":"force","type":"flags.0?true"},{"name":"folder_id","type":"int"},{"name":"order","type":"Vector"}],"type":"Bool"},{"id":3602468338,"method":"messages.getPinnedDialogs","params":[{"name":"folder_id","type":"int"}],"type":"messages.PeerDialogs"},{"id":3858133754,"method":"messages.setBotShippingResults","params":[{"name":"flags","type":"#"},{"name":"query_id","type":"long"},{"name":"error","type":"flags.0?string"},{"name":"shipping_options","type":"flags.1?Vector"}],"type":"Bool"},{"id":163765653,"method":"messages.setBotPrecheckoutResults","params":[{"name":"flags","type":"#"},{"name":"success","type":"flags.1?true"},{"name":"query_id","type":"long"},{"name":"error","type":"flags.0?string"}],"type":"Bool"},{"id":1369162417,"method":"messages.uploadMedia","params":[{"name":"peer","type":"InputPeer"},{"name":"media","type":"InputMedia"}],"type":"MessageMedia"},{"id":3380473888,"method":"messages.sendScreenshotNotification","params":[{"name":"peer","type":"InputPeer"},{"name":"reply_to_msg_id","type":"int"},{"name":"random_id","type":"long"}],"type":"Updates"},{"id":567151374,"method":"messages.getFavedStickers","params":[{"name":"hash","type":"int"}],"type":"messages.FavedStickers"},{"id":3120547163,"method":"messages.faveSticker","params":[{"name":"id","type":"InputDocument"},{"name":"unfave","type":"Bool"}],"type":"Bool"},{"id":1180140658,"method":"messages.getUnreadMentions","params":[{"name":"peer","type":"InputPeer"},{"name":"offset_id","type":"int"},{"name":"add_offset","type":"int"},{"name":"limit","type":"int"},{"name":"max_id","type":"int"},{"name":"min_id","type":"int"}],"type":"messages.Messages"},{"id":251759059,"method":"messages.readMentions","params":[{"name":"peer","type":"InputPeer"}],"type":"messages.AffectedHistory"},{"id":3150207753,"method":"messages.getRecentLocations","params":[{"name":"peer","type":"InputPeer"},{"name":"limit","type":"int"},{"name":"hash","type":"int"}],"type":"messages.Messages"},{"id":3422621899,"method":"messages.sendMultiMedia","params":[{"name":"flags","type":"#"},{"name":"silent","type":"flags.5?true"},{"name":"background","type":"flags.6?true"},{"name":"clear_draft","type":"flags.7?true"},{"name":"peer","type":"InputPeer"},{"name":"reply_to_msg_id","type":"flags.0?int"},{"name":"multi_media","type":"Vector"},{"name":"schedule_date","type":"flags.10?int"}],"type":"Updates"},{"id":1347929239,"method":"messages.uploadEncryptedFile","params":[{"name":"peer","type":"InputEncryptedChat"},{"name":"file","type":"InputEncryptedFile"}],"type":"EncryptedFile"},{"id":3266826379,"method":"messages.searchStickerSets","params":[{"name":"flags","type":"#"},{"name":"exclude_featured","type":"flags.0?true"},{"name":"q","type":"string"},{"name":"hash","type":"int"}],"type":"messages.FoundStickerSets"},{"id":486505992,"method":"messages.getSplitRanges","params":[],"type":"Vector"},{"id":3263617423,"method":"messages.markDialogUnread","params":[{"name":"flags","type":"#"},{"name":"unread","type":"flags.0?true"},{"name":"peer","type":"InputDialogPeer"}],"type":"Bool"},{"id":585256482,"method":"messages.getDialogUnreadMarks","params":[],"type":"Vector"},{"id":2119757468,"method":"messages.clearAllDrafts","params":[],"type":"Bool"},{"id":3534419948,"method":"messages.updatePinnedMessage","params":[{"name":"flags","type":"#"},{"name":"silent","type":"flags.0?true"},{"name":"peer","type":"InputPeer"},{"name":"id","type":"int"}],"type":"Updates"},{"id":283795844,"method":"messages.sendVote","params":[{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int"},{"name":"options","type":"Vector"}],"type":"Updates"},{"id":1941660731,"method":"messages.getPollResults","params":[{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int"}],"type":"Updates"},{"id":1848369232,"method":"messages.getOnlines","params":[{"name":"peer","type":"InputPeer"}],"type":"ChatOnlines"},{"id":2167155430,"method":"messages.getStatsURL","params":[{"name":"flags","type":"#"},{"name":"dark","type":"flags.0?true"},{"name":"peer","type":"InputPeer"},{"name":"params","type":"string"}],"type":"StatsURL"},{"id":3740665751,"method":"messages.editChatAbout","params":[{"name":"peer","type":"InputPeer"},{"name":"about","type":"string"}],"type":"Bool"},{"id":2777049921,"method":"messages.editChatDefaultBannedRights","params":[{"name":"peer","type":"InputPeer"},{"name":"banned_rights","type":"ChatBannedRights"}],"type":"Updates"},{"id":899735650,"method":"messages.getEmojiKeywords","params":[{"name":"lang_code","type":"string"}],"type":"EmojiKeywordsDifference"},{"id":352892591,"method":"messages.getEmojiKeywordsDifference","params":[{"name":"lang_code","type":"string"},{"name":"from_version","type":"int"}],"type":"EmojiKeywordsDifference"},{"id":1318675378,"method":"messages.getEmojiKeywordsLanguages","params":[{"name":"lang_codes","type":"Vector"}],"type":"Vector"},{"id":3585149990,"method":"messages.getEmojiURL","params":[{"name":"lang_code","type":"string"}],"type":"EmojiURL"},{"id":1932455680,"method":"messages.getSearchCounters","params":[{"name":"peer","type":"InputPeer"},{"name":"filters","type":"Vector"}],"type":"Vector"},{"id":3812578835,"method":"messages.requestUrlAuth","params":[{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int"},{"name":"button_id","type":"int"}],"type":"UrlAuthResult"},{"id":4146719384,"method":"messages.acceptUrlAuth","params":[{"name":"flags","type":"#"},{"name":"write_allowed","type":"flags.0?true"},{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int"},{"name":"button_id","type":"int"}],"type":"UrlAuthResult"},{"id":1336717624,"method":"messages.hidePeerSettingsBar","params":[{"name":"peer","type":"InputPeer"}],"type":"Bool"},{"id":3804391515,"method":"messages.getScheduledHistory","params":[{"name":"peer","type":"InputPeer"},{"name":"hash","type":"int"}],"type":"messages.Messages"},{"id":3183150180,"method":"messages.getScheduledMessages","params":[{"name":"peer","type":"InputPeer"},{"name":"id","type":"Vector"}],"type":"messages.Messages"},{"id":3174597898,"method":"messages.sendScheduledMessages","params":[{"name":"peer","type":"InputPeer"},{"name":"id","type":"Vector"}],"type":"Updates"},{"id":1504586518,"method":"messages.deleteScheduledMessages","params":[{"name":"peer","type":"InputPeer"},{"name":"id","type":"Vector"}],"type":"Updates"},{"id":3094231054,"method":"messages.getPollVotes","params":[{"name":"flags","type":"#"},{"name":"peer","type":"InputPeer"},{"name":"id","type":"int"},{"name":"option","type":"flags.0?bytes"},{"name":"offset","type":"flags.1?string"},{"name":"limit","type":"int"}],"type":"messages.VotesList"},{"id":3037016042,"method":"messages.toggleStickerSets","params":[{"name":"flags","type":"#"},{"name":"uninstall","type":"flags.0?true"},{"name":"archive","type":"flags.1?true"},{"name":"unarchive","type":"flags.2?true"},{"name":"stickersets","type":"Vector"}],"type":"Bool"},{"id":4053719405,"method":"messages.getDialogFilters","params":[],"type":"Vector"},{"id":2728186924,"method":"messages.getSuggestedDialogFilters","params":[],"type":"Vector"},{"id":450142282,"method":"messages.updateDialogFilter","params":[{"name":"flags","type":"#"},{"name":"id","type":"int"},{"name":"filter","type":"flags.0?DialogFilter"}],"type":"Bool"},{"id":3311649252,"method":"messages.updateDialogFiltersOrder","params":[{"name":"order","type":"Vector"}],"type":"Bool"},{"id":1608974939,"method":"messages.getOldFeaturedStickers","params":[{"name":"offset","type":"int"},{"name":"limit","type":"int"},{"name":"hash","type":"int"}],"type":"messages.FeaturedStickers"},{"id":3990128682,"method":"updates.getState","params":[],"type":"updates.State"},{"id":630429265,"method":"updates.getDifference","params":[{"name":"flags","type":"#"},{"name":"pts","type":"int"},{"name":"pts_total_limit","type":"flags.0?int"},{"name":"date","type":"int"},{"name":"qts","type":"int"}],"type":"updates.Difference"},{"id":51854712,"method":"updates.getChannelDifference","params":[{"name":"flags","type":"#"},{"name":"force","type":"flags.0?true"},{"name":"channel","type":"InputChannel"},{"name":"filter","type":"ChannelMessagesFilter"},{"name":"pts","type":"int"},{"name":"limit","type":"int"}],"type":"updates.ChannelDifference"},{"id":4038807890,"method":"photos.updateProfilePhoto","params":[{"name":"id","type":"InputPhoto"}],"type":"UserProfilePhoto"},{"id":1328726168,"method":"photos.uploadProfilePhoto","params":[{"name":"file","type":"InputFile"}],"type":"photos.Photo"},{"id":2278522671,"method":"photos.deletePhotos","params":[{"name":"id","type":"Vector"}],"type":"Vector"},{"id":2446144168,"method":"photos.getUserPhotos","params":[{"name":"user_id","type":"InputUser"},{"name":"offset","type":"int"},{"name":"max_id","type":"long"},{"name":"limit","type":"int"}],"type":"photos.Photos"},{"id":3003426337,"method":"upload.saveFilePart","params":[{"name":"file_id","type":"long"},{"name":"file_part","type":"int"},{"name":"bytes","type":"bytes"}],"type":"Bool"},{"id":2975505148,"method":"upload.getFile","params":[{"name":"flags","type":"#"},{"name":"precise","type":"flags.0?true"},{"name":"cdn_supported","type":"flags.1?true"},{"name":"location","type":"InputFileLocation"},{"name":"offset","type":"int"},{"name":"limit","type":"int"}],"type":"upload.File"},{"id":3732629309,"method":"upload.saveBigFilePart","params":[{"name":"file_id","type":"long"},{"name":"file_part","type":"int"},{"name":"file_total_parts","type":"int"},{"name":"bytes","type":"bytes"}],"type":"Bool"},{"id":619086221,"method":"upload.getWebFile","params":[{"name":"location","type":"InputWebFileLocation"},{"name":"offset","type":"int"},{"name":"limit","type":"int"}],"type":"upload.WebFile"},{"id":536919235,"method":"upload.getCdnFile","params":[{"name":"file_token","type":"bytes"},{"name":"offset","type":"int"},{"name":"limit","type":"int"}],"type":"upload.CdnFile"},{"id":2603046056,"method":"upload.reuploadCdnFile","params":[{"name":"file_token","type":"bytes"},{"name":"request_token","type":"bytes"}],"type":"Vector"},{"id":1302676017,"method":"upload.getCdnFileHashes","params":[{"name":"file_token","type":"bytes"},{"name":"offset","type":"int"}],"type":"Vector"},{"id":3338819889,"method":"upload.getFileHashes","params":[{"name":"location","type":"InputFileLocation"},{"name":"offset","type":"int"}],"type":"Vector"},{"id":3304659051,"method":"help.getConfig","params":[],"type":"Config"},{"id":531836966,"method":"help.getNearestDc","params":[],"type":"NearestDc"},{"id":1378703997,"method":"help.getAppUpdate","params":[{"name":"source","type":"string"}],"type":"help.AppUpdate"},{"id":1295590211,"method":"help.getInviteText","params":[],"type":"help.InviteText"},{"id":2631862477,"method":"help.getSupport","params":[],"type":"help.Support"},{"id":2417028975,"method":"help.getAppChangelog","params":[{"name":"prev_app_version","type":"string"}],"type":"Updates"},{"id":3961704397,"method":"help.setBotUpdatesStatus","params":[{"name":"pending_updates_count","type":"int"},{"name":"message","type":"string"}],"type":"Bool"},{"id":1375900482,"method":"help.getCdnConfig","params":[],"type":"CdnConfig"},{"id":1036054804,"method":"help.getRecentMeUrls","params":[{"name":"referer","type":"string"}],"type":"help.RecentMeUrls"},{"id":749019089,"method":"help.getTermsOfServiceUpdate","params":[],"type":"help.TermsOfServiceUpdate"},{"id":4000511898,"method":"help.acceptTermsOfService","params":[{"name":"id","type":"DataJSON"}],"type":"Bool"},{"id":1072547679,"method":"help.getDeepLinkInfo","params":[{"name":"path","type":"string"}],"type":"help.DeepLinkInfo"},{"id":2559656208,"method":"help.getAppConfig","params":[],"type":"JSONValue"},{"id":1862465352,"method":"help.saveAppLog","params":[{"name":"events","type":"Vector"}],"type":"Bool"},{"id":3328290056,"method":"help.getPassportConfig","params":[{"name":"hash","type":"int"}],"type":"help.PassportConfig"},{"id":3546343212,"method":"help.getSupportName","params":[],"type":"help.SupportName"},{"id":59377875,"method":"help.getUserInfo","params":[{"name":"user_id","type":"InputUser"}],"type":"help.UserInfo"},{"id":1723407216,"method":"help.editUserInfo","params":[{"name":"user_id","type":"InputUser"},{"name":"message","type":"string"},{"name":"entities","type":"Vector"}],"type":"help.UserInfo"},{"id":3231151137,"method":"help.getPromoData","params":[],"type":"help.PromoData"},{"id":505748629,"method":"help.hidePromoData","params":[{"name":"peer","type":"InputPeer"}],"type":"Bool"},{"id":3423619383,"method":"channels.readHistory","params":[{"name":"channel","type":"InputChannel"},{"name":"max_id","type":"int"}],"type":"Bool"},{"id":2227305806,"method":"channels.deleteMessages","params":[{"name":"channel","type":"InputChannel"},{"name":"id","type":"Vector"}],"type":"messages.AffectedMessages"},{"id":3507345179,"method":"channels.deleteUserHistory","params":[{"name":"channel","type":"InputChannel"},{"name":"user_id","type":"InputUser"}],"type":"messages.AffectedHistory"},{"id":4261967888,"method":"channels.reportSpam","params":[{"name":"channel","type":"InputChannel"},{"name":"user_id","type":"InputUser"},{"name":"id","type":"Vector"}],"type":"Bool"},{"id":2911672867,"method":"channels.getMessages","params":[{"name":"channel","type":"InputChannel"},{"name":"id","type":"Vector"}],"type":"messages.Messages"},{"id":306054633,"method":"channels.getParticipants","params":[{"name":"channel","type":"InputChannel"},{"name":"filter","type":"ChannelParticipantsFilter"},{"name":"offset","type":"int"},{"name":"limit","type":"int"},{"name":"hash","type":"int"}],"type":"channels.ChannelParticipants"},{"id":1416484774,"method":"channels.getParticipant","params":[{"name":"channel","type":"InputChannel"},{"name":"user_id","type":"InputUser"}],"type":"channels.ChannelParticipant"},{"id":176122811,"method":"channels.getChannels","params":[{"name":"id","type":"Vector"}],"type":"messages.Chats"},{"id":141781513,"method":"channels.getFullChannel","params":[{"name":"channel","type":"InputChannel"}],"type":"messages.ChatFull"},{"id":1029681423,"method":"channels.createChannel","params":[{"name":"flags","type":"#"},{"name":"broadcast","type":"flags.0?true"},{"name":"megagroup","type":"flags.1?true"},{"name":"title","type":"string"},{"name":"about","type":"string"},{"name":"geo_point","type":"flags.2?InputGeoPoint"},{"name":"address","type":"flags.2?string"}],"type":"Updates"},{"id":3543959810,"method":"channels.editAdmin","params":[{"name":"channel","type":"InputChannel"},{"name":"user_id","type":"InputUser"},{"name":"admin_rights","type":"ChatAdminRights"},{"name":"rank","type":"string"}],"type":"Updates"},{"id":1450044624,"method":"channels.editTitle","params":[{"name":"channel","type":"InputChannel"},{"name":"title","type":"string"}],"type":"Updates"},{"id":4046346185,"method":"channels.editPhoto","params":[{"name":"channel","type":"InputChannel"},{"name":"photo","type":"InputChatPhoto"}],"type":"Updates"},{"id":283557164,"method":"channels.checkUsername","params":[{"name":"channel","type":"InputChannel"},{"name":"username","type":"string"}],"type":"Bool"},{"id":890549214,"method":"channels.updateUsername","params":[{"name":"channel","type":"InputChannel"},{"name":"username","type":"string"}],"type":"Bool"},{"id":615851205,"method":"channels.joinChannel","params":[{"name":"channel","type":"InputChannel"}],"type":"Updates"},{"id":4164332181,"method":"channels.leaveChannel","params":[{"name":"channel","type":"InputChannel"}],"type":"Updates"},{"id":429865580,"method":"channels.inviteToChannel","params":[{"name":"channel","type":"InputChannel"},{"name":"users","type":"Vector"}],"type":"Updates"},{"id":3222347747,"method":"channels.deleteChannel","params":[{"name":"channel","type":"InputChannel"}],"type":"Updates"},{"id":3468128611,"method":"channels.exportMessageLink","params":[{"name":"channel","type":"InputChannel"},{"name":"id","type":"int"},{"name":"grouped","type":"Bool"}],"type":"ExportedMessageLink"},{"id":527021574,"method":"channels.toggleSignatures","params":[{"name":"channel","type":"InputChannel"},{"name":"enabled","type":"Bool"}],"type":"Updates"},{"id":4172297903,"method":"channels.getAdminedPublicChannels","params":[{"name":"flags","type":"#"},{"name":"by_location","type":"flags.0?true"},{"name":"check_limit","type":"flags.1?true"}],"type":"messages.Chats"},{"id":1920559378,"method":"channels.editBanned","params":[{"name":"channel","type":"InputChannel"},{"name":"user_id","type":"InputUser"},{"name":"banned_rights","type":"ChatBannedRights"}],"type":"Updates"},{"id":870184064,"method":"channels.getAdminLog","params":[{"name":"flags","type":"#"},{"name":"channel","type":"InputChannel"},{"name":"q","type":"string"},{"name":"events_filter","type":"flags.0?ChannelAdminLogEventsFilter"},{"name":"admins","type":"flags.1?Vector"},{"name":"max_id","type":"long"},{"name":"min_id","type":"long"},{"name":"limit","type":"int"}],"type":"channels.AdminLogResults"},{"id":3935085817,"method":"channels.setStickers","params":[{"name":"channel","type":"InputChannel"},{"name":"stickerset","type":"InputStickerSet"}],"type":"Bool"},{"id":3937786936,"method":"channels.readMessageContents","params":[{"name":"channel","type":"InputChannel"},{"name":"id","type":"Vector"}],"type":"Bool"},{"id":2939592002,"method":"channels.deleteHistory","params":[{"name":"channel","type":"InputChannel"},{"name":"max_id","type":"int"}],"type":"Bool"},{"id":3938171212,"method":"channels.togglePreHistoryHidden","params":[{"name":"channel","type":"InputChannel"},{"name":"enabled","type":"Bool"}],"type":"Updates"},{"id":2202135744,"method":"channels.getLeftChannels","params":[{"name":"offset","type":"int"}],"type":"messages.Chats"},{"id":4124758904,"method":"channels.getGroupsForDiscussion","params":[],"type":"messages.Chats"},{"id":1079520178,"method":"channels.setDiscussionGroup","params":[{"name":"broadcast","type":"InputChannel"},{"name":"group","type":"InputChannel"}],"type":"Bool"},{"id":2402864415,"method":"channels.editCreator","params":[{"name":"channel","type":"InputChannel"},{"name":"user_id","type":"InputUser"},{"name":"password","type":"InputCheckPasswordSRP"}],"type":"Updates"},{"id":1491484525,"method":"channels.editLocation","params":[{"name":"channel","type":"InputChannel"},{"name":"geo_point","type":"InputGeoPoint"},{"name":"address","type":"string"}],"type":"Bool"},{"id":3990134512,"method":"channels.toggleSlowMode","params":[{"name":"channel","type":"InputChannel"},{"name":"seconds","type":"int"}],"type":"Updates"},{"id":300429806,"method":"channels.getInactiveChannels","params":[],"type":"messages.InactiveChats"},{"id":2854709741,"method":"bots.sendCustomRequest","params":[{"name":"custom_method","type":"string"},{"name":"params","type":"DataJSON"}],"type":"DataJSON"},{"id":3860938573,"method":"bots.answerWebhookJSONQuery","params":[{"name":"query_id","type":"long"},{"name":"data","type":"DataJSON"}],"type":"Bool"},{"id":2153596662,"method":"bots.setBotCommands","params":[{"name":"commands","type":"Vector"}],"type":"Bool"},{"id":2582681413,"method":"payments.getPaymentForm","params":[{"name":"msg_id","type":"int"}],"type":"payments.PaymentForm"},{"id":2693966208,"method":"payments.getPaymentReceipt","params":[{"name":"msg_id","type":"int"}],"type":"payments.PaymentReceipt"},{"id":1997180532,"method":"payments.validateRequestedInfo","params":[{"name":"flags","type":"#"},{"name":"save","type":"flags.0?true"},{"name":"msg_id","type":"int"},{"name":"info","type":"PaymentRequestedInfo"}],"type":"payments.ValidatedRequestedInfo"},{"id":730364339,"method":"payments.sendPaymentForm","params":[{"name":"flags","type":"#"},{"name":"msg_id","type":"int"},{"name":"requested_info_id","type":"flags.0?string"},{"name":"shipping_option_id","type":"flags.1?string"},{"name":"credentials","type":"InputPaymentCredentials"}],"type":"payments.PaymentResult"},{"id":578650699,"method":"payments.getSavedInfo","params":[],"type":"payments.SavedInfo"},{"id":3627905217,"method":"payments.clearSavedInfo","params":[{"name":"flags","type":"#"},{"name":"credentials","type":"flags.0?true"},{"name":"info","type":"flags.1?true"}],"type":"Bool"},{"id":779736953,"method":"payments.getBankCardData","params":[{"name":"number","type":"string"}],"type":"payments.BankCardData"},{"id":4043532160,"method":"stickers.createStickerSet","params":[{"name":"flags","type":"#"},{"name":"masks","type":"flags.0?true"},{"name":"animated","type":"flags.1?true"},{"name":"user_id","type":"InputUser"},{"name":"title","type":"string"},{"name":"short_name","type":"string"},{"name":"thumb","type":"flags.2?InputDocument"},{"name":"stickers","type":"Vector"}],"type":"messages.StickerSet"},{"id":4151709521,"method":"stickers.removeStickerFromSet","params":[{"name":"sticker","type":"InputDocument"}],"type":"messages.StickerSet"},{"id":4290172106,"method":"stickers.changeStickerPosition","params":[{"name":"sticker","type":"InputDocument"},{"name":"position","type":"int"}],"type":"messages.StickerSet"},{"id":2253651646,"method":"stickers.addStickerToSet","params":[{"name":"stickerset","type":"InputStickerSet"},{"name":"sticker","type":"InputStickerSetItem"}],"type":"messages.StickerSet"},{"id":2587250224,"method":"stickers.setStickerSetThumb","params":[{"name":"stickerset","type":"InputStickerSet"},{"name":"thumb","type":"InputDocument"}],"type":"messages.StickerSet"},{"id":1430593449,"method":"phone.getCallConfig","params":[],"type":"DataJSON"},{"id":1124046573,"method":"phone.requestCall","params":[{"name":"flags","type":"#"},{"name":"video","type":"flags.0?true"},{"name":"user_id","type":"InputUser"},{"name":"random_id","type":"int"},{"name":"g_a_hash","type":"bytes"},{"name":"protocol","type":"PhoneCallProtocol"}],"type":"phone.PhoneCall"},{"id":1003664544,"method":"phone.acceptCall","params":[{"name":"peer","type":"InputPhoneCall"},{"name":"g_b","type":"bytes"},{"name":"protocol","type":"PhoneCallProtocol"}],"type":"phone.PhoneCall"},{"id":788404002,"method":"phone.confirmCall","params":[{"name":"peer","type":"InputPhoneCall"},{"name":"g_a","type":"bytes"},{"name":"key_fingerprint","type":"long"},{"name":"protocol","type":"PhoneCallProtocol"}],"type":"phone.PhoneCall"},{"id":399855457,"method":"phone.receivedCall","params":[{"name":"peer","type":"InputPhoneCall"}],"type":"Bool"},{"id":2999697856,"method":"phone.discardCall","params":[{"name":"flags","type":"#"},{"name":"video","type":"flags.0?true"},{"name":"peer","type":"InputPhoneCall"},{"name":"duration","type":"int"},{"name":"reason","type":"PhoneCallDiscardReason"},{"name":"connection_id","type":"long"}],"type":"Updates"},{"id":1508562471,"method":"phone.setCallRating","params":[{"name":"flags","type":"#"},{"name":"user_initiative","type":"flags.0?true"},{"name":"peer","type":"InputPhoneCall"},{"name":"rating","type":"int"},{"name":"comment","type":"string"}],"type":"Updates"},{"id":662363518,"method":"phone.saveCallDebug","params":[{"name":"peer","type":"InputPhoneCall"},{"name":"debug","type":"DataJSON"}],"type":"Bool"},{"id":4075959050,"method":"langpack.getLangPack","params":[{"name":"lang_pack","type":"string"},{"name":"lang_code","type":"string"}],"type":"LangPackDifference"},{"id":4025104387,"method":"langpack.getStrings","params":[{"name":"lang_pack","type":"string"},{"name":"lang_code","type":"string"},{"name":"keys","type":"Vector"}],"type":"Vector"},{"id":3449309861,"method":"langpack.getDifference","params":[{"name":"lang_pack","type":"string"},{"name":"lang_code","type":"string"},{"name":"from_version","type":"int"}],"type":"LangPackDifference"},{"id":1120311183,"method":"langpack.getLanguages","params":[{"name":"lang_pack","type":"string"}],"type":"Vector"},{"id":1784243458,"method":"langpack.getLanguage","params":[{"name":"lang_pack","type":"string"},{"name":"lang_code","type":"string"}],"type":"LangPackLanguage"},{"id":1749536939,"method":"folders.editPeerFolders","params":[{"name":"folder_peers","type":"Vector"}],"type":"Updates"},{"id":472471681,"method":"folders.deleteFolder","params":[{"name":"folder_id","type":"int"}],"type":"Updates"},{"id":2873246746,"method":"stats.getBroadcastStats","params":[{"name":"flags","type":"#"},{"name":"dark","type":"flags.0?true"},{"name":"channel","type":"InputChannel"}],"type":"stats.BroadcastStats"},{"id":1646092192,"method":"stats.loadAsyncGraph","params":[{"name":"flags","type":"#"},{"name":"token","type":"string"},{"name":"x","type":"flags.0?long"}],"type":"StatsGraph"}]}, "layer": 113} as { +export default {"MTProto":{"constructors":[{"id":"481674261","predicate":"vector","params":[],"type":"Vector t"},{"id":"85337187","predicate":"resPQ","params":[{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"pq","type":"bytes"},{"name":"server_public_key_fingerprints","type":"Vector"}],"type":"ResPQ"},{"id":2211011308,"predicate":"p_q_inner_data","params":[{"name":"pq","type":"bytes"},{"name":"p","type":"bytes"},{"name":"q","type":"bytes"},{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"new_nonce","type":"int256"}],"type":"P_Q_inner_data"},{"id":2851430293,"predicate":"p_q_inner_data_dc","params":[{"name":"pq","type":"bytes"},{"name":"p","type":"bytes"},{"name":"q","type":"bytes"},{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"new_nonce","type":"int256"},{"name":"dc","type":"int"}],"type":"P_Q_inner_data"},{"id":"1013613780","predicate":"p_q_inner_data_temp","params":[{"name":"pq","type":"bytes"},{"name":"p","type":"bytes"},{"name":"q","type":"bytes"},{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"new_nonce","type":"int256"},{"name":"expires_in","type":"int"}],"type":"P_Q_inner_data"},{"id":"1459478408","predicate":"p_q_inner_data_temp_dc","params":[{"name":"pq","type":"bytes"},{"name":"p","type":"bytes"},{"name":"q","type":"bytes"},{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"new_nonce","type":"int256"},{"name":"dc","type":"int"},{"name":"expires_in","type":"int"}],"type":"P_Q_inner_d"},{"id":"2043348061","predicate":"server_DH_params_fail","params":[{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"new_nonce_hash","type":"int128"}],"type":"Server_DH_Params"},{"id":3504867164,"predicate":"server_DH_params_ok","params":[{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"encrypted_answer","type":"bytes"}],"type":"Server_DH_Params"},{"id":3045658042,"predicate":"server_DH_inner_data","params":[{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"g","type":"int"},{"name":"dh_prime","type":"bytes"},{"name":"g_a","type":"bytes"},{"name":"server_time","type":"int"}],"type":"Server_DH_inner_data"},{"id":"1715713620","predicate":"client_DH_inner_data","params":[{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"retry_id","type":"long"},{"name":"g_b","type":"bytes"}],"type":"Client_DH_Inner_Data"},{"id":"1003222836","predicate":"dh_gen_ok","params":[{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"new_nonce_hash1","type":"int128"}],"type":"Set_client_DH_params_answer"},{"id":"1188831161","predicate":"dh_gen_retry","params":[{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"new_nonce_hash2","type":"int128"}],"type":"Set_client_DH_params_answer"},{"id":2795351554,"predicate":"dh_gen_fail","params":[{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"new_nonce_hash3","type":"int128"}],"type":"Set_client_DH_params_answer"},{"id":4082920705,"predicate":"rpc_result","params":[{"name":"req_msg_id","type":"long"},{"name":"result","type":"Object"}],"type":"RpcResult"},{"id":"558156313","predicate":"rpc_error","params":[{"name":"error_code","type":"int"},{"name":"error_message","type":"string"}],"type":"RpcError"},{"id":"1579864942","predicate":"rpc_answer_unknown","params":[],"type":"RpcDropAnswer"},{"id":3447252358,"predicate":"rpc_answer_dropped_running","params":[],"type":"RpcDropAnswer"},{"id":2755319991,"predicate":"rpc_answer_dropped","params":[{"name":"msg_id","type":"long"},{"name":"seq_no","type":"int"},{"name":"bytes","type":"int"}],"type":"RpcDropAnswer"},{"id":"155834844","predicate":"future_salt","params":[{"name":"valid_since","type":"int"},{"name":"valid_until","type":"int"},{"name":"salt","type":"long"}],"type":"FutureSalt"},{"id":2924480661,"predicate":"future_salts","params":[{"name":"req_msg_id","type":"long"},{"name":"now","type":"int"},{"name":"salts","type":"vector"}],"type":"FutureSalts"},{"id":"880243653","predicate":"pong","params":[{"name":"msg_id","type":"long"},{"name":"ping_id","type":"long"}],"type":"Pong"},{"id":2663516424,"predicate":"new_session_created","params":[{"name":"first_msg_id","type":"long"},{"name":"unique_id","type":"long"},{"name":"server_salt","type":"long"}],"type":"NewSession"},{"id":"1945237724","predicate":"msg_container","params":[{"name":"messages","type":"vector<%Message>"}],"type":"MessageContainer"},{"id":"1538843921","predicate":"message","params":[{"name":"msg_id","type":"long"},{"name":"seqno","type":"int"},{"name":"bytes","type":"int"},{"name":"body","type":"Object"}],"type":"Message"},{"id":3764405938,"predicate":"msg_copy","params":[{"name":"orig_message","type":"Message"}],"type":"MessageCopy"},{"id":"812830625","predicate":"gzip_packed","params":[{"name":"packed_data","type":"bytes"}],"type":"Object"},{"id":"1658238041","predicate":"msgs_ack","params":[{"name":"msg_ids","type":"Vector"}],"type":"MsgsAck"},{"id":2817521681,"predicate":"bad_msg_notification","params":[{"name":"bad_msg_id","type":"long"},{"name":"bad_msg_seqno","type":"int"},{"name":"error_code","type":"int"}],"type":"BadMsgNotification"},{"id":3987424379,"predicate":"bad_server_salt","params":[{"name":"bad_msg_id","type":"long"},{"name":"bad_msg_seqno","type":"int"},{"name":"error_code","type":"int"},{"name":"new_server_salt","type":"long"}],"type":"BadMsgNotification"},{"id":"2105940488","predicate":"msg_resend_req","params":[{"name":"msg_ids","type":"Vector"}],"type":"MsgResendReq"},{"id":2249243371,"predicate":"msg_resend_ans_req","params":[{"name":"msg_ids","type":"Vector"}],"type":"MsgResendReq"},{"id":3664378706,"predicate":"msgs_state_req","params":[{"name":"msg_ids","type":"Vector"}],"type":"MsgsStateReq"},{"id":"81704317","predicate":"msgs_state_info","params":[{"name":"req_msg_id","type":"long"},{"name":"info","type":"bytes"}],"type":"MsgsStateInfo"},{"id":2361446705,"predicate":"msgs_all_info","params":[{"name":"msg_ids","type":"Vector"},{"name":"info","type":"bytes"}],"type":"MsgsAllInfo"},{"id":"661470918","predicate":"msg_detailed_info","params":[{"name":"msg_id","type":"long"},{"name":"answer_msg_id","type":"long"},{"name":"bytes","type":"int"},{"name":"status","type":"int"}],"type":"MsgDetailedInfo"},{"id":2157819615,"predicate":"msg_new_detailed_info","params":[{"name":"answer_msg_id","type":"long"},{"name":"bytes","type":"int"},{"name":"status","type":"int"}],"type":"MsgDetailedInfo"},{"id":"1973679973","predicate":"bind_auth_key_inner","params":[{"name":"nonce","type":"long"},{"name":"temp_auth_key_id","type":"long"},{"name":"perm_auth_key_id","type":"long"},{"name":"temp_session_id","type":"long"},{"name":"expires_at","type":"int"}],"type":"BindAuthKeyInner"},{"id":4133544404,"predicate":"destroy_auth_key_ok","params":[],"type":"DestroyAuthKeyRes"},{"id":"178201177","predicate":"destroy_auth_key_none","params":[],"type":"DestroyAuthKeyRes"},{"id":3926956819,"predicate":"destroy_auth_key_fail","params":[],"type":"DestroyAuthKeyRes"},{"id":3793765884,"predicate":"destroy_session_ok","params":[{"name":"session_id","type":"long"}],"type":"DestroySessionRes"},{"id":"1658015945","predicate":"destroy_session_none","params":[{"name":"session_id","type":"long"}],"type":"DestroySessionRes"}],"methods":[{"id":"1615239032","method":"req_pq","params":[{"name":"nonce","type":"int128"}],"type":"ResPQ"},{"id":3195965169,"method":"req_pq_multi","params":[{"name":"nonce","type":"int128"}],"type":"ResPQ"},{"id":3608339646,"method":"req_DH_params","params":[{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"p","type":"bytes"},{"name":"q","type":"bytes"},{"name":"public_key_fingerprint","type":"long"},{"name":"encrypted_data","type":"bytes"}],"type":"Server_DH_Params"},{"id":4110704415,"method":"set_client_DH_params","params":[{"name":"nonce","type":"int128"},{"name":"server_nonce","type":"int128"},{"name":"encrypted_data","type":"bytes"}],"type":"Set_client_DH_params_answer"},{"id":"1491380032","method":"rpc_drop_answer","params":[{"name":"req_msg_id","type":"long"}],"type":"RpcDropAnswer"},{"id":3105996036,"method":"get_future_salts","params":[{"name":"num","type":"int"}],"type":"FutureSalts"},{"id":"2059302892","method":"ping","params":[{"name":"ping_id","type":"long"}],"type":"Pong"},{"id":4081220492,"method":"ping_delay_disconnect","params":[{"name":"ping_id","type":"long"},{"name":"disconnect_delay","type":"int"}],"type":"Pong"},{"id":2459514271,"method":"http_wait","params":[{"name":"max_delay","type":"int"},{"name":"wait_after","type":"int"},{"name":"max_wait","type":"int"}],"type":"HttpWait"},{"id":3510849888,"method":"destroy_auth_key","params":[],"type":"DestroyAuthKeyRes"},{"id":3880853798,"method":"destroy_session","params":[{"name":"session_id","type":"long"}],"type":"DestroySessionRes"}]},"API":{"constructors":[{"id":3162085175,"predicate":"boolFalse","params":[],"type":"Bool"},{"id":2574415285,"predicate":"boolTrue","params":[],"type":"Bool"},{"id":1072550713,"predicate":"true","params":[],"type":"True"},{"id":481674261,"predicate":"vector","params":[],"type":"Vector t"},{"id":3300522427,"predicate":"error","params":[{"name":"code","type":"int"},{"name":"text","type":"string"}],"type":"Error"},{"id":1450380236,"predicate":"null","params":[],"type":"Null"},{"id":2134579434,"predicate":"inputPeerEmpty","params":[],"type":"InputPeer"},{"id":2107670217,"predicate":"inputPeerSelf","params":[],"type":"InputPeer"},{"id":396093539,"predicate":"inputPeerChat","params":[{"name":"chat_id","type":"int"}],"type":"InputPeer"},{"id":2072935910,"predicate":"inputPeerUser","params":[{"name":"user_id","type":"int"},{"name":"access_hash","type":"long"}],"type":"InputPeer"},{"id":548253432,"predicate":"inputPeerChannel","params":[{"name":"channel_id","type":"int"},{"name":"access_hash","type":"long"}],"type":"InputPeer"},{"id":398123750,"predicate":"inputPeerUserFromMessage","params":[{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int"},{"name":"user_id","type":"int"}],"type":"InputPeer"},{"id":2627073979,"predicate":"inputPeerChannelFromMessage","params":[{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int"},{"name":"channel_id","type":"int"}],"type":"InputPeer"},{"id":3112732367,"predicate":"inputUserEmpty","params":[],"type":"InputUser"},{"id":4156666175,"predicate":"inputUserSelf","params":[],"type":"InputUser"},{"id":3626575894,"predicate":"inputUser","params":[{"name":"user_id","type":"int"},{"name":"access_hash","type":"long"}],"type":"InputUser"},{"id":756118935,"predicate":"inputUserFromMessage","params":[{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int"},{"name":"user_id","type":"int"}],"type":"InputUser"},{"id":4086478836,"predicate":"inputPhoneContact","params":[{"name":"client_id","type":"long"},{"name":"phone","type":"string"},{"name":"first_name","type":"string"},{"name":"last_name","type":"string"}],"type":"InputContact"},{"id":4113560191,"predicate":"inputFile","params":[{"name":"id","type":"long"},{"name":"parts","type":"int"},{"name":"name","type":"string"},{"name":"md5_checksum","type":"string"}],"type":"InputFile"},{"id":4199484341,"predicate":"inputFileBig","params":[{"name":"id","type":"long"},{"name":"parts","type":"int"},{"name":"name","type":"string"}],"type":"InputFile"},{"id":2523198847,"predicate":"inputMediaEmpty","params":[],"type":"InputMedia"},{"id":505969924,"predicate":"inputMediaUploadedPhoto","params":[{"name":"flags","type":"#"},{"name":"file","type":"InputFile"},{"name":"stickers","type":"flags.0?Vector"},{"name":"ttl_seconds","type":"flags.1?int"}],"type":"InputMedia"},{"id":3015312949,"predicate":"inputMediaPhoto","params":[{"name":"flags","type":"#"},{"name":"id","type":"InputPhoto"},{"name":"ttl_seconds","type":"flags.0?int"}],"type":"InputMedia"},{"id":4190388548,"predicate":"inputMediaGeoPoint","params":[{"name":"geo_point","type":"InputGeoPoint"}],"type":"InputMedia"},{"id":4171988475,"predicate":"inputMediaContact","params":[{"name":"phone_number","type":"string"},{"name":"first_name","type":"string"},{"name":"last_name","type":"string"},{"name":"vcard","type":"string"}],"type":"InputMedia"},{"id":1530447553,"predicate":"inputMediaUploadedDocument","params":[{"name":"flags","type":"#"},{"name":"nosound_video","type":"flags.3?true"},{"name":"file","type":"InputFile"},{"name":"thumb","type":"flags.2?InputFile"},{"name":"mime_type","type":"string"},{"name":"attributes","type":"Vector"},{"name":"stickers","type":"flags.0?Vector"},{"name":"ttl_seconds","type":"flags.1?int"}],"type":"InputMedia"},{"id":598418386,"predicate":"inputMediaDocument","params":[{"name":"flags","type":"#"},{"name":"id","type":"InputDocument"},{"name":"ttl_seconds","type":"flags.0?int"}],"type":"InputMedia"},{"id":3242007569,"predicate":"inputMediaVenue","params":[{"name":"geo_point","type":"InputGeoPoint"},{"name":"title","type":"string"},{"name":"address","type":"string"},{"name":"provider","type":"string"},{"name":"venue_id","type":"string"},{"name":"venue_type","type":"string"}],"type":"InputMedia"},{"id":1212395773,"predicate":"inputMediaGifExternal","params":[{"name":"url","type":"string"},{"name":"q","type":"string"}],"type":"InputMedia"},{"id":3854302746,"predicate":"inputMediaPhotoExternal","params":[{"name":"flags","type":"#"},{"name":"url","type":"string"},{"name":"ttl_seconds","type":"flags.0?int"}],"type":"InputMedia"},{"id":4216511641,"predicate":"inputMediaDocumentExternal","params":[{"name":"flags","type":"#"},{"name":"url","type":"string"},{"name":"ttl_seconds","type":"flags.0?int"}],"type":"InputMedia"},{"id":3544138739,"predicate":"inputMediaGame","params":[{"name":"id","type":"InputGame"}],"type":"InputMedia"},{"id":4108359363,"predicate":"inputMediaInvoice","params":[{"name":"flags","type":"#"},{"name":"title","type":"string"},{"name":"description","type":"string"},{"name":"photo","type":"flags.0?InputWebDocument"},{"name":"invoice","type":"Invoice"},{"name":"payload","type":"bytes"},{"name":"provider","type":"string"},{"name":"provider_data","type":"DataJSON"},{"name":"start_param","type":"string"}],"type":"InputMedia"},{"id":3461251837,"predicate":"inputMediaGeoLive","params":[{"name":"flags","type":"#"},{"name":"stopped","type":"flags.0?true"},{"name":"geo_point","type":"InputGeoPoint"},{"name":"period","type":"flags.1?int"}],"type":"InputMedia"},{"id":261416433,"predicate":"inputMediaPoll","params":[{"name":"flags","type":"#"},{"name":"poll","type":"Poll"},{"name":"correct_answers","type":"flags.0?Vector"},{"name":"solution","type":"flags.1?string"},{"name":"solution_entities","type":"flags.1?Vector"}],"type":"InputMedia"},{"id":3866083195,"predicate":"inputMediaDice","params":[{"name":"emoticon","type":"string"}],"type":"InputMedia"},{"id":480546647,"predicate":"inputChatPhotoEmpty","params":[],"type":"InputChatPhoto"},{"id":2457621940,"predicate":"inputChatUploadedPhoto","params":[{"name":"file","type":"InputFile"}],"type":"InputChatPhoto"},{"id":2303962423,"predicate":"inputChatPhoto","params":[{"name":"id","type":"InputPhoto"}],"type":"InputChatPhoto"},{"id":3837862870,"predicate":"inputGeoPointEmpty","params":[],"type":"InputGeoPoint"},{"id":4088900809,"predicate":"inputGeoPoint","params":[{"name":"lat","type":"double"},{"name":"long","type":"double"}],"type":"InputGeoPoint"},{"id":483901197,"predicate":"inputPhotoEmpty","params":[],"type":"InputPhoto"},{"id":1001634122,"predicate":"inputPhoto","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"file_reference","type":"bytes"}],"type":"InputPhoto"},{"id":3755650017,"predicate":"inputFileLocation","params":[{"name":"volume_id","type":"long"},{"name":"local_id","type":"int"},{"name":"secret","type":"long"},{"name":"file_reference","type":"bytes"}],"type":"InputFileLocation"},{"id":4112735573,"predicate":"inputEncryptedFileLocation","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"}],"type":"InputFileLocation"},{"id":3134223748,"predicate":"inputDocumentFileLocation","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"file_reference","type":"bytes"},{"name":"thumb_size","type":"string"}],"type":"InputFileLocation"},{"id":3418877480,"predicate":"inputSecureFileLocation","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"}],"type":"InputFileLocation"},{"id":700340377,"predicate":"inputTakeoutFileLocation","params":[],"type":"InputFileLocation"},{"id":1075322878,"predicate":"inputPhotoFileLocation","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"file_reference","type":"bytes"},{"name":"thumb_size","type":"string"}],"type":"InputFileLocation"},{"id":3627312883,"predicate":"inputPhotoLegacyFileLocation","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"file_reference","type":"bytes"},{"name":"volume_id","type":"long"},{"name":"local_id","type":"int"},{"name":"secret","type":"long"}],"type":"InputFileLocation"},{"id":668375447,"predicate":"inputPeerPhotoFileLocation","params":[{"name":"flags","type":"#"},{"name":"big","type":"flags.0?true"},{"name":"peer","type":"InputPeer"},{"name":"volume_id","type":"long"},{"name":"local_id","type":"int"}],"type":"InputFileLocation"},{"id":230353641,"predicate":"inputStickerSetThumb","params":[{"name":"stickerset","type":"InputStickerSet"},{"name":"volume_id","type":"long"},{"name":"local_id","type":"int"}],"type":"InputFileLocation"},{"id":2645671021,"predicate":"peerUser","params":[{"name":"user_id","type":"int"}],"type":"Peer"},{"id":3134252475,"predicate":"peerChat","params":[{"name":"chat_id","type":"int"}],"type":"Peer"},{"id":3185435954,"predicate":"peerChannel","params":[{"name":"channel_id","type":"int"}],"type":"Peer"},{"id":2861972229,"predicate":"storage.fileUnknown","params":[],"type":"storage.FileType"},{"id":1086091090,"predicate":"storage.filePartial","params":[],"type":"storage.FileType"},{"id":8322574,"predicate":"storage.fileJpeg","params":[],"type":"storage.FileType"},{"id":3403786975,"predicate":"storage.fileGif","params":[],"type":"storage.FileType"},{"id":172975040,"predicate":"storage.filePng","params":[],"type":"storage.FileType"},{"id":2921222285,"predicate":"storage.filePdf","params":[],"type":"storage.FileType"},{"id":1384777335,"predicate":"storage.fileMp3","params":[],"type":"storage.FileType"},{"id":1258941372,"predicate":"storage.fileMov","params":[],"type":"storage.FileType"},{"id":3016663268,"predicate":"storage.fileMp4","params":[],"type":"storage.FileType"},{"id":276907596,"predicate":"storage.fileWebp","params":[],"type":"storage.FileType"},{"id":537022650,"predicate":"userEmpty","params":[{"name":"id","type":"int"}],"type":"User"},{"id":2474924225,"predicate":"user","params":[{"name":"flags","type":"#"},{"name":"self","type":"flags.10?true"},{"name":"contact","type":"flags.11?true"},{"name":"mutual_contact","type":"flags.12?true"},{"name":"deleted","type":"flags.13?true"},{"name":"bot","type":"flags.14?true"},{"name":"bot_chat_history","type":"flags.15?true"},{"name":"bot_nochats","type":"flags.16?true"},{"name":"verified","type":"flags.17?true"},{"name":"restricted","type":"flags.18?true"},{"name":"min","type":"flags.20?true"},{"name":"bot_inline_geo","type":"flags.21?true"},{"name":"support","type":"flags.23?true"},{"name":"scam","type":"flags.24?true"},{"name":"id","type":"int"},{"name":"access_hash","type":"flags.0?long"},{"name":"first_name","type":"flags.1?string"},{"name":"last_name","type":"flags.2?string"},{"name":"username","type":"flags.3?string"},{"name":"phone","type":"flags.4?string"},{"name":"photo","type":"flags.5?UserProfilePhoto"},{"name":"status","type":"flags.6?UserStatus"},{"name":"bot_info_version","type":"flags.14?int"},{"name":"restriction_reason","type":"flags.18?Vector"},{"name":"bot_inline_placeholder","type":"flags.19?string"},{"name":"lang_code","type":"flags.22?string"}],"type":"User"},{"id":1326562017,"predicate":"userProfilePhotoEmpty","params":[],"type":"UserProfilePhoto"},{"id":3973537164,"predicate":"userProfilePhoto","params":[{"name":"photo_id","type":"long"},{"name":"photo_small","type":"FileLocation"},{"name":"photo_big","type":"FileLocation"},{"name":"dc_id","type":"int"}],"type":"UserProfilePhoto"},{"id":164646985,"predicate":"userStatusEmpty","params":[],"type":"UserStatus"},{"id":3988339017,"predicate":"userStatusOnline","params":[{"name":"expires","type":"int"}],"type":"UserStatus"},{"id":9203775,"predicate":"userStatusOffline","params":[{"name":"was_online","type":"int"}],"type":"UserStatus"},{"id":3798942449,"predicate":"userStatusRecently","params":[],"type":"UserStatus"},{"id":129960444,"predicate":"userStatusLastWeek","params":[],"type":"UserStatus"},{"id":2011940674,"predicate":"userStatusLastMonth","params":[],"type":"UserStatus"},{"id":2611140608,"predicate":"chatEmpty","params":[{"name":"id","type":"int"}],"type":"Chat"},{"id":1004149726,"predicate":"chat","params":[{"name":"flags","type":"#"},{"name":"creator","type":"flags.0?true"},{"name":"kicked","type":"flags.1?true"},{"name":"left","type":"flags.2?true"},{"name":"deactivated","type":"flags.5?true"},{"name":"id","type":"int"},{"name":"title","type":"string"},{"name":"photo","type":"ChatPhoto"},{"name":"participants_count","type":"int"},{"name":"date","type":"int"},{"name":"version","type":"int"},{"name":"migrated_to","type":"flags.6?InputChannel"},{"name":"admin_rights","type":"flags.14?ChatAdminRights"},{"name":"default_banned_rights","type":"flags.18?ChatBannedRights"}],"type":"Chat"},{"id":120753115,"predicate":"chatForbidden","params":[{"name":"id","type":"int"},{"name":"title","type":"string"}],"type":"Chat"},{"id":3541734942,"predicate":"channel","params":[{"name":"flags","type":"#"},{"name":"creator","type":"flags.0?true"},{"name":"left","type":"flags.2?true"},{"name":"broadcast","type":"flags.5?true"},{"name":"verified","type":"flags.7?true"},{"name":"megagroup","type":"flags.8?true"},{"name":"restricted","type":"flags.9?true"},{"name":"signatures","type":"flags.11?true"},{"name":"min","type":"flags.12?true"},{"name":"scam","type":"flags.19?true"},{"name":"has_link","type":"flags.20?true"},{"name":"has_geo","type":"flags.21?true"},{"name":"slowmode_enabled","type":"flags.22?true"},{"name":"id","type":"int"},{"name":"access_hash","type":"flags.13?long"},{"name":"title","type":"string"},{"name":"username","type":"flags.6?string"},{"name":"photo","type":"ChatPhoto"},{"name":"date","type":"int"},{"name":"version","type":"int"},{"name":"restriction_reason","type":"flags.9?Vector"},{"name":"admin_rights","type":"flags.14?ChatAdminRights"},{"name":"banned_rights","type":"flags.15?ChatBannedRights"},{"name":"default_banned_rights","type":"flags.18?ChatBannedRights"},{"name":"participants_count","type":"flags.17?int"}],"type":"Chat"},{"id":681420594,"predicate":"channelForbidden","params":[{"name":"flags","type":"#"},{"name":"broadcast","type":"flags.5?true"},{"name":"megagroup","type":"flags.8?true"},{"name":"id","type":"int"},{"name":"access_hash","type":"long"},{"name":"title","type":"string"},{"name":"until_date","type":"flags.16?int"}],"type":"Chat"},{"id":461151667,"predicate":"chatFull","params":[{"name":"flags","type":"#"},{"name":"can_set_username","type":"flags.7?true"},{"name":"has_scheduled","type":"flags.8?true"},{"name":"id","type":"int"},{"name":"about","type":"string"},{"name":"participants","type":"ChatParticipants"},{"name":"chat_photo","type":"flags.2?Photo"},{"name":"notify_settings","type":"PeerNotifySettings"},{"name":"exported_invite","type":"ExportedChatInvite"},{"name":"bot_info","type":"flags.3?Vector"},{"name":"pinned_msg_id","type":"flags.6?int"},{"name":"folder_id","type":"flags.11?int"}],"type":"ChatFull"},{"id":4041631530,"predicate":"channelFull","params":[{"name":"flags","type":"#"},{"name":"can_view_participants","type":"flags.3?true"},{"name":"can_set_username","type":"flags.6?true"},{"name":"can_set_stickers","type":"flags.7?true"},{"name":"hidden_prehistory","type":"flags.10?true"},{"name":"can_view_stats","type":"flags.12?true"},{"name":"can_set_location","type":"flags.16?true"},{"name":"has_scheduled","type":"flags.19?true"},{"name":"id","type":"int"},{"name":"about","type":"string"},{"name":"participants_count","type":"flags.0?int"},{"name":"admins_count","type":"flags.1?int"},{"name":"kicked_count","type":"flags.2?int"},{"name":"banned_count","type":"flags.2?int"},{"name":"online_count","type":"flags.13?int"},{"name":"read_inbox_max_id","type":"int"},{"name":"read_outbox_max_id","type":"int"},{"name":"unread_count","type":"int"},{"name":"chat_photo","type":"Photo"},{"name":"notify_settings","type":"PeerNotifySettings"},{"name":"exported_invite","type":"ExportedChatInvite"},{"name":"bot_info","type":"Vector"},{"name":"migrated_from_chat_id","type":"flags.4?int"},{"name":"migrated_from_max_id","type":"flags.4?int"},{"name":"pinned_msg_id","type":"flags.5?int"},{"name":"stickerset","type":"flags.8?StickerSet"},{"name":"available_min_id","type":"flags.9?int"},{"name":"folder_id","type":"flags.11?int"},{"name":"linked_chat_id","type":"flags.14?int"},{"name":"location","type":"flags.15?ChannelLocation"},{"name":"slowmode_seconds","type":"flags.17?int"},{"name":"slowmode_next_send_date","type":"flags.18?int"},{"name":"stats_dc","type":"flags.12?int"},{"name":"pts","type":"int"}],"type":"ChatFull"},{"id":3369552190,"predicate":"chatParticipant","params":[{"name":"user_id","type":"int"},{"name":"inviter_id","type":"int"},{"name":"date","type":"int"}],"type":"ChatParticipant"},{"id":3658699658,"predicate":"chatParticipantCreator","params":[{"name":"user_id","type":"int"}],"type":"ChatParticipant"},{"id":3805733942,"predicate":"chatParticipantAdmin","params":[{"name":"user_id","type":"int"},{"name":"inviter_id","type":"int"},{"name":"date","type":"int"}],"type":"ChatParticipant"},{"id":4237298731,"predicate":"chatParticipantsForbidden","params":[{"name":"flags","type":"#"},{"name":"chat_id","type":"int"},{"name":"self_participant","type":"flags.0?ChatParticipant"}],"type":"ChatParticipants"},{"id":1061556205,"predicate":"chatParticipants","params":[{"name":"chat_id","type":"int"},{"name":"participants","type":"Vector"},{"name":"version","type":"int"}],"type":"ChatParticipants"},{"id":935395612,"predicate":"chatPhotoEmpty","params":[],"type":"ChatPhoto"},{"id":1197267925,"predicate":"chatPhoto","params":[{"name":"photo_small","type":"FileLocation"},{"name":"photo_big","type":"FileLocation"},{"name":"dc_id","type":"int"}],"type":"ChatPhoto"},{"id":2212879956,"predicate":"messageEmpty","params":[{"name":"id","type":"int"}],"type":"Message"},{"id":1160515173,"predicate":"message","params":[{"name":"flags","type":"#"},{"name":"out","type":"flags.1?true"},{"name":"mentioned","type":"flags.4?true"},{"name":"media_unread","type":"flags.5?true"},{"name":"silent","type":"flags.13?true"},{"name":"post","type":"flags.14?true"},{"name":"from_scheduled","type":"flags.18?true"},{"name":"legacy","type":"flags.19?true"},{"name":"edit_hide","type":"flags.21?true"},{"name":"id","type":"int"},{"name":"from_id","type":"flags.8?int"},{"name":"to_id","type":"Peer"},{"name":"fwd_from","type":"flags.2?MessageFwdHeader"},{"name":"via_bot_id","type":"flags.11?int"},{"name":"reply_to_msg_id","type":"flags.3?int"},{"name":"date","type":"int"},{"name":"message","type":"string"},{"name":"media","type":"flags.9?MessageMedia"},{"name":"reply_markup","type":"flags.6?ReplyMarkup"},{"name":"entities","type":"flags.7?Vector"},{"name":"views","type":"flags.10?int"},{"name":"edit_date","type":"flags.15?int"},{"name":"post_author","type":"flags.16?string"},{"name":"grouped_id","type":"flags.17?long"},{"name":"restriction_reason","type":"flags.22?Vector"}],"type":"Message"},{"id":2652479990,"predicate":"messageService","params":[{"name":"flags","type":"#"},{"name":"out","type":"flags.1?true"},{"name":"mentioned","type":"flags.4?true"},{"name":"media_unread","type":"flags.5?true"},{"name":"silent","type":"flags.13?true"},{"name":"post","type":"flags.14?true"},{"name":"legacy","type":"flags.19?true"},{"name":"id","type":"int"},{"name":"from_id","type":"flags.8?int"},{"name":"to_id","type":"Peer"},{"name":"reply_to_msg_id","type":"flags.3?int"},{"name":"date","type":"int"},{"name":"action","type":"MessageAction"}],"type":"Message"},{"id":1038967584,"predicate":"messageMediaEmpty","params":[],"type":"MessageMedia"},{"id":1766936791,"predicate":"messageMediaPhoto","params":[{"name":"flags","type":"#"},{"name":"photo","type":"flags.0?Photo"},{"name":"ttl_seconds","type":"flags.2?int"}],"type":"MessageMedia"},{"id":1457575028,"predicate":"messageMediaGeo","params":[{"name":"geo","type":"GeoPoint"}],"type":"MessageMedia"},{"id":3421653312,"predicate":"messageMediaContact","params":[{"name":"phone_number","type":"string"},{"name":"first_name","type":"string"},{"name":"last_name","type":"string"},{"name":"vcard","type":"string"},{"name":"user_id","type":"int"}],"type":"MessageMedia"},{"id":2676290718,"predicate":"messageMediaUnsupported","params":[],"type":"MessageMedia"},{"id":2628808919,"predicate":"messageMediaDocument","params":[{"name":"flags","type":"#"},{"name":"document","type":"flags.0?Document"},{"name":"ttl_seconds","type":"flags.2?int"}],"type":"MessageMedia"},{"id":2737690112,"predicate":"messageMediaWebPage","params":[{"name":"webpage","type":"WebPage"}],"type":"MessageMedia"},{"id":784356159,"predicate":"messageMediaVenue","params":[{"name":"geo","type":"GeoPoint"},{"name":"title","type":"string"},{"name":"address","type":"string"},{"name":"provider","type":"string"},{"name":"venue_id","type":"string"},{"name":"venue_type","type":"string"}],"type":"MessageMedia"},{"id":4256272392,"predicate":"messageMediaGame","params":[{"name":"game","type":"Game"}],"type":"MessageMedia"},{"id":2220168007,"predicate":"messageMediaInvoice","params":[{"name":"flags","type":"#"},{"name":"shipping_address_requested","type":"flags.1?true"},{"name":"test","type":"flags.3?true"},{"name":"title","type":"string"},{"name":"description","type":"string"},{"name":"photo","type":"flags.0?WebDocument"},{"name":"receipt_msg_id","type":"flags.2?int"},{"name":"currency","type":"string"},{"name":"total_amount","type":"long"},{"name":"start_param","type":"string"}],"type":"MessageMedia"},{"id":2084316681,"predicate":"messageMediaGeoLive","params":[{"name":"geo","type":"GeoPoint"},{"name":"period","type":"int"}],"type":"MessageMedia"},{"id":1272375192,"predicate":"messageMediaPoll","params":[{"name":"poll","type":"Poll"},{"name":"results","type":"PollResults"}],"type":"MessageMedia"},{"id":1065280907,"predicate":"messageMediaDice","params":[{"name":"value","type":"int"},{"name":"emoticon","type":"string"}],"type":"MessageMedia"},{"id":3064919984,"predicate":"messageActionEmpty","params":[],"type":"MessageAction"},{"id":2791541658,"predicate":"messageActionChatCreate","params":[{"name":"title","type":"string"},{"name":"users","type":"Vector"}],"type":"MessageAction"},{"id":3047280218,"predicate":"messageActionChatEditTitle","params":[{"name":"title","type":"string"}],"type":"MessageAction"},{"id":2144015272,"predicate":"messageActionChatEditPhoto","params":[{"name":"photo","type":"Photo"}],"type":"MessageAction"},{"id":2514746351,"predicate":"messageActionChatDeletePhoto","params":[],"type":"MessageAction"},{"id":1217033015,"predicate":"messageActionChatAddUser","params":[{"name":"users","type":"Vector"}],"type":"MessageAction"},{"id":2997787404,"predicate":"messageActionChatDeleteUser","params":[{"name":"user_id","type":"int"}],"type":"MessageAction"},{"id":4171036136,"predicate":"messageActionChatJoinedByLink","params":[{"name":"inviter_id","type":"int"}],"type":"MessageAction"},{"id":2513611922,"predicate":"messageActionChannelCreate","params":[{"name":"title","type":"string"}],"type":"MessageAction"},{"id":1371385889,"predicate":"messageActionChatMigrateTo","params":[{"name":"channel_id","type":"int"}],"type":"MessageAction"},{"id":2958420718,"predicate":"messageActionChannelMigrateFrom","params":[{"name":"title","type":"string"},{"name":"chat_id","type":"int"}],"type":"MessageAction"},{"id":2495428845,"predicate":"messageActionPinMessage","params":[],"type":"MessageAction"},{"id":2679813636,"predicate":"messageActionHistoryClear","params":[],"type":"MessageAction"},{"id":2460428406,"predicate":"messageActionGameScore","params":[{"name":"game_id","type":"long"},{"name":"score","type":"int"}],"type":"MessageAction"},{"id":2402399015,"predicate":"messageActionPaymentSentMe","params":[{"name":"flags","type":"#"},{"name":"currency","type":"string"},{"name":"total_amount","type":"long"},{"name":"payload","type":"bytes"},{"name":"info","type":"flags.0?PaymentRequestedInfo"},{"name":"shipping_option_id","type":"flags.1?string"},{"name":"charge","type":"PaymentCharge"}],"type":"MessageAction"},{"id":1080663248,"predicate":"messageActionPaymentSent","params":[{"name":"currency","type":"string"},{"name":"total_amount","type":"long"}],"type":"MessageAction"},{"id":2162236031,"predicate":"messageActionPhoneCall","params":[{"name":"flags","type":"#"},{"name":"video","type":"flags.2?true"},{"name":"call_id","type":"long"},{"name":"reason","type":"flags.0?PhoneCallDiscardReason"},{"name":"duration","type":"flags.1?int"}],"type":"MessageAction"},{"id":1200788123,"predicate":"messageActionScreenshotTaken","params":[],"type":"MessageAction"},{"id":4209418070,"predicate":"messageActionCustomAction","params":[{"name":"message","type":"string"}],"type":"MessageAction"},{"id":2884218878,"predicate":"messageActionBotAllowed","params":[{"name":"domain","type":"string"}],"type":"MessageAction"},{"id":455635795,"predicate":"messageActionSecureValuesSentMe","params":[{"name":"values","type":"Vector"},{"name":"credentials","type":"SecureCredentialsEncrypted"}],"type":"MessageAction"},{"id":3646710100,"predicate":"messageActionSecureValuesSent","params":[{"name":"types","type":"Vector"}],"type":"MessageAction"},{"id":4092747638,"predicate":"messageActionContactSignUp","params":[],"type":"MessageAction"},{"id":739712882,"predicate":"dialog","params":[{"name":"flags","type":"#"},{"name":"pinned","type":"flags.2?true"},{"name":"unread_mark","type":"flags.3?true"},{"name":"peer","type":"Peer"},{"name":"top_message","type":"int"},{"name":"read_inbox_max_id","type":"int"},{"name":"read_outbox_max_id","type":"int"},{"name":"unread_count","type":"int"},{"name":"unread_mentions_count","type":"int"},{"name":"notify_settings","type":"PeerNotifySettings"},{"name":"pts","type":"flags.0?int"},{"name":"draft","type":"flags.1?DraftMessage"},{"name":"folder_id","type":"flags.4?int"}],"type":"Dialog"},{"id":1908216652,"predicate":"dialogFolder","params":[{"name":"flags","type":"#"},{"name":"pinned","type":"flags.2?true"},{"name":"folder","type":"Folder"},{"name":"peer","type":"Peer"},{"name":"top_message","type":"int"},{"name":"unread_muted_peers_count","type":"int"},{"name":"unread_unmuted_peers_count","type":"int"},{"name":"unread_muted_messages_count","type":"int"},{"name":"unread_unmuted_messages_count","type":"int"}],"type":"Dialog"},{"id":590459437,"predicate":"photoEmpty","params":[{"name":"id","type":"long"}],"type":"Photo"},{"id":3497329829,"predicate":"photo","params":[{"name":"flags","type":"#"},{"name":"has_stickers","type":"flags.0?true"},{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"file_reference","type":"bytes"},{"name":"date","type":"int"},{"name":"sizes","type":"Vector"},{"name":"dc_id","type":"int"}],"type":"Photo"},{"id":236446268,"predicate":"photoSizeEmpty","params":[{"name":"type","type":"string"}],"type":"PhotoSize"},{"id":2009052699,"predicate":"photoSize","params":[{"name":"type","type":"string"},{"name":"location","type":"FileLocation"},{"name":"w","type":"int"},{"name":"h","type":"int"},{"name":"size","type":"int"}],"type":"PhotoSize"},{"id":3920049402,"predicate":"photoCachedSize","params":[{"name":"type","type":"string"},{"name":"location","type":"FileLocation"},{"name":"w","type":"int"},{"name":"h","type":"int"},{"name":"bytes","type":"bytes"}],"type":"PhotoSize"},{"id":3769678894,"predicate":"photoStrippedSize","params":[{"name":"type","type":"string"},{"name":"bytes","type":"bytes"}],"type":"PhotoSize"},{"id":286776671,"predicate":"geoPointEmpty","params":[],"type":"GeoPoint"},{"id":43446532,"predicate":"geoPoint","params":[{"name":"long","type":"double"},{"name":"lat","type":"double"},{"name":"access_hash","type":"long"}],"type":"GeoPoint"},{"id":1577067778,"predicate":"auth.sentCode","params":[{"name":"flags","type":"#"},{"name":"type","type":"auth.SentCodeType"},{"name":"phone_code_hash","type":"string"},{"name":"next_type","type":"flags.1?auth.CodeType"},{"name":"timeout","type":"flags.2?int"}],"type":"auth.SentCode"},{"id":3439659286,"predicate":"auth.authorization","params":[{"name":"flags","type":"#"},{"name":"tmp_sessions","type":"flags.0?int"},{"name":"user","type":"User"}],"type":"auth.Authorization"},{"id":1148485274,"predicate":"auth.authorizationSignUpRequired","params":[{"name":"flags","type":"#"},{"name":"terms_of_service","type":"flags.0?help.TermsOfService"}],"type":"auth.Authorization"},{"id":3751189549,"predicate":"auth.exportedAuthorization","params":[{"name":"id","type":"int"},{"name":"bytes","type":"bytes"}],"type":"auth.ExportedAuthorization"},{"id":3099351820,"predicate":"inputNotifyPeer","params":[{"name":"peer","type":"InputPeer"}],"type":"InputNotifyPeer"},{"id":423314455,"predicate":"inputNotifyUsers","params":[],"type":"InputNotifyPeer"},{"id":1251338318,"predicate":"inputNotifyChats","params":[],"type":"InputNotifyPeer"},{"id":2983951486,"predicate":"inputNotifyBroadcasts","params":[],"type":"InputNotifyPeer"},{"id":2621249934,"predicate":"inputPeerNotifySettings","params":[{"name":"flags","type":"#"},{"name":"show_previews","type":"flags.0?Bool"},{"name":"silent","type":"flags.1?Bool"},{"name":"mute_until","type":"flags.2?int"},{"name":"sound","type":"flags.3?string"}],"type":"InputPeerNotifySettings"},{"id":2941295904,"predicate":"peerNotifySettings","params":[{"name":"flags","type":"#"},{"name":"show_previews","type":"flags.0?Bool"},{"name":"silent","type":"flags.1?Bool"},{"name":"mute_until","type":"flags.2?int"},{"name":"sound","type":"flags.3?string"}],"type":"PeerNotifySettings"},{"id":2172921549,"predicate":"peerSettings","params":[{"name":"flags","type":"#"},{"name":"report_spam","type":"flags.0?true"},{"name":"add_contact","type":"flags.1?true"},{"name":"block_contact","type":"flags.2?true"},{"name":"share_contact","type":"flags.3?true"},{"name":"need_contacts_exception","type":"flags.4?true"},{"name":"report_geo","type":"flags.5?true"}],"type":"PeerSettings"},{"id":2755118061,"predicate":"wallPaper","params":[{"name":"id","type":"long"},{"name":"flags","type":"#"},{"name":"creator","type":"flags.0?true"},{"name":"default","type":"flags.1?true"},{"name":"pattern","type":"flags.3?true"},{"name":"dark","type":"flags.4?true"},{"name":"access_hash","type":"long"},{"name":"slug","type":"string"},{"name":"document","type":"Document"},{"name":"settings","type":"flags.2?WallPaperSettings"}],"type":"WallPaper"},{"id":2331249445,"predicate":"wallPaperNoFile","params":[{"name":"flags","type":"#"},{"name":"default","type":"flags.1?true"},{"name":"dark","type":"flags.4?true"},{"name":"settings","type":"flags.2?WallPaperSettings"}],"type":"WallPaper"},{"id":1490799288,"predicate":"inputReportReasonSpam","params":[],"type":"ReportReason"},{"id":505595789,"predicate":"inputReportReasonViolence","params":[],"type":"ReportReason"},{"id":777640226,"predicate":"inputReportReasonPornography","params":[],"type":"ReportReason"},{"id":2918469347,"predicate":"inputReportReasonChildAbuse","params":[],"type":"ReportReason"},{"id":3782503690,"predicate":"inputReportReasonOther","params":[{"name":"text","type":"string"}],"type":"ReportReason"},{"id":2609510714,"predicate":"inputReportReasonCopyright","params":[],"type":"ReportReason"},{"id":3688169197,"predicate":"inputReportReasonGeoIrrelevant","params":[],"type":"ReportReason"},{"id":3992026130,"predicate":"userFull","params":[{"name":"flags","type":"#"},{"name":"blocked","type":"flags.0?true"},{"name":"phone_calls_available","type":"flags.4?true"},{"name":"phone_calls_private","type":"flags.5?true"},{"name":"can_pin_message","type":"flags.7?true"},{"name":"has_scheduled","type":"flags.12?true"},{"name":"user","type":"User"},{"name":"about","type":"flags.1?string"},{"name":"settings","type":"PeerSettings"},{"name":"profile_photo","type":"flags.2?Photo"},{"name":"notify_settings","type":"PeerNotifySettings"},{"name":"bot_info","type":"flags.3?BotInfo"},{"name":"pinned_msg_id","type":"flags.6?int"},{"name":"common_chats_count","type":"int"},{"name":"folder_id","type":"flags.11?int"}],"type":"UserFull"},{"id":4178692500,"predicate":"contact","params":[{"name":"user_id","type":"int"},{"name":"mutual","type":"Bool"}],"type":"Contact"},{"id":3489825848,"predicate":"importedContact","params":[{"name":"user_id","type":"int"},{"name":"client_id","type":"long"}],"type":"ImportedContact"},{"id":1444661369,"predicate":"contactBlocked","params":[{"name":"user_id","type":"int"},{"name":"date","type":"int"}],"type":"ContactBlocked"},{"id":3546811489,"predicate":"contactStatus","params":[{"name":"user_id","type":"int"},{"name":"status","type":"UserStatus"}],"type":"ContactStatus"},{"id":3075189202,"predicate":"contacts.contactsNotModified","params":[],"type":"contacts.Contacts"},{"id":3941105218,"predicate":"contacts.contacts","params":[{"name":"contacts","type":"Vector"},{"name":"saved_count","type":"int"},{"name":"users","type":"Vector"}],"type":"contacts.Contacts"},{"id":2010127419,"predicate":"contacts.importedContacts","params":[{"name":"imported","type":"Vector"},{"name":"popular_invites","type":"Vector"},{"name":"retry_contacts","type":"Vector"},{"name":"users","type":"Vector"}],"type":"contacts.ImportedContacts"},{"id":471043349,"predicate":"contacts.blocked","params":[{"name":"blocked","type":"Vector"},{"name":"users","type":"Vector"}],"type":"contacts.Blocked"},{"id":2416444065,"predicate":"contacts.blockedSlice","params":[{"name":"count","type":"int"},{"name":"blocked","type":"Vector"},{"name":"users","type":"Vector"}],"type":"contacts.Blocked"},{"id":364538944,"predicate":"messages.dialogs","params":[{"name":"dialogs","type":"Vector"},{"name":"messages","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"messages.Dialogs"},{"id":1910543603,"predicate":"messages.dialogsSlice","params":[{"name":"count","type":"int"},{"name":"dialogs","type":"Vector"},{"name":"messages","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"messages.Dialogs"},{"id":4041467286,"predicate":"messages.dialogsNotModified","params":[{"name":"count","type":"int"}],"type":"messages.Dialogs"},{"id":2356252295,"predicate":"messages.messages","params":[{"name":"messages","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"messages.Messages"},{"id":3371027998,"predicate":"messages.messagesSlice","params":[{"name":"flags","type":"#"},{"name":"inexact","type":"flags.1?true"},{"name":"count","type":"int"},{"name":"next_rate","type":"flags.0?int"},{"name":"messages","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"messages.Messages"},{"id":2569416247,"predicate":"messages.channelMessages","params":[{"name":"flags","type":"#"},{"name":"inexact","type":"flags.1?true"},{"name":"pts","type":"int"},{"name":"count","type":"int"},{"name":"messages","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"messages.Messages"},{"id":1951620897,"predicate":"messages.messagesNotModified","params":[{"name":"count","type":"int"}],"type":"messages.Messages"},{"id":1694474197,"predicate":"messages.chats","params":[{"name":"chats","type":"Vector"}],"type":"messages.Chats"},{"id":2631405892,"predicate":"messages.chatsSlice","params":[{"name":"count","type":"int"},{"name":"chats","type":"Vector"}],"type":"messages.Chats"},{"id":3856126364,"predicate":"messages.chatFull","params":[{"name":"full_chat","type":"ChatFull"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"messages.ChatFull"},{"id":3025955281,"predicate":"messages.affectedHistory","params":[{"name":"pts","type":"int"},{"name":"pts_count","type":"int"},{"name":"offset","type":"int"}],"type":"messages.AffectedHistory"},{"id":1474492012,"predicate":"inputMessagesFilterEmpty","params":[],"type":"MessagesFilter"},{"id":2517214492,"predicate":"inputMessagesFilterPhotos","params":[],"type":"MessagesFilter"},{"id":2680163941,"predicate":"inputMessagesFilterVideo","params":[],"type":"MessagesFilter"},{"id":1458172132,"predicate":"inputMessagesFilterPhotoVideo","params":[],"type":"MessagesFilter"},{"id":2665345416,"predicate":"inputMessagesFilterDocument","params":[],"type":"MessagesFilter"},{"id":2129714567,"predicate":"inputMessagesFilterUrl","params":[],"type":"MessagesFilter"},{"id":4291323271,"predicate":"inputMessagesFilterGif","params":[],"type":"MessagesFilter"},{"id":1358283666,"predicate":"inputMessagesFilterVoice","params":[],"type":"MessagesFilter"},{"id":928101534,"predicate":"inputMessagesFilterMusic","params":[],"type":"MessagesFilter"},{"id":975236280,"predicate":"inputMessagesFilterChatPhotos","params":[],"type":"MessagesFilter"},{"id":2160695144,"predicate":"inputMessagesFilterPhoneCalls","params":[{"name":"flags","type":"#"},{"name":"missed","type":"flags.0?true"}],"type":"MessagesFilter"},{"id":2054952868,"predicate":"inputMessagesFilterRoundVoice","params":[],"type":"MessagesFilter"},{"id":3041516115,"predicate":"inputMessagesFilterRoundVideo","params":[],"type":"MessagesFilter"},{"id":3254314650,"predicate":"inputMessagesFilterMyMentions","params":[],"type":"MessagesFilter"},{"id":3875695885,"predicate":"inputMessagesFilterGeo","params":[],"type":"MessagesFilter"},{"id":3764575107,"predicate":"inputMessagesFilterContacts","params":[],"type":"MessagesFilter"},{"id":522914557,"predicate":"updateNewMessage","params":[{"name":"message","type":"Message"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"Update"},{"id":1318109142,"predicate":"updateMessageID","params":[{"name":"id","type":"int"},{"name":"random_id","type":"long"}],"type":"Update"},{"id":2718806245,"predicate":"updateDeleteMessages","params":[{"name":"messages","type":"Vector"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"Update"},{"id":1548249383,"predicate":"updateUserTyping","params":[{"name":"user_id","type":"int"},{"name":"action","type":"SendMessageAction"}],"type":"Update"},{"id":2590370335,"predicate":"updateChatUserTyping","params":[{"name":"chat_id","type":"int"},{"name":"user_id","type":"int"},{"name":"action","type":"SendMessageAction"}],"type":"Update"},{"id":125178264,"predicate":"updateChatParticipants","params":[{"name":"participants","type":"ChatParticipants"}],"type":"Update"},{"id":469489699,"predicate":"updateUserStatus","params":[{"name":"user_id","type":"int"},{"name":"status","type":"UserStatus"}],"type":"Update"},{"id":2805148531,"predicate":"updateUserName","params":[{"name":"user_id","type":"int"},{"name":"first_name","type":"string"},{"name":"last_name","type":"string"},{"name":"username","type":"string"}],"type":"Update"},{"id":2503031564,"predicate":"updateUserPhoto","params":[{"name":"user_id","type":"int"},{"name":"date","type":"int"},{"name":"photo","type":"UserProfilePhoto"},{"name":"previous","type":"Bool"}],"type":"Update"},{"id":314359194,"predicate":"updateNewEncryptedMessage","params":[{"name":"message","type":"EncryptedMessage"},{"name":"qts","type":"int"}],"type":"Update"},{"id":386986326,"predicate":"updateEncryptedChatTyping","params":[{"name":"chat_id","type":"int"}],"type":"Update"},{"id":3030575245,"predicate":"updateEncryption","params":[{"name":"chat","type":"EncryptedChat"},{"name":"date","type":"int"}],"type":"Update"},{"id":956179895,"predicate":"updateEncryptedMessagesRead","params":[{"name":"chat_id","type":"int"},{"name":"max_date","type":"int"},{"name":"date","type":"int"}],"type":"Update"},{"id":3930787420,"predicate":"updateChatParticipantAdd","params":[{"name":"chat_id","type":"int"},{"name":"user_id","type":"int"},{"name":"inviter_id","type":"int"},{"name":"date","type":"int"},{"name":"version","type":"int"}],"type":"Update"},{"id":1851755554,"predicate":"updateChatParticipantDelete","params":[{"name":"chat_id","type":"int"},{"name":"user_id","type":"int"},{"name":"version","type":"int"}],"type":"Update"},{"id":2388564083,"predicate":"updateDcOptions","params":[{"name":"dc_options","type":"Vector"}],"type":"Update"},{"id":2163009562,"predicate":"updateUserBlocked","params":[{"name":"user_id","type":"int"},{"name":"blocked","type":"Bool"}],"type":"Update"},{"id":3200411887,"predicate":"updateNotifySettings","params":[{"name":"peer","type":"NotifyPeer"},{"name":"notify_settings","type":"PeerNotifySettings"}],"type":"Update"},{"id":3957614617,"predicate":"updateServiceNotification","params":[{"name":"flags","type":"#"},{"name":"popup","type":"flags.0?true"},{"name":"inbox_date","type":"flags.1?int"},{"name":"type","type":"string"},{"name":"message","type":"string"},{"name":"media","type":"MessageMedia"},{"name":"entities","type":"Vector"}],"type":"Update"},{"id":3996854058,"predicate":"updatePrivacy","params":[{"name":"key","type":"PrivacyKey"},{"name":"rules","type":"Vector"}],"type":"Update"},{"id":314130811,"predicate":"updateUserPhone","params":[{"name":"user_id","type":"int"},{"name":"phone","type":"string"}],"type":"Update"},{"id":2627162079,"predicate":"updateReadHistoryInbox","params":[{"name":"flags","type":"#"},{"name":"folder_id","type":"flags.0?int"},{"name":"peer","type":"Peer"},{"name":"max_id","type":"int"},{"name":"still_unread_count","type":"int"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"Update"},{"id":791617983,"predicate":"updateReadHistoryOutbox","params":[{"name":"peer","type":"Peer"},{"name":"max_id","type":"int"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"Update"},{"id":2139689491,"predicate":"updateWebPage","params":[{"name":"webpage","type":"WebPage"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"Update"},{"id":1757493555,"predicate":"updateReadMessagesContents","params":[{"name":"messages","type":"Vector"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"Update"},{"id":3942934523,"predicate":"updateChannelTooLong","params":[{"name":"flags","type":"#"},{"name":"channel_id","type":"int"},{"name":"pts","type":"flags.0?int"}],"type":"Update"},{"id":3067369046,"predicate":"updateChannel","params":[{"name":"channel_id","type":"int"}],"type":"Update"},{"id":1656358105,"predicate":"updateNewChannelMessage","params":[{"name":"message","type":"Message"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"Update"},{"id":856380452,"predicate":"updateReadChannelInbox","params":[{"name":"flags","type":"#"},{"name":"folder_id","type":"flags.0?int"},{"name":"channel_id","type":"int"},{"name":"max_id","type":"int"},{"name":"still_unread_count","type":"int"},{"name":"pts","type":"int"}],"type":"Update"},{"id":3279233481,"predicate":"updateDeleteChannelMessages","params":[{"name":"channel_id","type":"int"},{"name":"messages","type":"Vector"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"Update"},{"id":2560699211,"predicate":"updateChannelMessageViews","params":[{"name":"channel_id","type":"int"},{"name":"id","type":"int"},{"name":"views","type":"int"}],"type":"Update"},{"id":3062896985,"predicate":"updateChatParticipantAdmin","params":[{"name":"chat_id","type":"int"},{"name":"user_id","type":"int"},{"name":"is_admin","type":"Bool"},{"name":"version","type":"int"}],"type":"Update"},{"id":1753886890,"predicate":"updateNewStickerSet","params":[{"name":"stickerset","type":"messages.StickerSet"}],"type":"Update"},{"id":196268545,"predicate":"updateStickerSetsOrder","params":[{"name":"flags","type":"#"},{"name":"masks","type":"flags.0?true"},{"name":"order","type":"Vector"}],"type":"Update"},{"id":1135492588,"predicate":"updateStickerSets","params":[],"type":"Update"},{"id":2473931806,"predicate":"updateSavedGifs","params":[],"type":"Update"},{"id":1417832080,"predicate":"updateBotInlineQuery","params":[{"name":"flags","type":"#"},{"name":"query_id","type":"long"},{"name":"user_id","type":"int"},{"name":"query","type":"string"},{"name":"geo","type":"flags.0?GeoPoint"},{"name":"offset","type":"string"}],"type":"Update"},{"id":239663460,"predicate":"updateBotInlineSend","params":[{"name":"flags","type":"#"},{"name":"user_id","type":"int"},{"name":"query","type":"string"},{"name":"geo","type":"flags.0?GeoPoint"},{"name":"id","type":"string"},{"name":"msg_id","type":"flags.1?InputBotInlineMessageID"}],"type":"Update"},{"id":457133559,"predicate":"updateEditChannelMessage","params":[{"name":"message","type":"Message"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"Update"},{"id":2555978869,"predicate":"updateChannelPinnedMessage","params":[{"name":"channel_id","type":"int"},{"name":"id","type":"int"}],"type":"Update"},{"id":3879028705,"predicate":"updateBotCallbackQuery","params":[{"name":"flags","type":"#"},{"name":"query_id","type":"long"},{"name":"user_id","type":"int"},{"name":"peer","type":"Peer"},{"name":"msg_id","type":"int"},{"name":"chat_instance","type":"long"},{"name":"data","type":"flags.0?bytes"},{"name":"game_short_name","type":"flags.1?string"}],"type":"Update"},{"id":3825430691,"predicate":"updateEditMessage","params":[{"name":"message","type":"Message"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"Update"},{"id":4191320666,"predicate":"updateInlineBotCallbackQuery","params":[{"name":"flags","type":"#"},{"name":"query_id","type":"long"},{"name":"user_id","type":"int"},{"name":"msg_id","type":"InputBotInlineMessageID"},{"name":"chat_instance","type":"long"},{"name":"data","type":"flags.0?bytes"},{"name":"game_short_name","type":"flags.1?string"}],"type":"Update"},{"id":634833351,"predicate":"updateReadChannelOutbox","params":[{"name":"channel_id","type":"int"},{"name":"max_id","type":"int"}],"type":"Update"},{"id":3995842921,"predicate":"updateDraftMessage","params":[{"name":"peer","type":"Peer"},{"name":"draft","type":"DraftMessage"}],"type":"Update"},{"id":1461528386,"predicate":"updateReadFeaturedStickers","params":[],"type":"Update"},{"id":2588027936,"predicate":"updateRecentStickers","params":[],"type":"Update"},{"id":2720652550,"predicate":"updateConfig","params":[],"type":"Update"},{"id":861169551,"predicate":"updatePtsChanged","params":[],"type":"Update"},{"id":1081547008,"predicate":"updateChannelWebPage","params":[{"name":"channel_id","type":"int"},{"name":"webpage","type":"WebPage"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"Update"},{"id":1852826908,"predicate":"updateDialogPinned","params":[{"name":"flags","type":"#"},{"name":"pinned","type":"flags.0?true"},{"name":"folder_id","type":"flags.1?int"},{"name":"peer","type":"DialogPeer"}],"type":"Update"},{"id":4195302562,"predicate":"updatePinnedDialogs","params":[{"name":"flags","type":"#"},{"name":"folder_id","type":"flags.1?int"},{"name":"order","type":"flags.0?Vector"}],"type":"Update"},{"id":2199371971,"predicate":"updateBotWebhookJSON","params":[{"name":"data","type":"DataJSON"}],"type":"Update"},{"id":2610053286,"predicate":"updateBotWebhookJSONQuery","params":[{"name":"query_id","type":"long"},{"name":"data","type":"DataJSON"},{"name":"timeout","type":"int"}],"type":"Update"},{"id":3771582784,"predicate":"updateBotShippingQuery","params":[{"name":"query_id","type":"long"},{"name":"user_id","type":"int"},{"name":"payload","type":"bytes"},{"name":"shipping_address","type":"PostAddress"}],"type":"Update"},{"id":1563376297,"predicate":"updateBotPrecheckoutQuery","params":[{"name":"flags","type":"#"},{"name":"query_id","type":"long"},{"name":"user_id","type":"int"},{"name":"payload","type":"bytes"},{"name":"info","type":"flags.0?PaymentRequestedInfo"},{"name":"shipping_option_id","type":"flags.1?string"},{"name":"currency","type":"string"},{"name":"total_amount","type":"long"}],"type":"Update"},{"id":2869914398,"predicate":"updatePhoneCall","params":[{"name":"phone_call","type":"PhoneCall"}],"type":"Update"},{"id":1180041828,"predicate":"updateLangPackTooLong","params":[{"name":"lang_code","type":"string"}],"type":"Update"},{"id":1442983757,"predicate":"updateLangPack","params":[{"name":"difference","type":"LangPackDifference"}],"type":"Update"},{"id":3843135853,"predicate":"updateFavedStickers","params":[],"type":"Update"},{"id":2307472197,"predicate":"updateChannelReadMessagesContents","params":[{"name":"channel_id","type":"int"},{"name":"messages","type":"Vector"}],"type":"Update"},{"id":1887741886,"predicate":"updateContactsReset","params":[],"type":"Update"},{"id":1893427255,"predicate":"updateChannelAvailableMessages","params":[{"name":"channel_id","type":"int"},{"name":"available_min_id","type":"int"}],"type":"Update"},{"id":3781450179,"predicate":"updateDialogUnreadMark","params":[{"name":"flags","type":"#"},{"name":"unread","type":"flags.0?true"},{"name":"peer","type":"DialogPeer"}],"type":"Update"},{"id":1279515160,"predicate":"updateUserPinnedMessage","params":[{"name":"user_id","type":"int"},{"name":"id","type":"int"}],"type":"Update"},{"id":3775771465,"predicate":"updateChatPinnedMessage","params":[{"name":"chat_id","type":"int"},{"name":"id","type":"int"},{"name":"version","type":"int"}],"type":"Update"},{"id":2896258427,"predicate":"updateMessagePoll","params":[{"name":"flags","type":"#"},{"name":"poll_id","type":"long"},{"name":"poll","type":"flags.0?Poll"},{"name":"results","type":"PollResults"}],"type":"Update"},{"id":1421875280,"predicate":"updateChatDefaultBannedRights","params":[{"name":"peer","type":"Peer"},{"name":"default_banned_rights","type":"ChatBannedRights"},{"name":"version","type":"int"}],"type":"Update"},{"id":422972864,"predicate":"updateFolderPeers","params":[{"name":"folder_peers","type":"Vector"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"Update"},{"id":1786671974,"predicate":"updatePeerSettings","params":[{"name":"peer","type":"Peer"},{"name":"settings","type":"PeerSettings"}],"type":"Update"},{"id":3031420848,"predicate":"updatePeerLocated","params":[{"name":"peers","type":"Vector"}],"type":"Update"},{"id":967122427,"predicate":"updateNewScheduledMessage","params":[{"name":"message","type":"Message"}],"type":"Update"},{"id":2424728814,"predicate":"updateDeleteScheduledMessages","params":[{"name":"peer","type":"Peer"},{"name":"messages","type":"Vector"}],"type":"Update"},{"id":2182544291,"predicate":"updateTheme","params":[{"name":"theme","type":"Theme"}],"type":"Update"},{"id":2267003193,"predicate":"updateGeoLiveViewed","params":[{"name":"peer","type":"Peer"},{"name":"msg_id","type":"int"}],"type":"Update"},{"id":1448076945,"predicate":"updateLoginToken","params":[],"type":"Update"},{"id":1123585836,"predicate":"updateMessagePollVote","params":[{"name":"poll_id","type":"long"},{"name":"user_id","type":"int"},{"name":"options","type":"Vector"}],"type":"Update"},{"id":654302845,"predicate":"updateDialogFilter","params":[{"name":"flags","type":"#"},{"name":"id","type":"int"},{"name":"filter","type":"flags.0?DialogFilter"}],"type":"Update"},{"id":2782339333,"predicate":"updateDialogFilterOrder","params":[{"name":"order","type":"Vector"}],"type":"Update"},{"id":889491791,"predicate":"updateDialogFilters","params":[],"type":"Update"},{"id":643940105,"predicate":"updatePhoneCallSignalingData","params":[{"name":"phone_call_id","type":"long"},{"name":"data","type":"bytes"}],"type":"Update"},{"id":2775329342,"predicate":"updates.state","params":[{"name":"pts","type":"int"},{"name":"qts","type":"int"},{"name":"date","type":"int"},{"name":"seq","type":"int"},{"name":"unread_count","type":"int"}],"type":"updates.State"},{"id":1567990072,"predicate":"updates.differenceEmpty","params":[{"name":"date","type":"int"},{"name":"seq","type":"int"}],"type":"updates.Difference"},{"id":16030880,"predicate":"updates.difference","params":[{"name":"new_messages","type":"Vector"},{"name":"new_encrypted_messages","type":"Vector"},{"name":"other_updates","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"},{"name":"state","type":"updates.State"}],"type":"updates.Difference"},{"id":2835028353,"predicate":"updates.differenceSlice","params":[{"name":"new_messages","type":"Vector"},{"name":"new_encrypted_messages","type":"Vector"},{"name":"other_updates","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"},{"name":"intermediate_state","type":"updates.State"}],"type":"updates.Difference"},{"id":1258196845,"predicate":"updates.differenceTooLong","params":[{"name":"pts","type":"int"}],"type":"updates.Difference"},{"id":3809980286,"predicate":"updatesTooLong","params":[],"type":"Updates"},{"id":2437922577,"predicate":"updateShortMessage","params":[{"name":"flags","type":"#"},{"name":"out","type":"flags.1?true"},{"name":"mentioned","type":"flags.4?true"},{"name":"media_unread","type":"flags.5?true"},{"name":"silent","type":"flags.13?true"},{"name":"id","type":"int"},{"name":"user_id","type":"int"},{"name":"message","type":"string"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"},{"name":"date","type":"int"},{"name":"fwd_from","type":"flags.2?MessageFwdHeader"},{"name":"via_bot_id","type":"flags.11?int"},{"name":"reply_to_msg_id","type":"flags.3?int"},{"name":"entities","type":"flags.7?Vector"}],"type":"Updates"},{"id":377562760,"predicate":"updateShortChatMessage","params":[{"name":"flags","type":"#"},{"name":"out","type":"flags.1?true"},{"name":"mentioned","type":"flags.4?true"},{"name":"media_unread","type":"flags.5?true"},{"name":"silent","type":"flags.13?true"},{"name":"id","type":"int"},{"name":"from_id","type":"int"},{"name":"chat_id","type":"int"},{"name":"message","type":"string"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"},{"name":"date","type":"int"},{"name":"fwd_from","type":"flags.2?MessageFwdHeader"},{"name":"via_bot_id","type":"flags.11?int"},{"name":"reply_to_msg_id","type":"flags.3?int"},{"name":"entities","type":"flags.7?Vector"}],"type":"Updates"},{"id":2027216577,"predicate":"updateShort","params":[{"name":"update","type":"Update"},{"name":"date","type":"int"}],"type":"Updates"},{"id":1918567619,"predicate":"updatesCombined","params":[{"name":"updates","type":"Vector"},{"name":"users","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"date","type":"int"},{"name":"seq_start","type":"int"},{"name":"seq","type":"int"}],"type":"Updates"},{"id":1957577280,"predicate":"updates","params":[{"name":"updates","type":"Vector"},{"name":"users","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"date","type":"int"},{"name":"seq","type":"int"}],"type":"Updates"},{"id":301019932,"predicate":"updateShortSentMessage","params":[{"name":"flags","type":"#"},{"name":"out","type":"flags.1?true"},{"name":"id","type":"int"},{"name":"pts","type":"int"},{"name":"pts_count","type":"int"},{"name":"date","type":"int"},{"name":"media","type":"flags.9?MessageMedia"},{"name":"entities","type":"flags.7?Vector"}],"type":"Updates"},{"id":2378853029,"predicate":"photos.photos","params":[{"name":"photos","type":"Vector"},{"name":"users","type":"Vector"}],"type":"photos.Photos"},{"id":352657236,"predicate":"photos.photosSlice","params":[{"name":"count","type":"int"},{"name":"photos","type":"Vector"},{"name":"users","type":"Vector"}],"type":"photos.Photos"},{"id":539045032,"predicate":"photos.photo","params":[{"name":"photo","type":"Photo"},{"name":"users","type":"Vector"}],"type":"photos.Photo"},{"id":157948117,"predicate":"upload.file","params":[{"name":"type","type":"storage.FileType"},{"name":"mtime","type":"int"},{"name":"bytes","type":"bytes"}],"type":"upload.File"},{"id":4052539972,"predicate":"upload.fileCdnRedirect","params":[{"name":"dc_id","type":"int"},{"name":"file_token","type":"bytes"},{"name":"encryption_key","type":"bytes"},{"name":"encryption_iv","type":"bytes"},{"name":"file_hashes","type":"Vector"}],"type":"upload.File"},{"id":414687501,"predicate":"dcOption","params":[{"name":"flags","type":"#"},{"name":"ipv6","type":"flags.0?true"},{"name":"media_only","type":"flags.1?true"},{"name":"tcpo_only","type":"flags.2?true"},{"name":"cdn","type":"flags.3?true"},{"name":"static","type":"flags.4?true"},{"name":"id","type":"int"},{"name":"ip_address","type":"string"},{"name":"port","type":"int"},{"name":"secret","type":"flags.10?bytes"}],"type":"DcOption"},{"id":856375399,"predicate":"config","params":[{"name":"flags","type":"#"},{"name":"phonecalls_enabled","type":"flags.1?true"},{"name":"default_p2p_contacts","type":"flags.3?true"},{"name":"preload_featured_stickers","type":"flags.4?true"},{"name":"ignore_phone_entities","type":"flags.5?true"},{"name":"revoke_pm_inbox","type":"flags.6?true"},{"name":"blocked_mode","type":"flags.8?true"},{"name":"pfs_enabled","type":"flags.13?true"},{"name":"date","type":"int"},{"name":"expires","type":"int"},{"name":"test_mode","type":"Bool"},{"name":"this_dc","type":"int"},{"name":"dc_options","type":"Vector"},{"name":"dc_txt_domain_name","type":"string"},{"name":"chat_size_max","type":"int"},{"name":"megagroup_size_max","type":"int"},{"name":"forwarded_count_max","type":"int"},{"name":"online_update_period_ms","type":"int"},{"name":"offline_blur_timeout_ms","type":"int"},{"name":"offline_idle_timeout_ms","type":"int"},{"name":"online_cloud_timeout_ms","type":"int"},{"name":"notify_cloud_delay_ms","type":"int"},{"name":"notify_default_delay_ms","type":"int"},{"name":"push_chat_period_ms","type":"int"},{"name":"push_chat_limit","type":"int"},{"name":"saved_gifs_limit","type":"int"},{"name":"edit_time_limit","type":"int"},{"name":"revoke_time_limit","type":"int"},{"name":"revoke_pm_time_limit","type":"int"},{"name":"rating_e_decay","type":"int"},{"name":"stickers_recent_limit","type":"int"},{"name":"stickers_faved_limit","type":"int"},{"name":"channels_read_media_period","type":"int"},{"name":"tmp_sessions","type":"flags.0?int"},{"name":"pinned_dialogs_count_max","type":"int"},{"name":"pinned_infolder_count_max","type":"int"},{"name":"call_receive_timeout_ms","type":"int"},{"name":"call_ring_timeout_ms","type":"int"},{"name":"call_connect_timeout_ms","type":"int"},{"name":"call_packet_timeout_ms","type":"int"},{"name":"me_url_prefix","type":"string"},{"name":"autoupdate_url_prefix","type":"flags.7?string"},{"name":"gif_search_username","type":"flags.9?string"},{"name":"venue_search_username","type":"flags.10?string"},{"name":"img_search_username","type":"flags.11?string"},{"name":"static_maps_provider","type":"flags.12?string"},{"name":"caption_length_max","type":"int"},{"name":"message_length_max","type":"int"},{"name":"webfile_dc_id","type":"int"},{"name":"suggested_lang_code","type":"flags.2?string"},{"name":"lang_pack_version","type":"flags.2?int"},{"name":"base_lang_pack_version","type":"flags.2?int"}],"type":"Config"},{"id":2384074613,"predicate":"nearestDc","params":[{"name":"country","type":"string"},{"name":"this_dc","type":"int"},{"name":"nearest_dc","type":"int"}],"type":"NearestDc"},{"id":497489295,"predicate":"help.appUpdate","params":[{"name":"flags","type":"#"},{"name":"can_not_skip","type":"flags.0?true"},{"name":"id","type":"int"},{"name":"version","type":"string"},{"name":"text","type":"string"},{"name":"entities","type":"Vector"},{"name":"document","type":"flags.1?Document"},{"name":"url","type":"flags.2?string"}],"type":"help.AppUpdate"},{"id":3294258486,"predicate":"help.noAppUpdate","params":[],"type":"help.AppUpdate"},{"id":415997816,"predicate":"help.inviteText","params":[{"name":"message","type":"string"}],"type":"help.InviteText"},{"id":2877210784,"predicate":"encryptedChatEmpty","params":[{"name":"id","type":"int"}],"type":"EncryptedChat"},{"id":1006044124,"predicate":"encryptedChatWaiting","params":[{"name":"id","type":"int"},{"name":"access_hash","type":"long"},{"name":"date","type":"int"},{"name":"admin_id","type":"int"},{"name":"participant_id","type":"int"}],"type":"EncryptedChat"},{"id":3363328638,"predicate":"encryptedChatRequested","params":[{"name":"id","type":"int"},{"name":"access_hash","type":"long"},{"name":"date","type":"int"},{"name":"admin_id","type":"int"},{"name":"participant_id","type":"int"},{"name":"g_a","type":"bytes"}],"type":"EncryptedChat"},{"id":4199992886,"predicate":"encryptedChat","params":[{"name":"id","type":"int"},{"name":"access_hash","type":"long"},{"name":"date","type":"int"},{"name":"admin_id","type":"int"},{"name":"participant_id","type":"int"},{"name":"g_a_or_b","type":"bytes"},{"name":"key_fingerprint","type":"long"}],"type":"EncryptedChat"},{"id":332848423,"predicate":"encryptedChatDiscarded","params":[{"name":"id","type":"int"}],"type":"EncryptedChat"},{"id":4047615457,"predicate":"inputEncryptedChat","params":[{"name":"chat_id","type":"int"},{"name":"access_hash","type":"long"}],"type":"InputEncryptedChat"},{"id":3256830334,"predicate":"encryptedFileEmpty","params":[],"type":"EncryptedFile"},{"id":1248893260,"predicate":"encryptedFile","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"size","type":"int"},{"name":"dc_id","type":"int"},{"name":"key_fingerprint","type":"int"}],"type":"EncryptedFile"},{"id":406307684,"predicate":"inputEncryptedFileEmpty","params":[],"type":"InputEncryptedFile"},{"id":1690108678,"predicate":"inputEncryptedFileUploaded","params":[{"name":"id","type":"long"},{"name":"parts","type":"int"},{"name":"md5_checksum","type":"string"},{"name":"key_fingerprint","type":"int"}],"type":"InputEncryptedFile"},{"id":1511503333,"predicate":"inputEncryptedFile","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"}],"type":"InputEncryptedFile"},{"id":767652808,"predicate":"inputEncryptedFileBigUploaded","params":[{"name":"id","type":"long"},{"name":"parts","type":"int"},{"name":"key_fingerprint","type":"int"}],"type":"InputEncryptedFile"},{"id":3977822488,"predicate":"encryptedMessage","params":[{"name":"random_id","type":"long"},{"name":"chat_id","type":"int"},{"name":"date","type":"int"},{"name":"bytes","type":"bytes"},{"name":"file","type":"EncryptedFile"}],"type":"EncryptedMessage"},{"id":594758406,"predicate":"encryptedMessageService","params":[{"name":"random_id","type":"long"},{"name":"chat_id","type":"int"},{"name":"date","type":"int"},{"name":"bytes","type":"bytes"}],"type":"EncryptedMessage"},{"id":3236054581,"predicate":"messages.dhConfigNotModified","params":[{"name":"random","type":"bytes"}],"type":"messages.DhConfig"},{"id":740433629,"predicate":"messages.dhConfig","params":[{"name":"g","type":"int"},{"name":"p","type":"bytes"},{"name":"version","type":"int"},{"name":"random","type":"bytes"}],"type":"messages.DhConfig"},{"id":1443858741,"predicate":"messages.sentEncryptedMessage","params":[{"name":"date","type":"int"}],"type":"messages.SentEncryptedMessage"},{"id":2492727090,"predicate":"messages.sentEncryptedFile","params":[{"name":"date","type":"int"},{"name":"file","type":"EncryptedFile"}],"type":"messages.SentEncryptedMessage"},{"id":1928391342,"predicate":"inputDocumentEmpty","params":[],"type":"InputDocument"},{"id":448771445,"predicate":"inputDocument","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"file_reference","type":"bytes"}],"type":"InputDocument"},{"id":922273905,"predicate":"documentEmpty","params":[{"name":"id","type":"long"}],"type":"Document"},{"id":512177195,"predicate":"document","params":[{"name":"flags","type":"#"},{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"file_reference","type":"bytes"},{"name":"date","type":"int"},{"name":"mime_type","type":"string"},{"name":"size","type":"int"},{"name":"thumbs","type":"flags.0?Vector"},{"name":"video_thumbs","type":"flags.1?Vector"},{"name":"dc_id","type":"int"},{"name":"attributes","type":"Vector"}],"type":"Document"},{"id":398898678,"predicate":"help.support","params":[{"name":"phone_number","type":"string"},{"name":"user","type":"User"}],"type":"help.Support"},{"id":2681474008,"predicate":"notifyPeer","params":[{"name":"peer","type":"Peer"}],"type":"NotifyPeer"},{"id":3033021260,"predicate":"notifyUsers","params":[],"type":"NotifyPeer"},{"id":3221737155,"predicate":"notifyChats","params":[],"type":"NotifyPeer"},{"id":3591563503,"predicate":"notifyBroadcasts","params":[],"type":"NotifyPeer"},{"id":381645902,"predicate":"sendMessageTypingAction","params":[],"type":"SendMessageAction"},{"id":4250847477,"predicate":"sendMessageCancelAction","params":[],"type":"SendMessageAction"},{"id":2710034031,"predicate":"sendMessageRecordVideoAction","params":[],"type":"SendMessageAction"},{"id":3916839660,"predicate":"sendMessageUploadVideoAction","params":[{"name":"progress","type":"int"}],"type":"SendMessageAction"},{"id":3576656887,"predicate":"sendMessageRecordAudioAction","params":[],"type":"SendMessageAction"},{"id":4082227115,"predicate":"sendMessageUploadAudioAction","params":[{"name":"progress","type":"int"}],"type":"SendMessageAction"},{"id":3520285222,"predicate":"sendMessageUploadPhotoAction","params":[{"name":"progress","type":"int"}],"type":"SendMessageAction"},{"id":2852968932,"predicate":"sendMessageUploadDocumentAction","params":[{"name":"progress","type":"int"}],"type":"SendMessageAction"},{"id":393186209,"predicate":"sendMessageGeoLocationAction","params":[],"type":"SendMessageAction"},{"id":1653390447,"predicate":"sendMessageChooseContactAction","params":[],"type":"SendMessageAction"},{"id":3714748232,"predicate":"sendMessageGamePlayAction","params":[],"type":"SendMessageAction"},{"id":2297593788,"predicate":"sendMessageRecordRoundAction","params":[],"type":"SendMessageAction"},{"id":608050278,"predicate":"sendMessageUploadRoundAction","params":[{"name":"progress","type":"int"}],"type":"SendMessageAction"},{"id":3004386717,"predicate":"contacts.found","params":[{"name":"my_results","type":"Vector"},{"name":"results","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"contacts.Found"},{"id":1335282456,"predicate":"inputPrivacyKeyStatusTimestamp","params":[],"type":"InputPrivacyKey"},{"id":3187344422,"predicate":"inputPrivacyKeyChatInvite","params":[],"type":"InputPrivacyKey"},{"id":4206550111,"predicate":"inputPrivacyKeyPhoneCall","params":[],"type":"InputPrivacyKey"},{"id":3684593874,"predicate":"inputPrivacyKeyPhoneP2P","params":[],"type":"InputPrivacyKey"},{"id":2765966344,"predicate":"inputPrivacyKeyForwards","params":[],"type":"InputPrivacyKey"},{"id":1461304012,"predicate":"inputPrivacyKeyProfilePhoto","params":[],"type":"InputPrivacyKey"},{"id":55761658,"predicate":"inputPrivacyKeyPhoneNumber","params":[],"type":"InputPrivacyKey"},{"id":3508640733,"predicate":"inputPrivacyKeyAddedByPhone","params":[],"type":"InputPrivacyKey"},{"id":3157175088,"predicate":"privacyKeyStatusTimestamp","params":[],"type":"PrivacyKey"},{"id":1343122938,"predicate":"privacyKeyChatInvite","params":[],"type":"PrivacyKey"},{"id":1030105979,"predicate":"privacyKeyPhoneCall","params":[],"type":"PrivacyKey"},{"id":961092808,"predicate":"privacyKeyPhoneP2P","params":[],"type":"PrivacyKey"},{"id":1777096355,"predicate":"privacyKeyForwards","params":[],"type":"PrivacyKey"},{"id":2517966829,"predicate":"privacyKeyProfilePhoto","params":[],"type":"PrivacyKey"},{"id":3516589165,"predicate":"privacyKeyPhoneNumber","params":[],"type":"PrivacyKey"},{"id":1124062251,"predicate":"privacyKeyAddedByPhone","params":[],"type":"PrivacyKey"},{"id":218751099,"predicate":"inputPrivacyValueAllowContacts","params":[],"type":"InputPrivacyRule"},{"id":407582158,"predicate":"inputPrivacyValueAllowAll","params":[],"type":"InputPrivacyRule"},{"id":320652927,"predicate":"inputPrivacyValueAllowUsers","params":[{"name":"users","type":"Vector"}],"type":"InputPrivacyRule"},{"id":195371015,"predicate":"inputPrivacyValueDisallowContacts","params":[],"type":"InputPrivacyRule"},{"id":3597362889,"predicate":"inputPrivacyValueDisallowAll","params":[],"type":"InputPrivacyRule"},{"id":2417034343,"predicate":"inputPrivacyValueDisallowUsers","params":[{"name":"users","type":"Vector"}],"type":"InputPrivacyRule"},{"id":1283572154,"predicate":"inputPrivacyValueAllowChatParticipants","params":[{"name":"chats","type":"Vector"}],"type":"InputPrivacyRule"},{"id":3626197935,"predicate":"inputPrivacyValueDisallowChatParticipants","params":[{"name":"chats","type":"Vector"}],"type":"InputPrivacyRule"},{"id":4294843308,"predicate":"privacyValueAllowContacts","params":[],"type":"PrivacyRule"},{"id":1698855810,"predicate":"privacyValueAllowAll","params":[],"type":"PrivacyRule"},{"id":1297858060,"predicate":"privacyValueAllowUsers","params":[{"name":"users","type":"Vector"}],"type":"PrivacyRule"},{"id":4169726490,"predicate":"privacyValueDisallowContacts","params":[],"type":"PrivacyRule"},{"id":2339628899,"predicate":"privacyValueDisallowAll","params":[],"type":"PrivacyRule"},{"id":209668535,"predicate":"privacyValueDisallowUsers","params":[{"name":"users","type":"Vector"}],"type":"PrivacyRule"},{"id":415136107,"predicate":"privacyValueAllowChatParticipants","params":[{"name":"chats","type":"Vector"}],"type":"PrivacyRule"},{"id":2897086096,"predicate":"privacyValueDisallowChatParticipants","params":[{"name":"chats","type":"Vector"}],"type":"PrivacyRule"},{"id":1352683077,"predicate":"account.privacyRules","params":[{"name":"rules","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"account.PrivacyRules"},{"id":3100684255,"predicate":"accountDaysTTL","params":[{"name":"days","type":"int"}],"type":"AccountDaysTTL"},{"id":1815593308,"predicate":"documentAttributeImageSize","params":[{"name":"w","type":"int"},{"name":"h","type":"int"}],"type":"DocumentAttribute"},{"id":297109817,"predicate":"documentAttributeAnimated","params":[],"type":"DocumentAttribute"},{"id":1662637586,"predicate":"documentAttributeSticker","params":[{"name":"flags","type":"#"},{"name":"mask","type":"flags.1?true"},{"name":"alt","type":"string"},{"name":"stickerset","type":"InputStickerSet"},{"name":"mask_coords","type":"flags.0?MaskCoords"}],"type":"DocumentAttribute"},{"id":250621158,"predicate":"documentAttributeVideo","params":[{"name":"flags","type":"#"},{"name":"round_message","type":"flags.0?true"},{"name":"supports_streaming","type":"flags.1?true"},{"name":"duration","type":"int"},{"name":"w","type":"int"},{"name":"h","type":"int"}],"type":"DocumentAttribute"},{"id":2555574726,"predicate":"documentAttributeAudio","params":[{"name":"flags","type":"#"},{"name":"voice","type":"flags.10?true"},{"name":"duration","type":"int"},{"name":"title","type":"flags.0?string"},{"name":"performer","type":"flags.1?string"},{"name":"waveform","type":"flags.2?bytes"}],"type":"DocumentAttribute"},{"id":358154344,"predicate":"documentAttributeFilename","params":[{"name":"file_name","type":"string"}],"type":"DocumentAttribute"},{"id":2550256375,"predicate":"documentAttributeHasStickers","params":[],"type":"DocumentAttribute"},{"id":4050950690,"predicate":"messages.stickersNotModified","params":[],"type":"messages.Stickers"},{"id":3831077821,"predicate":"messages.stickers","params":[{"name":"hash","type":"int"},{"name":"stickers","type":"Vector"}],"type":"messages.Stickers"},{"id":313694676,"predicate":"stickerPack","params":[{"name":"emoticon","type":"string"},{"name":"documents","type":"Vector"}],"type":"StickerPack"},{"id":3898999491,"predicate":"messages.allStickersNotModified","params":[],"type":"messages.AllStickers"},{"id":3992797279,"predicate":"messages.allStickers","params":[{"name":"hash","type":"int"},{"name":"sets","type":"Vector"}],"type":"messages.AllStickers"},{"id":2228326789,"predicate":"messages.affectedMessages","params":[{"name":"pts","type":"int"},{"name":"pts_count","type":"int"}],"type":"messages.AffectedMessages"},{"id":3943987176,"predicate":"webPageEmpty","params":[{"name":"id","type":"long"}],"type":"WebPage"},{"id":3313949212,"predicate":"webPagePending","params":[{"name":"id","type":"long"},{"name":"date","type":"int"}],"type":"WebPage"},{"id":3902555570,"predicate":"webPage","params":[{"name":"flags","type":"#"},{"name":"id","type":"long"},{"name":"url","type":"string"},{"name":"display_url","type":"string"},{"name":"hash","type":"int"},{"name":"type","type":"flags.0?string"},{"name":"site_name","type":"flags.1?string"},{"name":"title","type":"flags.2?string"},{"name":"description","type":"flags.3?string"},{"name":"photo","type":"flags.4?Photo"},{"name":"embed_url","type":"flags.5?string"},{"name":"embed_type","type":"flags.5?string"},{"name":"embed_width","type":"flags.6?int"},{"name":"embed_height","type":"flags.6?int"},{"name":"duration","type":"flags.7?int"},{"name":"author","type":"flags.8?string"},{"name":"document","type":"flags.9?Document"},{"name":"cached_page","type":"flags.10?Page"},{"name":"attributes","type":"flags.12?Vector"}],"type":"WebPage"},{"id":1930545681,"predicate":"webPageNotModified","params":[{"name":"flags","type":"#"},{"name":"cached_page_views","type":"flags.0?int"}],"type":"WebPage"},{"id":2902578717,"predicate":"authorization","params":[{"name":"flags","type":"#"},{"name":"current","type":"flags.0?true"},{"name":"official_app","type":"flags.1?true"},{"name":"password_pending","type":"flags.2?true"},{"name":"hash","type":"long"},{"name":"device_model","type":"string"},{"name":"platform","type":"string"},{"name":"system_version","type":"string"},{"name":"api_id","type":"int"},{"name":"app_name","type":"string"},{"name":"app_version","type":"string"},{"name":"date_created","type":"int"},{"name":"date_active","type":"int"},{"name":"ip","type":"string"},{"name":"country","type":"string"},{"name":"region","type":"string"}],"type":"Authorization"},{"id":307276766,"predicate":"account.authorizations","params":[{"name":"authorizations","type":"Vector"}],"type":"account.Authorizations"},{"id":2904965624,"predicate":"account.password","params":[{"name":"flags","type":"#"},{"name":"has_recovery","type":"flags.0?true"},{"name":"has_secure_values","type":"flags.1?true"},{"name":"has_password","type":"flags.2?true"},{"name":"current_algo","type":"flags.2?PasswordKdfAlgo"},{"name":"srp_B","type":"flags.2?bytes"},{"name":"srp_id","type":"flags.2?long"},{"name":"hint","type":"flags.3?string"},{"name":"email_unconfirmed_pattern","type":"flags.4?string"},{"name":"new_algo","type":"PasswordKdfAlgo"},{"name":"new_secure_algo","type":"SecurePasswordKdfAlgo"},{"name":"secure_random","type":"bytes"}],"type":"account.Password"},{"id":2589733861,"predicate":"account.passwordSettings","params":[{"name":"flags","type":"#"},{"name":"email","type":"flags.0?string"},{"name":"secure_settings","type":"flags.1?SecureSecretSettings"}],"type":"account.PasswordSettings"},{"id":3258394569,"predicate":"account.passwordInputSettings","params":[{"name":"flags","type":"#"},{"name":"new_algo","type":"flags.0?PasswordKdfAlgo"},{"name":"new_password_hash","type":"flags.0?bytes"},{"name":"hint","type":"flags.0?string"},{"name":"email","type":"flags.1?string"},{"name":"new_secure_settings","type":"flags.2?SecureSecretSettings"}],"type":"account.PasswordInputSettings"},{"id":326715557,"predicate":"auth.passwordRecovery","params":[{"name":"email_pattern","type":"string"}],"type":"auth.PasswordRecovery"},{"id":2743383929,"predicate":"receivedNotifyMessage","params":[{"name":"id","type":"int"},{"name":"flags","type":"int"}],"type":"ReceivedNotifyMessage"},{"id":1776236393,"predicate":"chatInviteEmpty","params":[],"type":"ExportedChatInvite"},{"id":4230874556,"predicate":"chatInviteExported","params":[{"name":"link","type":"string"}],"type":"ExportedChatInvite"},{"id":1516793212,"predicate":"chatInviteAlready","params":[{"name":"chat","type":"Chat"}],"type":"ChatInvite"},{"id":3754096014,"predicate":"chatInvite","params":[{"name":"flags","type":"#"},{"name":"channel","type":"flags.0?true"},{"name":"broadcast","type":"flags.1?true"},{"name":"public","type":"flags.2?true"},{"name":"megagroup","type":"flags.3?true"},{"name":"title","type":"string"},{"name":"photo","type":"Photo"},{"name":"participants_count","type":"int"},{"name":"participants","type":"flags.4?Vector"}],"type":"ChatInvite"},{"id":4290128789,"predicate":"inputStickerSetEmpty","params":[],"type":"InputStickerSet"},{"id":2649203305,"predicate":"inputStickerSetID","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"}],"type":"InputStickerSet"},{"id":2250033312,"predicate":"inputStickerSetShortName","params":[{"name":"short_name","type":"string"}],"type":"InputStickerSet"},{"id":42402760,"predicate":"inputStickerSetAnimatedEmoji","params":[],"type":"InputStickerSet"},{"id":3867103758,"predicate":"inputStickerSetDice","params":[{"name":"emoticon","type":"string"}],"type":"InputStickerSet"},{"id":4004802343,"predicate":"stickerSet","params":[{"name":"flags","type":"#"},{"name":"archived","type":"flags.1?true"},{"name":"official","type":"flags.2?true"},{"name":"masks","type":"flags.3?true"},{"name":"animated","type":"flags.5?true"},{"name":"installed_date","type":"flags.0?int"},{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"title","type":"string"},{"name":"short_name","type":"string"},{"name":"thumb","type":"flags.4?PhotoSize"},{"name":"thumb_dc_id","type":"flags.4?int"},{"name":"count","type":"int"},{"name":"hash","type":"int"}],"type":"StickerSet"},{"id":3054118054,"predicate":"messages.stickerSet","params":[{"name":"set","type":"StickerSet"},{"name":"packs","type":"Vector"},{"name":"documents","type":"Vector"}],"type":"messages.StickerSet"},{"id":3262826695,"predicate":"botCommand","params":[{"name":"command","type":"string"},{"name":"description","type":"string"}],"type":"BotCommand"},{"id":2565348666,"predicate":"botInfo","params":[{"name":"user_id","type":"int"},{"name":"description","type":"string"},{"name":"commands","type":"Vector"}],"type":"BotInfo"},{"id":2734311552,"predicate":"keyboardButton","params":[{"name":"text","type":"string"}],"type":"KeyboardButton"},{"id":629866245,"predicate":"keyboardButtonUrl","params":[{"name":"text","type":"string"},{"name":"url","type":"string"}],"type":"KeyboardButton"},{"id":1748655686,"predicate":"keyboardButtonCallback","params":[{"name":"text","type":"string"},{"name":"data","type":"bytes"}],"type":"KeyboardButton"},{"id":2976541737,"predicate":"keyboardButtonRequestPhone","params":[{"name":"text","type":"string"}],"type":"KeyboardButton"},{"id":4235815743,"predicate":"keyboardButtonRequestGeoLocation","params":[{"name":"text","type":"string"}],"type":"KeyboardButton"},{"id":90744648,"predicate":"keyboardButtonSwitchInline","params":[{"name":"flags","type":"#"},{"name":"same_peer","type":"flags.0?true"},{"name":"text","type":"string"},{"name":"query","type":"string"}],"type":"KeyboardButton"},{"id":1358175439,"predicate":"keyboardButtonGame","params":[{"name":"text","type":"string"}],"type":"KeyboardButton"},{"id":2950250427,"predicate":"keyboardButtonBuy","params":[{"name":"text","type":"string"}],"type":"KeyboardButton"},{"id":280464681,"predicate":"keyboardButtonUrlAuth","params":[{"name":"flags","type":"#"},{"name":"text","type":"string"},{"name":"fwd_text","type":"flags.0?string"},{"name":"url","type":"string"},{"name":"button_id","type":"int"}],"type":"KeyboardButton"},{"id":3492708308,"predicate":"inputKeyboardButtonUrlAuth","params":[{"name":"flags","type":"#"},{"name":"request_write_access","type":"flags.0?true"},{"name":"text","type":"string"},{"name":"fwd_text","type":"flags.1?string"},{"name":"url","type":"string"},{"name":"bot","type":"InputUser"}],"type":"KeyboardButton"},{"id":3150401885,"predicate":"keyboardButtonRequestPoll","params":[{"name":"flags","type":"#"},{"name":"quiz","type":"flags.0?Bool"},{"name":"text","type":"string"}],"type":"KeyboardButton"},{"id":2002815875,"predicate":"keyboardButtonRow","params":[{"name":"buttons","type":"Vector"}],"type":"KeyboardButtonRow"},{"id":2688441221,"predicate":"replyKeyboardHide","params":[{"name":"flags","type":"#"},{"name":"selective","type":"flags.2?true"}],"type":"ReplyMarkup"},{"id":4094724768,"predicate":"replyKeyboardForceReply","params":[{"name":"flags","type":"#"},{"name":"single_use","type":"flags.1?true"},{"name":"selective","type":"flags.2?true"}],"type":"ReplyMarkup"},{"id":889353612,"predicate":"replyKeyboardMarkup","params":[{"name":"flags","type":"#"},{"name":"resize","type":"flags.0?true"},{"name":"single_use","type":"flags.1?true"},{"name":"selective","type":"flags.2?true"},{"name":"rows","type":"Vector"}],"type":"ReplyMarkup"},{"id":1218642516,"predicate":"replyInlineMarkup","params":[{"name":"rows","type":"Vector"}],"type":"ReplyMarkup"},{"id":3146955413,"predicate":"messageEntityUnknown","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":4194588573,"predicate":"messageEntityMention","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":1868782349,"predicate":"messageEntityHashtag","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":1827637959,"predicate":"messageEntityBotCommand","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":1859134776,"predicate":"messageEntityUrl","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":1692693954,"predicate":"messageEntityEmail","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":3177253833,"predicate":"messageEntityBold","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":2188348256,"predicate":"messageEntityItalic","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":681706865,"predicate":"messageEntityCode","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":1938967520,"predicate":"messageEntityPre","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"},{"name":"language","type":"string"}],"type":"MessageEntity"},{"id":1990644519,"predicate":"messageEntityTextUrl","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"},{"name":"url","type":"string"}],"type":"MessageEntity"},{"id":892193368,"predicate":"messageEntityMentionName","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"},{"name":"user_id","type":"int"}],"type":"MessageEntity"},{"id":546203849,"predicate":"inputMessageEntityMentionName","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"},{"name":"user_id","type":"InputUser"}],"type":"MessageEntity"},{"id":2607407947,"predicate":"messageEntityPhone","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":1280209983,"predicate":"messageEntityCashtag","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":2622389899,"predicate":"messageEntityUnderline","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":3204879316,"predicate":"messageEntityStrike","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":34469328,"predicate":"messageEntityBlockquote","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":1981704948,"predicate":"messageEntityBankCard","params":[{"name":"offset","type":"int"},{"name":"length","type":"int"}],"type":"MessageEntity"},{"id":4002160262,"predicate":"inputChannelEmpty","params":[],"type":"InputChannel"},{"id":2951442734,"predicate":"inputChannel","params":[{"name":"channel_id","type":"int"},{"name":"access_hash","type":"long"}],"type":"InputChannel"},{"id":707290417,"predicate":"inputChannelFromMessage","params":[{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int"},{"name":"channel_id","type":"int"}],"type":"InputChannel"},{"id":2131196633,"predicate":"contacts.resolvedPeer","params":[{"name":"peer","type":"Peer"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"contacts.ResolvedPeer"},{"id":182649427,"predicate":"messageRange","params":[{"name":"min_id","type":"int"},{"name":"max_id","type":"int"}],"type":"MessageRange"},{"id":1041346555,"predicate":"updates.channelDifferenceEmpty","params":[{"name":"flags","type":"#"},{"name":"final","type":"flags.0?true"},{"name":"pts","type":"int"},{"name":"timeout","type":"flags.1?int"}],"type":"updates.ChannelDifference"},{"id":2763835134,"predicate":"updates.channelDifferenceTooLong","params":[{"name":"flags","type":"#"},{"name":"final","type":"flags.0?true"},{"name":"timeout","type":"flags.1?int"},{"name":"dialog","type":"Dialog"},{"name":"messages","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"updates.ChannelDifference"},{"id":543450958,"predicate":"updates.channelDifference","params":[{"name":"flags","type":"#"},{"name":"final","type":"flags.0?true"},{"name":"pts","type":"int"},{"name":"timeout","type":"flags.1?int"},{"name":"new_messages","type":"Vector"},{"name":"other_updates","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"updates.ChannelDifference"},{"id":2496933607,"predicate":"channelMessagesFilterEmpty","params":[],"type":"ChannelMessagesFilter"},{"id":3447183703,"predicate":"channelMessagesFilter","params":[{"name":"flags","type":"#"},{"name":"exclude_new_messages","type":"flags.1?true"},{"name":"ranges","type":"Vector"}],"type":"ChannelMessagesFilter"},{"id":367766557,"predicate":"channelParticipant","params":[{"name":"user_id","type":"int"},{"name":"date","type":"int"}],"type":"ChannelParticipant"},{"id":2737347181,"predicate":"channelParticipantSelf","params":[{"name":"user_id","type":"int"},{"name":"inviter_id","type":"int"},{"name":"date","type":"int"}],"type":"ChannelParticipant"},{"id":2156729764,"predicate":"channelParticipantCreator","params":[{"name":"flags","type":"#"},{"name":"user_id","type":"int"},{"name":"rank","type":"flags.0?string"}],"type":"ChannelParticipant"},{"id":3435051951,"predicate":"channelParticipantAdmin","params":[{"name":"flags","type":"#"},{"name":"can_edit","type":"flags.0?true"},{"name":"self","type":"flags.1?true"},{"name":"user_id","type":"int"},{"name":"inviter_id","type":"flags.1?int"},{"name":"promoted_by","type":"int"},{"name":"date","type":"int"},{"name":"admin_rights","type":"ChatAdminRights"},{"name":"rank","type":"flags.2?string"}],"type":"ChannelParticipant"},{"id":470789295,"predicate":"channelParticipantBanned","params":[{"name":"flags","type":"#"},{"name":"left","type":"flags.0?true"},{"name":"user_id","type":"int"},{"name":"kicked_by","type":"int"},{"name":"date","type":"int"},{"name":"banned_rights","type":"ChatBannedRights"}],"type":"ChannelParticipant"},{"id":3728686201,"predicate":"channelParticipantsRecent","params":[],"type":"ChannelParticipantsFilter"},{"id":3026225513,"predicate":"channelParticipantsAdmins","params":[],"type":"ChannelParticipantsFilter"},{"id":2746567045,"predicate":"channelParticipantsKicked","params":[{"name":"q","type":"string"}],"type":"ChannelParticipantsFilter"},{"id":2966521435,"predicate":"channelParticipantsBots","params":[],"type":"ChannelParticipantsFilter"},{"id":338142689,"predicate":"channelParticipantsBanned","params":[{"name":"q","type":"string"}],"type":"ChannelParticipantsFilter"},{"id":106343499,"predicate":"channelParticipantsSearch","params":[{"name":"q","type":"string"}],"type":"ChannelParticipantsFilter"},{"id":3144345741,"predicate":"channelParticipantsContacts","params":[{"name":"q","type":"string"}],"type":"ChannelParticipantsFilter"},{"id":4117684904,"predicate":"channels.channelParticipants","params":[{"name":"count","type":"int"},{"name":"participants","type":"Vector"},{"name":"users","type":"Vector"}],"type":"channels.ChannelParticipants"},{"id":4028055529,"predicate":"channels.channelParticipantsNotModified","params":[],"type":"channels.ChannelParticipants"},{"id":3503927651,"predicate":"channels.channelParticipant","params":[{"name":"participant","type":"ChannelParticipant"},{"name":"users","type":"Vector"}],"type":"channels.ChannelParticipant"},{"id":2013922064,"predicate":"help.termsOfService","params":[{"name":"flags","type":"#"},{"name":"popup","type":"flags.0?true"},{"name":"id","type":"DataJSON"},{"name":"text","type":"string"},{"name":"entities","type":"Vector"},{"name":"min_age_confirm","type":"flags.1?int"}],"type":"help.TermsOfService"},{"id":372165663,"predicate":"foundGif","params":[{"name":"url","type":"string"},{"name":"thumb_url","type":"string"},{"name":"content_url","type":"string"},{"name":"content_type","type":"string"},{"name":"w","type":"int"},{"name":"h","type":"int"}],"type":"FoundGif"},{"id":2624914441,"predicate":"foundGifCached","params":[{"name":"url","type":"string"},{"name":"photo","type":"Photo"},{"name":"document","type":"Document"}],"type":"FoundGif"},{"id":1158290442,"predicate":"messages.foundGifs","params":[{"name":"next_offset","type":"int"},{"name":"results","type":"Vector"}],"type":"messages.FoundGifs"},{"id":3892468898,"predicate":"messages.savedGifsNotModified","params":[],"type":"messages.SavedGifs"},{"id":772213157,"predicate":"messages.savedGifs","params":[{"name":"hash","type":"int"},{"name":"gifs","type":"Vector"}],"type":"messages.SavedGifs"},{"id":864077702,"predicate":"inputBotInlineMessageMediaAuto","params":[{"name":"flags","type":"#"},{"name":"message","type":"string"},{"name":"entities","type":"flags.1?Vector"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"}],"type":"InputBotInlineMessage"},{"id":1036876423,"predicate":"inputBotInlineMessageText","params":[{"name":"flags","type":"#"},{"name":"no_webpage","type":"flags.0?true"},{"name":"message","type":"string"},{"name":"entities","type":"flags.1?Vector"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"}],"type":"InputBotInlineMessage"},{"id":3249626469,"predicate":"inputBotInlineMessageMediaGeo","params":[{"name":"flags","type":"#"},{"name":"geo_point","type":"InputGeoPoint"},{"name":"period","type":"int"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"}],"type":"InputBotInlineMessage"},{"id":1098628881,"predicate":"inputBotInlineMessageMediaVenue","params":[{"name":"flags","type":"#"},{"name":"geo_point","type":"InputGeoPoint"},{"name":"title","type":"string"},{"name":"address","type":"string"},{"name":"provider","type":"string"},{"name":"venue_id","type":"string"},{"name":"venue_type","type":"string"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"}],"type":"InputBotInlineMessage"},{"id":2800599037,"predicate":"inputBotInlineMessageMediaContact","params":[{"name":"flags","type":"#"},{"name":"phone_number","type":"string"},{"name":"first_name","type":"string"},{"name":"last_name","type":"string"},{"name":"vcard","type":"string"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"}],"type":"InputBotInlineMessage"},{"id":1262639204,"predicate":"inputBotInlineMessageGame","params":[{"name":"flags","type":"#"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"}],"type":"InputBotInlineMessage"},{"id":2294256409,"predicate":"inputBotInlineResult","params":[{"name":"flags","type":"#"},{"name":"id","type":"string"},{"name":"type","type":"string"},{"name":"title","type":"flags.1?string"},{"name":"description","type":"flags.2?string"},{"name":"url","type":"flags.3?string"},{"name":"thumb","type":"flags.4?InputWebDocument"},{"name":"content","type":"flags.5?InputWebDocument"},{"name":"send_message","type":"InputBotInlineMessage"}],"type":"InputBotInlineResult"},{"id":2832753831,"predicate":"inputBotInlineResultPhoto","params":[{"name":"id","type":"string"},{"name":"type","type":"string"},{"name":"photo","type":"InputPhoto"},{"name":"send_message","type":"InputBotInlineMessage"}],"type":"InputBotInlineResult"},{"id":4294507972,"predicate":"inputBotInlineResultDocument","params":[{"name":"flags","type":"#"},{"name":"id","type":"string"},{"name":"type","type":"string"},{"name":"title","type":"flags.1?string"},{"name":"description","type":"flags.2?string"},{"name":"document","type":"InputDocument"},{"name":"send_message","type":"InputBotInlineMessage"}],"type":"InputBotInlineResult"},{"id":1336154098,"predicate":"inputBotInlineResultGame","params":[{"name":"id","type":"string"},{"name":"short_name","type":"string"},{"name":"send_message","type":"InputBotInlineMessage"}],"type":"InputBotInlineResult"},{"id":1984755728,"predicate":"botInlineMessageMediaAuto","params":[{"name":"flags","type":"#"},{"name":"message","type":"string"},{"name":"entities","type":"flags.1?Vector"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"}],"type":"BotInlineMessage"},{"id":2357159394,"predicate":"botInlineMessageText","params":[{"name":"flags","type":"#"},{"name":"no_webpage","type":"flags.0?true"},{"name":"message","type":"string"},{"name":"entities","type":"flags.1?Vector"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"}],"type":"BotInlineMessage"},{"id":3072515685,"predicate":"botInlineMessageMediaGeo","params":[{"name":"flags","type":"#"},{"name":"geo","type":"GeoPoint"},{"name":"period","type":"int"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"}],"type":"BotInlineMessage"},{"id":2324063644,"predicate":"botInlineMessageMediaVenue","params":[{"name":"flags","type":"#"},{"name":"geo","type":"GeoPoint"},{"name":"title","type":"string"},{"name":"address","type":"string"},{"name":"provider","type":"string"},{"name":"venue_id","type":"string"},{"name":"venue_type","type":"string"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"}],"type":"BotInlineMessage"},{"id":416402882,"predicate":"botInlineMessageMediaContact","params":[{"name":"flags","type":"#"},{"name":"phone_number","type":"string"},{"name":"first_name","type":"string"},{"name":"last_name","type":"string"},{"name":"vcard","type":"string"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"}],"type":"BotInlineMessage"},{"id":295067450,"predicate":"botInlineResult","params":[{"name":"flags","type":"#"},{"name":"id","type":"string"},{"name":"type","type":"string"},{"name":"title","type":"flags.1?string"},{"name":"description","type":"flags.2?string"},{"name":"url","type":"flags.3?string"},{"name":"thumb","type":"flags.4?WebDocument"},{"name":"content","type":"flags.5?WebDocument"},{"name":"send_message","type":"BotInlineMessage"}],"type":"BotInlineResult"},{"id":400266251,"predicate":"botInlineMediaResult","params":[{"name":"flags","type":"#"},{"name":"id","type":"string"},{"name":"type","type":"string"},{"name":"photo","type":"flags.0?Photo"},{"name":"document","type":"flags.1?Document"},{"name":"title","type":"flags.2?string"},{"name":"description","type":"flags.3?string"},{"name":"send_message","type":"BotInlineMessage"}],"type":"BotInlineResult"},{"id":2491197512,"predicate":"messages.botResults","params":[{"name":"flags","type":"#"},{"name":"gallery","type":"flags.0?true"},{"name":"query_id","type":"long"},{"name":"next_offset","type":"flags.1?string"},{"name":"switch_pm","type":"flags.2?InlineBotSwitchPM"},{"name":"results","type":"Vector"},{"name":"cache_time","type":"int"},{"name":"users","type":"Vector"}],"type":"messages.BotResults"},{"id":1571494644,"predicate":"exportedMessageLink","params":[{"name":"link","type":"string"},{"name":"html","type":"string"}],"type":"ExportedMessageLink"},{"id":893020267,"predicate":"messageFwdHeader","params":[{"name":"flags","type":"#"},{"name":"from_id","type":"flags.0?int"},{"name":"from_name","type":"flags.5?string"},{"name":"date","type":"int"},{"name":"channel_id","type":"flags.1?int"},{"name":"channel_post","type":"flags.2?int"},{"name":"post_author","type":"flags.3?string"},{"name":"saved_from_peer","type":"flags.4?Peer"},{"name":"saved_from_msg_id","type":"flags.4?int"},{"name":"psa_type","type":"flags.6?string"}],"type":"MessageFwdHeader"},{"id":1923290508,"predicate":"auth.codeTypeSms","params":[],"type":"auth.CodeType"},{"id":1948046307,"predicate":"auth.codeTypeCall","params":[],"type":"auth.CodeType"},{"id":577556219,"predicate":"auth.codeTypeFlashCall","params":[],"type":"auth.CodeType"},{"id":1035688326,"predicate":"auth.sentCodeTypeApp","params":[{"name":"length","type":"int"}],"type":"auth.SentCodeType"},{"id":3221273506,"predicate":"auth.sentCodeTypeSms","params":[{"name":"length","type":"int"}],"type":"auth.SentCodeType"},{"id":1398007207,"predicate":"auth.sentCodeTypeCall","params":[{"name":"length","type":"int"}],"type":"auth.SentCodeType"},{"id":2869151449,"predicate":"auth.sentCodeTypeFlashCall","params":[{"name":"pattern","type":"string"}],"type":"auth.SentCodeType"},{"id":911761060,"predicate":"messages.botCallbackAnswer","params":[{"name":"flags","type":"#"},{"name":"alert","type":"flags.1?true"},{"name":"has_url","type":"flags.3?true"},{"name":"native_ui","type":"flags.4?true"},{"name":"message","type":"flags.0?string"},{"name":"url","type":"flags.2?string"},{"name":"cache_time","type":"int"}],"type":"messages.BotCallbackAnswer"},{"id":649453030,"predicate":"messages.messageEditData","params":[{"name":"flags","type":"#"},{"name":"caption","type":"flags.0?true"}],"type":"messages.MessageEditData"},{"id":2299280777,"predicate":"inputBotInlineMessageID","params":[{"name":"dc_id","type":"int"},{"name":"id","type":"long"},{"name":"access_hash","type":"long"}],"type":"InputBotInlineMessageID"},{"id":1008755359,"predicate":"inlineBotSwitchPM","params":[{"name":"text","type":"string"},{"name":"start_param","type":"string"}],"type":"InlineBotSwitchPM"},{"id":863093588,"predicate":"messages.peerDialogs","params":[{"name":"dialogs","type":"Vector"},{"name":"messages","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"},{"name":"state","type":"updates.State"}],"type":"messages.PeerDialogs"},{"id":3989684315,"predicate":"topPeer","params":[{"name":"peer","type":"Peer"},{"name":"rating","type":"double"}],"type":"TopPeer"},{"id":2875595611,"predicate":"topPeerCategoryBotsPM","params":[],"type":"TopPeerCategory"},{"id":344356834,"predicate":"topPeerCategoryBotsInline","params":[],"type":"TopPeerCategory"},{"id":104314861,"predicate":"topPeerCategoryCorrespondents","params":[],"type":"TopPeerCategory"},{"id":3172442442,"predicate":"topPeerCategoryGroups","params":[],"type":"TopPeerCategory"},{"id":371037736,"predicate":"topPeerCategoryChannels","params":[],"type":"TopPeerCategory"},{"id":511092620,"predicate":"topPeerCategoryPhoneCalls","params":[],"type":"TopPeerCategory"},{"id":2822794409,"predicate":"topPeerCategoryForwardUsers","params":[],"type":"TopPeerCategory"},{"id":4226728176,"predicate":"topPeerCategoryForwardChats","params":[],"type":"TopPeerCategory"},{"id":4219683473,"predicate":"topPeerCategoryPeers","params":[{"name":"category","type":"TopPeerCategory"},{"name":"count","type":"int"},{"name":"peers","type":"Vector"}],"type":"TopPeerCategoryPeers"},{"id":3727060725,"predicate":"contacts.topPeersNotModified","params":[],"type":"contacts.TopPeers"},{"id":1891070632,"predicate":"contacts.topPeers","params":[{"name":"categories","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"contacts.TopPeers"},{"id":3039597469,"predicate":"contacts.topPeersDisabled","params":[],"type":"contacts.TopPeers"},{"id":453805082,"predicate":"draftMessageEmpty","params":[{"name":"flags","type":"#"},{"name":"date","type":"flags.0?int"}],"type":"DraftMessage"},{"id":4253970719,"predicate":"draftMessage","params":[{"name":"flags","type":"#"},{"name":"no_webpage","type":"flags.1?true"},{"name":"reply_to_msg_id","type":"flags.0?int"},{"name":"message","type":"string"},{"name":"entities","type":"flags.3?Vector"},{"name":"date","type":"int"}],"type":"DraftMessage"},{"id":3336309862,"predicate":"messages.featuredStickersNotModified","params":[{"name":"count","type":"int"}],"type":"messages.FeaturedStickers"},{"id":3064709953,"predicate":"messages.featuredStickers","params":[{"name":"hash","type":"int"},{"name":"count","type":"int"},{"name":"sets","type":"Vector"},{"name":"unread","type":"Vector"}],"type":"messages.FeaturedStickers"},{"id":186120336,"predicate":"messages.recentStickersNotModified","params":[],"type":"messages.RecentStickers"},{"id":586395571,"predicate":"messages.recentStickers","params":[{"name":"hash","type":"int"},{"name":"packs","type":"Vector"},{"name":"stickers","type":"Vector"},{"name":"dates","type":"Vector"}],"type":"messages.RecentStickers"},{"id":1338747336,"predicate":"messages.archivedStickers","params":[{"name":"count","type":"int"},{"name":"sets","type":"Vector"}],"type":"messages.ArchivedStickers"},{"id":946083368,"predicate":"messages.stickerSetInstallResultSuccess","params":[],"type":"messages.StickerSetInstallResult"},{"id":904138920,"predicate":"messages.stickerSetInstallResultArchive","params":[{"name":"sets","type":"Vector"}],"type":"messages.StickerSetInstallResult"},{"id":1678812626,"predicate":"stickerSetCovered","params":[{"name":"set","type":"StickerSet"},{"name":"cover","type":"Document"}],"type":"StickerSetCovered"},{"id":872932635,"predicate":"stickerSetMultiCovered","params":[{"name":"set","type":"StickerSet"},{"name":"covers","type":"Vector"}],"type":"StickerSetCovered"},{"id":2933316530,"predicate":"maskCoords","params":[{"name":"n","type":"int"},{"name":"x","type":"double"},{"name":"y","type":"double"},{"name":"zoom","type":"double"}],"type":"MaskCoords"},{"id":1251549527,"predicate":"inputStickeredMediaPhoto","params":[{"name":"id","type":"InputPhoto"}],"type":"InputStickeredMedia"},{"id":70813275,"predicate":"inputStickeredMediaDocument","params":[{"name":"id","type":"InputDocument"}],"type":"InputStickeredMedia"},{"id":3187238203,"predicate":"game","params":[{"name":"flags","type":"#"},{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"short_name","type":"string"},{"name":"title","type":"string"},{"name":"description","type":"string"},{"name":"photo","type":"Photo"},{"name":"document","type":"flags.0?Document"}],"type":"Game"},{"id":53231223,"predicate":"inputGameID","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"}],"type":"InputGame"},{"id":3274827786,"predicate":"inputGameShortName","params":[{"name":"bot_id","type":"InputUser"},{"name":"short_name","type":"string"}],"type":"InputGame"},{"id":1493171408,"predicate":"highScore","params":[{"name":"pos","type":"int"},{"name":"user_id","type":"int"},{"name":"score","type":"int"}],"type":"HighScore"},{"id":2587622809,"predicate":"messages.highScores","params":[{"name":"scores","type":"Vector"},{"name":"users","type":"Vector"}],"type":"messages.HighScores"},{"id":3695018575,"predicate":"textEmpty","params":[],"type":"RichText"},{"id":1950782688,"predicate":"textPlain","params":[{"name":"text","type":"string"}],"type":"RichText"},{"id":1730456516,"predicate":"textBold","params":[{"name":"text","type":"RichText"}],"type":"RichText"},{"id":3641877916,"predicate":"textItalic","params":[{"name":"text","type":"RichText"}],"type":"RichText"},{"id":3240501956,"predicate":"textUnderline","params":[{"name":"text","type":"RichText"}],"type":"RichText"},{"id":2616769429,"predicate":"textStrike","params":[{"name":"text","type":"RichText"}],"type":"RichText"},{"id":1816074681,"predicate":"textFixed","params":[{"name":"text","type":"RichText"}],"type":"RichText"},{"id":1009288385,"predicate":"textUrl","params":[{"name":"text","type":"RichText"},{"name":"url","type":"string"},{"name":"webpage_id","type":"long"}],"type":"RichText"},{"id":3730443734,"predicate":"textEmail","params":[{"name":"text","type":"RichText"},{"name":"email","type":"string"}],"type":"RichText"},{"id":2120376535,"predicate":"textConcat","params":[{"name":"texts","type":"Vector"}],"type":"RichText"},{"id":3983181060,"predicate":"textSubscript","params":[{"name":"text","type":"RichText"}],"type":"RichText"},{"id":3355139585,"predicate":"textSuperscript","params":[{"name":"text","type":"RichText"}],"type":"RichText"},{"id":55281185,"predicate":"textMarked","params":[{"name":"text","type":"RichText"}],"type":"RichText"},{"id":483104362,"predicate":"textPhone","params":[{"name":"text","type":"RichText"},{"name":"phone","type":"string"}],"type":"RichText"},{"id":136105807,"predicate":"textImage","params":[{"name":"document_id","type":"long"},{"name":"w","type":"int"},{"name":"h","type":"int"}],"type":"RichText"},{"id":894777186,"predicate":"textAnchor","params":[{"name":"text","type":"RichText"},{"name":"name","type":"string"}],"type":"RichText"},{"id":324435594,"predicate":"pageBlockUnsupported","params":[],"type":"PageBlock"},{"id":1890305021,"predicate":"pageBlockTitle","params":[{"name":"text","type":"RichText"}],"type":"PageBlock"},{"id":2415565343,"predicate":"pageBlockSubtitle","params":[{"name":"text","type":"RichText"}],"type":"PageBlock"},{"id":3132089824,"predicate":"pageBlockAuthorDate","params":[{"name":"author","type":"RichText"},{"name":"published_date","type":"int"}],"type":"PageBlock"},{"id":3218105580,"predicate":"pageBlockHeader","params":[{"name":"text","type":"RichText"}],"type":"PageBlock"},{"id":4046173921,"predicate":"pageBlockSubheader","params":[{"name":"text","type":"RichText"}],"type":"PageBlock"},{"id":1182402406,"predicate":"pageBlockParagraph","params":[{"name":"text","type":"RichText"}],"type":"PageBlock"},{"id":3228621118,"predicate":"pageBlockPreformatted","params":[{"name":"text","type":"RichText"},{"name":"language","type":"string"}],"type":"PageBlock"},{"id":1216809369,"predicate":"pageBlockFooter","params":[{"name":"text","type":"RichText"}],"type":"PageBlock"},{"id":3676352904,"predicate":"pageBlockDivider","params":[],"type":"PageBlock"},{"id":3456972720,"predicate":"pageBlockAnchor","params":[{"name":"name","type":"string"}],"type":"PageBlock"},{"id":3840442385,"predicate":"pageBlockList","params":[{"name":"items","type":"Vector"}],"type":"PageBlock"},{"id":641563686,"predicate":"pageBlockBlockquote","params":[{"name":"text","type":"RichText"},{"name":"caption","type":"RichText"}],"type":"PageBlock"},{"id":1329878739,"predicate":"pageBlockPullquote","params":[{"name":"text","type":"RichText"},{"name":"caption","type":"RichText"}],"type":"PageBlock"},{"id":391759200,"predicate":"pageBlockPhoto","params":[{"name":"flags","type":"#"},{"name":"photo_id","type":"long"},{"name":"caption","type":"PageCaption"},{"name":"url","type":"flags.0?string"},{"name":"webpage_id","type":"flags.0?long"}],"type":"PageBlock"},{"id":2089805750,"predicate":"pageBlockVideo","params":[{"name":"flags","type":"#"},{"name":"autoplay","type":"flags.0?true"},{"name":"loop","type":"flags.1?true"},{"name":"video_id","type":"long"},{"name":"caption","type":"PageCaption"}],"type":"PageBlock"},{"id":972174080,"predicate":"pageBlockCover","params":[{"name":"cover","type":"PageBlock"}],"type":"PageBlock"},{"id":2826014149,"predicate":"pageBlockEmbed","params":[{"name":"flags","type":"#"},{"name":"full_width","type":"flags.0?true"},{"name":"allow_scrolling","type":"flags.3?true"},{"name":"url","type":"flags.1?string"},{"name":"html","type":"flags.2?string"},{"name":"poster_photo_id","type":"flags.4?long"},{"name":"w","type":"flags.5?int"},{"name":"h","type":"flags.5?int"},{"name":"caption","type":"PageCaption"}],"type":"PageBlock"},{"id":4065961995,"predicate":"pageBlockEmbedPost","params":[{"name":"url","type":"string"},{"name":"webpage_id","type":"long"},{"name":"author_photo_id","type":"long"},{"name":"author","type":"string"},{"name":"date","type":"int"},{"name":"blocks","type":"Vector"},{"name":"caption","type":"PageCaption"}],"type":"PageBlock"},{"id":1705048653,"predicate":"pageBlockCollage","params":[{"name":"items","type":"Vector"},{"name":"caption","type":"PageCaption"}],"type":"PageBlock"},{"id":52401552,"predicate":"pageBlockSlideshow","params":[{"name":"items","type":"Vector"},{"name":"caption","type":"PageCaption"}],"type":"PageBlock"},{"id":4011282869,"predicate":"pageBlockChannel","params":[{"name":"channel","type":"Chat"}],"type":"PageBlock"},{"id":2151899626,"predicate":"pageBlockAudio","params":[{"name":"audio_id","type":"long"},{"name":"caption","type":"PageCaption"}],"type":"PageBlock"},{"id":504660880,"predicate":"pageBlockKicker","params":[{"name":"text","type":"RichText"}],"type":"PageBlock"},{"id":3209554562,"predicate":"pageBlockTable","params":[{"name":"flags","type":"#"},{"name":"bordered","type":"flags.0?true"},{"name":"striped","type":"flags.1?true"},{"name":"title","type":"RichText"},{"name":"rows","type":"Vector"}],"type":"PageBlock"},{"id":2592793057,"predicate":"pageBlockOrderedList","params":[{"name":"items","type":"Vector"}],"type":"PageBlock"},{"id":1987480557,"predicate":"pageBlockDetails","params":[{"name":"flags","type":"#"},{"name":"open","type":"flags.0?true"},{"name":"blocks","type":"Vector"},{"name":"title","type":"RichText"}],"type":"PageBlock"},{"id":370236054,"predicate":"pageBlockRelatedArticles","params":[{"name":"title","type":"RichText"},{"name":"articles","type":"Vector"}],"type":"PageBlock"},{"id":2756656886,"predicate":"pageBlockMap","params":[{"name":"geo","type":"GeoPoint"},{"name":"zoom","type":"int"},{"name":"w","type":"int"},{"name":"h","type":"int"},{"name":"caption","type":"PageCaption"}],"type":"PageBlock"},{"id":2246320897,"predicate":"phoneCallDiscardReasonMissed","params":[],"type":"PhoneCallDiscardReason"},{"id":3767910816,"predicate":"phoneCallDiscardReasonDisconnect","params":[],"type":"PhoneCallDiscardReason"},{"id":1471006352,"predicate":"phoneCallDiscardReasonHangup","params":[],"type":"PhoneCallDiscardReason"},{"id":4210550985,"predicate":"phoneCallDiscardReasonBusy","params":[],"type":"PhoneCallDiscardReason"},{"id":2104790276,"predicate":"dataJSON","params":[{"name":"data","type":"string"}],"type":"DataJSON"},{"id":3408489464,"predicate":"labeledPrice","params":[{"name":"label","type":"string"},{"name":"amount","type":"long"}],"type":"LabeledPrice"},{"id":3272254296,"predicate":"invoice","params":[{"name":"flags","type":"#"},{"name":"test","type":"flags.0?true"},{"name":"name_requested","type":"flags.1?true"},{"name":"phone_requested","type":"flags.2?true"},{"name":"email_requested","type":"flags.3?true"},{"name":"shipping_address_requested","type":"flags.4?true"},{"name":"flexible","type":"flags.5?true"},{"name":"phone_to_provider","type":"flags.6?true"},{"name":"email_to_provider","type":"flags.7?true"},{"name":"currency","type":"string"},{"name":"prices","type":"Vector"}],"type":"Invoice"},{"id":3926049406,"predicate":"paymentCharge","params":[{"name":"id","type":"string"},{"name":"provider_charge_id","type":"string"}],"type":"PaymentCharge"},{"id":512535275,"predicate":"postAddress","params":[{"name":"street_line1","type":"string"},{"name":"street_line2","type":"string"},{"name":"city","type":"string"},{"name":"state","type":"string"},{"name":"country_iso2","type":"string"},{"name":"post_code","type":"string"}],"type":"PostAddress"},{"id":2426158996,"predicate":"paymentRequestedInfo","params":[{"name":"flags","type":"#"},{"name":"name","type":"flags.0?string"},{"name":"phone","type":"flags.1?string"},{"name":"email","type":"flags.2?string"},{"name":"shipping_address","type":"flags.3?PostAddress"}],"type":"PaymentRequestedInfo"},{"id":3452074527,"predicate":"paymentSavedCredentialsCard","params":[{"name":"id","type":"string"},{"name":"title","type":"string"}],"type":"PaymentSavedCredentials"},{"id":475467473,"predicate":"webDocument","params":[{"name":"url","type":"string"},{"name":"access_hash","type":"long"},{"name":"size","type":"int"},{"name":"mime_type","type":"string"},{"name":"attributes","type":"Vector"}],"type":"WebDocument"},{"id":4190682310,"predicate":"webDocumentNoProxy","params":[{"name":"url","type":"string"},{"name":"size","type":"int"},{"name":"mime_type","type":"string"},{"name":"attributes","type":"Vector"}],"type":"WebDocument"},{"id":2616017741,"predicate":"inputWebDocument","params":[{"name":"url","type":"string"},{"name":"size","type":"int"},{"name":"mime_type","type":"string"},{"name":"attributes","type":"Vector"}],"type":"InputWebDocument"},{"id":3258570374,"predicate":"inputWebFileLocation","params":[{"name":"url","type":"string"},{"name":"access_hash","type":"long"}],"type":"InputWebFileLocation"},{"id":2669814217,"predicate":"inputWebFileGeoPointLocation","params":[{"name":"geo_point","type":"InputGeoPoint"},{"name":"access_hash","type":"long"},{"name":"w","type":"int"},{"name":"h","type":"int"},{"name":"zoom","type":"int"},{"name":"scale","type":"int"}],"type":"InputWebFileLocation"},{"id":568808380,"predicate":"upload.webFile","params":[{"name":"size","type":"int"},{"name":"mime_type","type":"string"},{"name":"file_type","type":"storage.FileType"},{"name":"mtime","type":"int"},{"name":"bytes","type":"bytes"}],"type":"upload.WebFile"},{"id":1062645411,"predicate":"payments.paymentForm","params":[{"name":"flags","type":"#"},{"name":"can_save_credentials","type":"flags.2?true"},{"name":"password_missing","type":"flags.3?true"},{"name":"bot_id","type":"int"},{"name":"invoice","type":"Invoice"},{"name":"provider_id","type":"int"},{"name":"url","type":"string"},{"name":"native_provider","type":"flags.4?string"},{"name":"native_params","type":"flags.4?DataJSON"},{"name":"saved_info","type":"flags.0?PaymentRequestedInfo"},{"name":"saved_credentials","type":"flags.1?PaymentSavedCredentials"},{"name":"users","type":"Vector"}],"type":"payments.PaymentForm"},{"id":3510966403,"predicate":"payments.validatedRequestedInfo","params":[{"name":"flags","type":"#"},{"name":"id","type":"flags.0?string"},{"name":"shipping_options","type":"flags.1?Vector"}],"type":"payments.ValidatedRequestedInfo"},{"id":1314881805,"predicate":"payments.paymentResult","params":[{"name":"updates","type":"Updates"}],"type":"payments.PaymentResult"},{"id":3628142905,"predicate":"payments.paymentVerificationNeeded","params":[{"name":"url","type":"string"}],"type":"payments.PaymentResult"},{"id":1342771681,"predicate":"payments.paymentReceipt","params":[{"name":"flags","type":"#"},{"name":"date","type":"int"},{"name":"bot_id","type":"int"},{"name":"invoice","type":"Invoice"},{"name":"provider_id","type":"int"},{"name":"info","type":"flags.0?PaymentRequestedInfo"},{"name":"shipping","type":"flags.1?ShippingOption"},{"name":"currency","type":"string"},{"name":"total_amount","type":"long"},{"name":"credentials_title","type":"string"},{"name":"users","type":"Vector"}],"type":"payments.PaymentReceipt"},{"id":4220511292,"predicate":"payments.savedInfo","params":[{"name":"flags","type":"#"},{"name":"has_saved_credentials","type":"flags.1?true"},{"name":"saved_info","type":"flags.0?PaymentRequestedInfo"}],"type":"payments.SavedInfo"},{"id":3238965967,"predicate":"inputPaymentCredentialsSaved","params":[{"name":"id","type":"string"},{"name":"tmp_password","type":"bytes"}],"type":"InputPaymentCredentials"},{"id":873977640,"predicate":"inputPaymentCredentials","params":[{"name":"flags","type":"#"},{"name":"save","type":"flags.0?true"},{"name":"data","type":"DataJSON"}],"type":"InputPaymentCredentials"},{"id":178373535,"predicate":"inputPaymentCredentialsApplePay","params":[{"name":"payment_data","type":"DataJSON"}],"type":"InputPaymentCredentials"},{"id":3389379854,"predicate":"inputPaymentCredentialsAndroidPay","params":[{"name":"payment_token","type":"DataJSON"},{"name":"google_transaction_id","type":"string"}],"type":"InputPaymentCredentials"},{"id":3680828724,"predicate":"account.tmpPassword","params":[{"name":"tmp_password","type":"bytes"},{"name":"valid_until","type":"int"}],"type":"account.TmpPassword"},{"id":3055631583,"predicate":"shippingOption","params":[{"name":"id","type":"string"},{"name":"title","type":"string"},{"name":"prices","type":"Vector"}],"type":"ShippingOption"},{"id":4288717974,"predicate":"inputStickerSetItem","params":[{"name":"flags","type":"#"},{"name":"document","type":"InputDocument"},{"name":"emoji","type":"string"},{"name":"mask_coords","type":"flags.0?MaskCoords"}],"type":"InputStickerSetItem"},{"id":506920429,"predicate":"inputPhoneCall","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"}],"type":"InputPhoneCall"},{"id":1399245077,"predicate":"phoneCallEmpty","params":[{"name":"id","type":"long"}],"type":"PhoneCall"},{"id":462375633,"predicate":"phoneCallWaiting","params":[{"name":"flags","type":"#"},{"name":"video","type":"flags.5?true"},{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"date","type":"int"},{"name":"admin_id","type":"int"},{"name":"participant_id","type":"int"},{"name":"protocol","type":"PhoneCallProtocol"},{"name":"receive_date","type":"flags.0?int"}],"type":"PhoneCall"},{"id":2280307539,"predicate":"phoneCallRequested","params":[{"name":"flags","type":"#"},{"name":"video","type":"flags.5?true"},{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"date","type":"int"},{"name":"admin_id","type":"int"},{"name":"participant_id","type":"int"},{"name":"g_a_hash","type":"bytes"},{"name":"protocol","type":"PhoneCallProtocol"}],"type":"PhoneCall"},{"id":2575058250,"predicate":"phoneCallAccepted","params":[{"name":"flags","type":"#"},{"name":"video","type":"flags.5?true"},{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"date","type":"int"},{"name":"admin_id","type":"int"},{"name":"participant_id","type":"int"},{"name":"g_b","type":"bytes"},{"name":"protocol","type":"PhoneCallProtocol"}],"type":"PhoneCall"},{"id":2269294207,"predicate":"phoneCall","params":[{"name":"flags","type":"#"},{"name":"p2p_allowed","type":"flags.5?true"},{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"date","type":"int"},{"name":"admin_id","type":"int"},{"name":"participant_id","type":"int"},{"name":"g_a_or_b","type":"bytes"},{"name":"key_fingerprint","type":"long"},{"name":"protocol","type":"PhoneCallProtocol"},{"name":"connections","type":"Vector"},{"name":"start_date","type":"int"}],"type":"PhoneCall"},{"id":1355435489,"predicate":"phoneCallDiscarded","params":[{"name":"flags","type":"#"},{"name":"need_rating","type":"flags.2?true"},{"name":"need_debug","type":"flags.3?true"},{"name":"video","type":"flags.5?true"},{"name":"id","type":"long"},{"name":"reason","type":"flags.0?PhoneCallDiscardReason"},{"name":"duration","type":"flags.1?int"}],"type":"PhoneCall"},{"id":2639009728,"predicate":"phoneConnection","params":[{"name":"id","type":"long"},{"name":"ip","type":"string"},{"name":"ipv6","type":"string"},{"name":"port","type":"int"},{"name":"peer_tag","type":"bytes"}],"type":"PhoneConnection"},{"id":4236742600,"predicate":"phoneCallProtocol","params":[{"name":"flags","type":"#"},{"name":"udp_p2p","type":"flags.0?true"},{"name":"udp_reflector","type":"flags.1?true"},{"name":"min_layer","type":"int"},{"name":"max_layer","type":"int"},{"name":"library_versions","type":"Vector"}],"type":"PhoneCallProtocol"},{"id":3968000320,"predicate":"phone.phoneCall","params":[{"name":"phone_call","type":"PhoneCall"},{"name":"users","type":"Vector"}],"type":"phone.PhoneCall"},{"id":4004045934,"predicate":"upload.cdnFileReuploadNeeded","params":[{"name":"request_token","type":"bytes"}],"type":"upload.CdnFile"},{"id":2845821519,"predicate":"upload.cdnFile","params":[{"name":"bytes","type":"bytes"}],"type":"upload.CdnFile"},{"id":3380800186,"predicate":"cdnPublicKey","params":[{"name":"dc_id","type":"int"},{"name":"public_key","type":"string"}],"type":"CdnPublicKey"},{"id":1462101002,"predicate":"cdnConfig","params":[{"name":"public_keys","type":"Vector"}],"type":"CdnConfig"},{"id":3402727926,"predicate":"langPackString","params":[{"name":"key","type":"string"},{"name":"value","type":"string"}],"type":"LangPackString"},{"id":1816636575,"predicate":"langPackStringPluralized","params":[{"name":"flags","type":"#"},{"name":"key","type":"string"},{"name":"zero_value","type":"flags.0?string"},{"name":"one_value","type":"flags.1?string"},{"name":"two_value","type":"flags.2?string"},{"name":"few_value","type":"flags.3?string"},{"name":"many_value","type":"flags.4?string"},{"name":"other_value","type":"string"}],"type":"LangPackString"},{"id":695856818,"predicate":"langPackStringDeleted","params":[{"name":"key","type":"string"}],"type":"LangPackString"},{"id":4085629430,"predicate":"langPackDifference","params":[{"name":"lang_code","type":"string"},{"name":"from_version","type":"int"},{"name":"version","type":"int"},{"name":"strings","type":"Vector"}],"type":"LangPackDifference"},{"id":4006239459,"predicate":"langPackLanguage","params":[{"name":"flags","type":"#"},{"name":"official","type":"flags.0?true"},{"name":"rtl","type":"flags.2?true"},{"name":"beta","type":"flags.3?true"},{"name":"name","type":"string"},{"name":"native_name","type":"string"},{"name":"lang_code","type":"string"},{"name":"base_lang_code","type":"flags.1?string"},{"name":"plural_code","type":"string"},{"name":"strings_count","type":"int"},{"name":"translated_count","type":"int"},{"name":"translations_url","type":"string"}],"type":"LangPackLanguage"},{"id":3873421349,"predicate":"channelAdminLogEventActionChangeTitle","params":[{"name":"prev_value","type":"string"},{"name":"new_value","type":"string"}],"type":"ChannelAdminLogEventAction"},{"id":1427671598,"predicate":"channelAdminLogEventActionChangeAbout","params":[{"name":"prev_value","type":"string"},{"name":"new_value","type":"string"}],"type":"ChannelAdminLogEventAction"},{"id":1783299128,"predicate":"channelAdminLogEventActionChangeUsername","params":[{"name":"prev_value","type":"string"},{"name":"new_value","type":"string"}],"type":"ChannelAdminLogEventAction"},{"id":1129042607,"predicate":"channelAdminLogEventActionChangePhoto","params":[{"name":"prev_photo","type":"Photo"},{"name":"new_photo","type":"Photo"}],"type":"ChannelAdminLogEventAction"},{"id":460916654,"predicate":"channelAdminLogEventActionToggleInvites","params":[{"name":"new_value","type":"Bool"}],"type":"ChannelAdminLogEventAction"},{"id":648939889,"predicate":"channelAdminLogEventActionToggleSignatures","params":[{"name":"new_value","type":"Bool"}],"type":"ChannelAdminLogEventAction"},{"id":3924306968,"predicate":"channelAdminLogEventActionUpdatePinned","params":[{"name":"message","type":"Message"}],"type":"ChannelAdminLogEventAction"},{"id":1889215493,"predicate":"channelAdminLogEventActionEditMessage","params":[{"name":"prev_message","type":"Message"},{"name":"new_message","type":"Message"}],"type":"ChannelAdminLogEventAction"},{"id":1121994683,"predicate":"channelAdminLogEventActionDeleteMessage","params":[{"name":"message","type":"Message"}],"type":"ChannelAdminLogEventAction"},{"id":405815507,"predicate":"channelAdminLogEventActionParticipantJoin","params":[],"type":"ChannelAdminLogEventAction"},{"id":4170676210,"predicate":"channelAdminLogEventActionParticipantLeave","params":[],"type":"ChannelAdminLogEventAction"},{"id":3810276568,"predicate":"channelAdminLogEventActionParticipantInvite","params":[{"name":"participant","type":"ChannelParticipant"}],"type":"ChannelAdminLogEventAction"},{"id":3872931198,"predicate":"channelAdminLogEventActionParticipantToggleBan","params":[{"name":"prev_participant","type":"ChannelParticipant"},{"name":"new_participant","type":"ChannelParticipant"}],"type":"ChannelAdminLogEventAction"},{"id":3580323600,"predicate":"channelAdminLogEventActionParticipantToggleAdmin","params":[{"name":"prev_participant","type":"ChannelParticipant"},{"name":"new_participant","type":"ChannelParticipant"}],"type":"ChannelAdminLogEventAction"},{"id":2982398631,"predicate":"channelAdminLogEventActionChangeStickerSet","params":[{"name":"prev_stickerset","type":"InputStickerSet"},{"name":"new_stickerset","type":"InputStickerSet"}],"type":"ChannelAdminLogEventAction"},{"id":1599903217,"predicate":"channelAdminLogEventActionTogglePreHistoryHidden","params":[{"name":"new_value","type":"Bool"}],"type":"ChannelAdminLogEventAction"},{"id":771095562,"predicate":"channelAdminLogEventActionDefaultBannedRights","params":[{"name":"prev_banned_rights","type":"ChatBannedRights"},{"name":"new_banned_rights","type":"ChatBannedRights"}],"type":"ChannelAdminLogEventAction"},{"id":2399639107,"predicate":"channelAdminLogEventActionStopPoll","params":[{"name":"message","type":"Message"}],"type":"ChannelAdminLogEventAction"},{"id":2725218331,"predicate":"channelAdminLogEventActionChangeLinkedChat","params":[{"name":"prev_value","type":"int"},{"name":"new_value","type":"int"}],"type":"ChannelAdminLogEventAction"},{"id":241923758,"predicate":"channelAdminLogEventActionChangeLocation","params":[{"name":"prev_value","type":"ChannelLocation"},{"name":"new_value","type":"ChannelLocation"}],"type":"ChannelAdminLogEventAction"},{"id":1401984889,"predicate":"channelAdminLogEventActionToggleSlowMode","params":[{"name":"prev_value","type":"int"},{"name":"new_value","type":"int"}],"type":"ChannelAdminLogEventAction"},{"id":995769920,"predicate":"channelAdminLogEvent","params":[{"name":"id","type":"long"},{"name":"date","type":"int"},{"name":"user_id","type":"int"},{"name":"action","type":"ChannelAdminLogEventAction"}],"type":"ChannelAdminLogEvent"},{"id":3985307469,"predicate":"channels.adminLogResults","params":[{"name":"events","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"channels.AdminLogResults"},{"id":3926948580,"predicate":"channelAdminLogEventsFilter","params":[{"name":"flags","type":"#"},{"name":"join","type":"flags.0?true"},{"name":"leave","type":"flags.1?true"},{"name":"invite","type":"flags.2?true"},{"name":"ban","type":"flags.3?true"},{"name":"unban","type":"flags.4?true"},{"name":"kick","type":"flags.5?true"},{"name":"unkick","type":"flags.6?true"},{"name":"promote","type":"flags.7?true"},{"name":"demote","type":"flags.8?true"},{"name":"info","type":"flags.9?true"},{"name":"settings","type":"flags.10?true"},{"name":"pinned","type":"flags.11?true"},{"name":"edit","type":"flags.12?true"},{"name":"delete","type":"flags.13?true"}],"type":"ChannelAdminLogEventsFilter"},{"id":1558266229,"predicate":"popularContact","params":[{"name":"client_id","type":"long"},{"name":"importers","type":"int"}],"type":"PopularContact"},{"id":2660214483,"predicate":"messages.favedStickersNotModified","params":[],"type":"messages.FavedStickers"},{"id":4085198614,"predicate":"messages.favedStickers","params":[{"name":"hash","type":"int"},{"name":"packs","type":"Vector"},{"name":"stickers","type":"Vector"}],"type":"messages.FavedStickers"},{"id":1189204285,"predicate":"recentMeUrlUnknown","params":[{"name":"url","type":"string"}],"type":"RecentMeUrl"},{"id":2377921334,"predicate":"recentMeUrlUser","params":[{"name":"url","type":"string"},{"name":"user_id","type":"int"}],"type":"RecentMeUrl"},{"id":2686132985,"predicate":"recentMeUrlChat","params":[{"name":"url","type":"string"},{"name":"chat_id","type":"int"}],"type":"RecentMeUrl"},{"id":3947431965,"predicate":"recentMeUrlChatInvite","params":[{"name":"url","type":"string"},{"name":"chat_invite","type":"ChatInvite"}],"type":"RecentMeUrl"},{"id":3154794460,"predicate":"recentMeUrlStickerSet","params":[{"name":"url","type":"string"},{"name":"set","type":"StickerSetCovered"}],"type":"RecentMeUrl"},{"id":235081943,"predicate":"help.recentMeUrls","params":[{"name":"urls","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"help.RecentMeUrls"},{"id":482797855,"predicate":"inputSingleMedia","params":[{"name":"flags","type":"#"},{"name":"media","type":"InputMedia"},{"name":"random_id","type":"long"},{"name":"message","type":"string"},{"name":"entities","type":"flags.0?Vector"}],"type":"InputSingleMedia"},{"id":3402187762,"predicate":"webAuthorization","params":[{"name":"hash","type":"long"},{"name":"bot_id","type":"int"},{"name":"domain","type":"string"},{"name":"browser","type":"string"},{"name":"platform","type":"string"},{"name":"date_created","type":"int"},{"name":"date_active","type":"int"},{"name":"ip","type":"string"},{"name":"region","type":"string"}],"type":"WebAuthorization"},{"id":3981887996,"predicate":"account.webAuthorizations","params":[{"name":"authorizations","type":"Vector"},{"name":"users","type":"Vector"}],"type":"account.WebAuthorizations"},{"id":2792792866,"predicate":"inputMessageID","params":[{"name":"id","type":"int"}],"type":"InputMessage"},{"id":3134751637,"predicate":"inputMessageReplyTo","params":[{"name":"id","type":"int"}],"type":"InputMessage"},{"id":2257003832,"predicate":"inputMessagePinned","params":[],"type":"InputMessage"},{"id":4239064759,"predicate":"inputDialogPeer","params":[{"name":"peer","type":"InputPeer"}],"type":"InputDialogPeer"},{"id":1684014375,"predicate":"inputDialogPeerFolder","params":[{"name":"folder_id","type":"int"}],"type":"InputDialogPeer"},{"id":3849174789,"predicate":"dialogPeer","params":[{"name":"peer","type":"Peer"}],"type":"DialogPeer"},{"id":1363483106,"predicate":"dialogPeerFolder","params":[{"name":"folder_id","type":"int"}],"type":"DialogPeer"},{"id":223655517,"predicate":"messages.foundStickerSetsNotModified","params":[],"type":"messages.FoundStickerSets"},{"id":1359533640,"predicate":"messages.foundStickerSets","params":[{"name":"hash","type":"int"},{"name":"sets","type":"Vector"}],"type":"messages.FoundStickerSets"},{"id":1648543603,"predicate":"fileHash","params":[{"name":"offset","type":"int"},{"name":"limit","type":"int"},{"name":"hash","type":"bytes"}],"type":"FileHash"},{"id":1968737087,"predicate":"inputClientProxy","params":[{"name":"address","type":"string"},{"name":"port","type":"int"}],"type":"InputClientProxy"},{"id":3811614591,"predicate":"help.termsOfServiceUpdateEmpty","params":[{"name":"expires","type":"int"}],"type":"help.TermsOfServiceUpdate"},{"id":686618977,"predicate":"help.termsOfServiceUpdate","params":[{"name":"expires","type":"int"},{"name":"terms_of_service","type":"help.TermsOfService"}],"type":"help.TermsOfServiceUpdate"},{"id":859091184,"predicate":"inputSecureFileUploaded","params":[{"name":"id","type":"long"},{"name":"parts","type":"int"},{"name":"md5_checksum","type":"string"},{"name":"file_hash","type":"bytes"},{"name":"secret","type":"bytes"}],"type":"InputSecureFile"},{"id":1399317950,"predicate":"inputSecureFile","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"}],"type":"InputSecureFile"},{"id":1679398724,"predicate":"secureFileEmpty","params":[],"type":"SecureFile"},{"id":3760683618,"predicate":"secureFile","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"size","type":"int"},{"name":"dc_id","type":"int"},{"name":"date","type":"int"},{"name":"file_hash","type":"bytes"},{"name":"secret","type":"bytes"}],"type":"SecureFile"},{"id":2330640067,"predicate":"secureData","params":[{"name":"data","type":"bytes"},{"name":"data_hash","type":"bytes"},{"name":"secret","type":"bytes"}],"type":"SecureData"},{"id":2103482845,"predicate":"securePlainPhone","params":[{"name":"phone","type":"string"}],"type":"SecurePlainData"},{"id":569137759,"predicate":"securePlainEmail","params":[{"name":"email","type":"string"}],"type":"SecurePlainData"},{"id":2636808675,"predicate":"secureValueTypePersonalDetails","params":[],"type":"SecureValueType"},{"id":1034709504,"predicate":"secureValueTypePassport","params":[],"type":"SecureValueType"},{"id":115615172,"predicate":"secureValueTypeDriverLicense","params":[],"type":"SecureValueType"},{"id":2698015819,"predicate":"secureValueTypeIdentityCard","params":[],"type":"SecureValueType"},{"id":2577698595,"predicate":"secureValueTypeInternalPassport","params":[],"type":"SecureValueType"},{"id":3420659238,"predicate":"secureValueTypeAddress","params":[],"type":"SecureValueType"},{"id":4231435598,"predicate":"secureValueTypeUtilityBill","params":[],"type":"SecureValueType"},{"id":2299755533,"predicate":"secureValueTypeBankStatement","params":[],"type":"SecureValueType"},{"id":2340959368,"predicate":"secureValueTypeRentalAgreement","params":[],"type":"SecureValueType"},{"id":2581823594,"predicate":"secureValueTypePassportRegistration","params":[],"type":"SecureValueType"},{"id":3926060083,"predicate":"secureValueTypeTemporaryRegistration","params":[],"type":"SecureValueType"},{"id":3005262555,"predicate":"secureValueTypePhone","params":[],"type":"SecureValueType"},{"id":2386339822,"predicate":"secureValueTypeEmail","params":[],"type":"SecureValueType"},{"id":411017418,"predicate":"secureValue","params":[{"name":"flags","type":"#"},{"name":"type","type":"SecureValueType"},{"name":"data","type":"flags.0?SecureData"},{"name":"front_side","type":"flags.1?SecureFile"},{"name":"reverse_side","type":"flags.2?SecureFile"},{"name":"selfie","type":"flags.3?SecureFile"},{"name":"translation","type":"flags.6?Vector"},{"name":"files","type":"flags.4?Vector"},{"name":"plain_data","type":"flags.5?SecurePlainData"},{"name":"hash","type":"bytes"}],"type":"SecureValue"},{"id":3676426407,"predicate":"inputSecureValue","params":[{"name":"flags","type":"#"},{"name":"type","type":"SecureValueType"},{"name":"data","type":"flags.0?SecureData"},{"name":"front_side","type":"flags.1?InputSecureFile"},{"name":"reverse_side","type":"flags.2?InputSecureFile"},{"name":"selfie","type":"flags.3?InputSecureFile"},{"name":"translation","type":"flags.6?Vector"},{"name":"files","type":"flags.4?Vector"},{"name":"plain_data","type":"flags.5?SecurePlainData"}],"type":"InputSecureValue"},{"id":3978218928,"predicate":"secureValueHash","params":[{"name":"type","type":"SecureValueType"},{"name":"hash","type":"bytes"}],"type":"SecureValueHash"},{"id":3903065049,"predicate":"secureValueErrorData","params":[{"name":"type","type":"SecureValueType"},{"name":"data_hash","type":"bytes"},{"name":"field","type":"string"},{"name":"text","type":"string"}],"type":"SecureValueError"},{"id":12467706,"predicate":"secureValueErrorFrontSide","params":[{"name":"type","type":"SecureValueType"},{"name":"file_hash","type":"bytes"},{"name":"text","type":"string"}],"type":"SecureValueError"},{"id":2257201829,"predicate":"secureValueErrorReverseSide","params":[{"name":"type","type":"SecureValueType"},{"name":"file_hash","type":"bytes"},{"name":"text","type":"string"}],"type":"SecureValueError"},{"id":3845639894,"predicate":"secureValueErrorSelfie","params":[{"name":"type","type":"SecureValueType"},{"name":"file_hash","type":"bytes"},{"name":"text","type":"string"}],"type":"SecureValueError"},{"id":2054162547,"predicate":"secureValueErrorFile","params":[{"name":"type","type":"SecureValueType"},{"name":"file_hash","type":"bytes"},{"name":"text","type":"string"}],"type":"SecureValueError"},{"id":1717706985,"predicate":"secureValueErrorFiles","params":[{"name":"type","type":"SecureValueType"},{"name":"file_hash","type":"Vector"},{"name":"text","type":"string"}],"type":"SecureValueError"},{"id":2258466191,"predicate":"secureValueError","params":[{"name":"type","type":"SecureValueType"},{"name":"hash","type":"bytes"},{"name":"text","type":"string"}],"type":"SecureValueError"},{"id":2702460784,"predicate":"secureValueErrorTranslationFile","params":[{"name":"type","type":"SecureValueType"},{"name":"file_hash","type":"bytes"},{"name":"text","type":"string"}],"type":"SecureValueError"},{"id":878931416,"predicate":"secureValueErrorTranslationFiles","params":[{"name":"type","type":"SecureValueType"},{"name":"file_hash","type":"Vector"},{"name":"text","type":"string"}],"type":"SecureValueError"},{"id":871426631,"predicate":"secureCredentialsEncrypted","params":[{"name":"data","type":"bytes"},{"name":"hash","type":"bytes"},{"name":"secret","type":"bytes"}],"type":"SecureCredentialsEncrypted"},{"id":2905480408,"predicate":"account.authorizationForm","params":[{"name":"flags","type":"#"},{"name":"required_types","type":"Vector"},{"name":"values","type":"Vector"},{"name":"errors","type":"Vector"},{"name":"users","type":"Vector"},{"name":"privacy_policy_url","type":"flags.0?string"}],"type":"account.AuthorizationForm"},{"id":2166326607,"predicate":"account.sentEmailCode","params":[{"name":"email_pattern","type":"string"},{"name":"length","type":"int"}],"type":"account.SentEmailCode"},{"id":1722786150,"predicate":"help.deepLinkInfoEmpty","params":[],"type":"help.DeepLinkInfo"},{"id":1783556146,"predicate":"help.deepLinkInfo","params":[{"name":"flags","type":"#"},{"name":"update_app","type":"flags.0?true"},{"name":"message","type":"string"},{"name":"entities","type":"flags.1?Vector"}],"type":"help.DeepLinkInfo"},{"id":289586518,"predicate":"savedPhoneContact","params":[{"name":"phone","type":"string"},{"name":"first_name","type":"string"},{"name":"last_name","type":"string"},{"name":"date","type":"int"}],"type":"SavedContact"},{"id":1304052993,"predicate":"account.takeout","params":[{"name":"id","type":"long"}],"type":"account.Takeout"},{"id":3562713238,"predicate":"passwordKdfAlgoUnknown","params":[],"type":"PasswordKdfAlgo"},{"id":982592842,"predicate":"passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow","params":[{"name":"salt1","type":"bytes"},{"name":"salt2","type":"bytes"},{"name":"g","type":"int"},{"name":"p","type":"bytes"}],"type":"PasswordKdfAlgo"},{"id":4883767,"predicate":"securePasswordKdfAlgoUnknown","params":[],"type":"SecurePasswordKdfAlgo"},{"id":3153255840,"predicate":"securePasswordKdfAlgoPBKDF2HMACSHA512iter100000","params":[{"name":"salt","type":"bytes"}],"type":"SecurePasswordKdfAlgo"},{"id":2252807570,"predicate":"securePasswordKdfAlgoSHA512","params":[{"name":"salt","type":"bytes"}],"type":"SecurePasswordKdfAlgo"},{"id":354925740,"predicate":"secureSecretSettings","params":[{"name":"secure_algo","type":"SecurePasswordKdfAlgo"},{"name":"secure_secret","type":"bytes"},{"name":"secure_secret_id","type":"long"}],"type":"SecureSecretSettings"},{"id":2558588504,"predicate":"inputCheckPasswordEmpty","params":[],"type":"InputCheckPasswordSRP"},{"id":3531600002,"predicate":"inputCheckPasswordSRP","params":[{"name":"srp_id","type":"long"},{"name":"A","type":"bytes"},{"name":"M1","type":"bytes"}],"type":"InputCheckPasswordSRP"},{"id":2191366618,"predicate":"secureRequiredType","params":[{"name":"flags","type":"#"},{"name":"native_names","type":"flags.0?true"},{"name":"selfie_required","type":"flags.1?true"},{"name":"translation_required","type":"flags.2?true"},{"name":"type","type":"SecureValueType"}],"type":"SecureRequiredType"},{"id":41187252,"predicate":"secureRequiredTypeOneOf","params":[{"name":"types","type":"Vector"}],"type":"SecureRequiredType"},{"id":3216634967,"predicate":"help.passportConfigNotModified","params":[],"type":"help.PassportConfig"},{"id":2694370991,"predicate":"help.passportConfig","params":[{"name":"hash","type":"int"},{"name":"countries_langs","type":"DataJSON"}],"type":"help.PassportConfig"},{"id":488313413,"predicate":"inputAppEvent","params":[{"name":"time","type":"double"},{"name":"type","type":"string"},{"name":"peer","type":"long"},{"name":"data","type":"JSONValue"}],"type":"InputAppEvent"},{"id":3235781593,"predicate":"jsonObjectValue","params":[{"name":"key","type":"string"},{"name":"value","type":"JSONValue"}],"type":"JSONObjectValue"},{"id":1064139624,"predicate":"jsonNull","params":[],"type":"JSONValue"},{"id":3342098026,"predicate":"jsonBool","params":[{"name":"value","type":"Bool"}],"type":"JSONValue"},{"id":736157604,"predicate":"jsonNumber","params":[{"name":"value","type":"double"}],"type":"JSONValue"},{"id":3072226938,"predicate":"jsonString","params":[{"name":"value","type":"string"}],"type":"JSONValue"},{"id":4148447075,"predicate":"jsonArray","params":[{"name":"value","type":"Vector"}],"type":"JSONValue"},{"id":2579616925,"predicate":"jsonObject","params":[{"name":"value","type":"Vector"}],"type":"JSONValue"},{"id":878078826,"predicate":"pageTableCell","params":[{"name":"flags","type":"#"},{"name":"header","type":"flags.0?true"},{"name":"align_center","type":"flags.3?true"},{"name":"align_right","type":"flags.4?true"},{"name":"valign_middle","type":"flags.5?true"},{"name":"valign_bottom","type":"flags.6?true"},{"name":"text","type":"flags.7?RichText"},{"name":"colspan","type":"flags.1?int"},{"name":"rowspan","type":"flags.2?int"}],"type":"PageTableCell"},{"id":3770729957,"predicate":"pageTableRow","params":[{"name":"cells","type":"Vector"}],"type":"PageTableRow"},{"id":1869903447,"predicate":"pageCaption","params":[{"name":"text","type":"RichText"},{"name":"credit","type":"RichText"}],"type":"PageCaption"},{"id":3106911949,"predicate":"pageListItemText","params":[{"name":"text","type":"RichText"}],"type":"PageListItem"},{"id":635466748,"predicate":"pageListItemBlocks","params":[{"name":"blocks","type":"Vector"}],"type":"PageListItem"},{"id":1577484359,"predicate":"pageListOrderedItemText","params":[{"name":"num","type":"string"},{"name":"text","type":"RichText"}],"type":"PageListOrderedItem"},{"id":2564655414,"predicate":"pageListOrderedItemBlocks","params":[{"name":"num","type":"string"},{"name":"blocks","type":"Vector"}],"type":"PageListOrderedItem"},{"id":3012615176,"predicate":"pageRelatedArticle","params":[{"name":"flags","type":"#"},{"name":"url","type":"string"},{"name":"webpage_id","type":"long"},{"name":"title","type":"flags.0?string"},{"name":"description","type":"flags.1?string"},{"name":"photo_id","type":"flags.2?long"},{"name":"author","type":"flags.3?string"},{"name":"published_date","type":"flags.4?int"}],"type":"PageRelatedArticle"},{"id":2556788493,"predicate":"page","params":[{"name":"flags","type":"#"},{"name":"part","type":"flags.0?true"},{"name":"rtl","type":"flags.1?true"},{"name":"v2","type":"flags.2?true"},{"name":"url","type":"string"},{"name":"blocks","type":"Vector"},{"name":"photos","type":"Vector"},{"name":"documents","type":"Vector"},{"name":"views","type":"flags.3?int"}],"type":"Page"},{"id":2349199817,"predicate":"help.supportName","params":[{"name":"name","type":"string"}],"type":"help.SupportName"},{"id":4088278765,"predicate":"help.userInfoEmpty","params":[],"type":"help.UserInfo"},{"id":32192344,"predicate":"help.userInfo","params":[{"name":"message","type":"string"},{"name":"entities","type":"Vector"},{"name":"author","type":"string"},{"name":"date","type":"int"}],"type":"help.UserInfo"},{"id":1823064809,"predicate":"pollAnswer","params":[{"name":"text","type":"string"},{"name":"option","type":"bytes"}],"type":"PollAnswer"},{"id":2262925665,"predicate":"poll","params":[{"name":"id","type":"long"},{"name":"flags","type":"#"},{"name":"closed","type":"flags.0?true"},{"name":"public_voters","type":"flags.1?true"},{"name":"multiple_choice","type":"flags.2?true"},{"name":"quiz","type":"flags.3?true"},{"name":"question","type":"string"},{"name":"answers","type":"Vector"},{"name":"close_period","type":"flags.4?int"},{"name":"close_date","type":"flags.5?int"}],"type":"Poll"},{"id":997055186,"predicate":"pollAnswerVoters","params":[{"name":"flags","type":"#"},{"name":"chosen","type":"flags.0?true"},{"name":"correct","type":"flags.1?true"},{"name":"option","type":"bytes"},{"name":"voters","type":"int"}],"type":"PollAnswerVoters"},{"id":3135029667,"predicate":"pollResults","params":[{"name":"flags","type":"#"},{"name":"min","type":"flags.0?true"},{"name":"results","type":"flags.1?Vector"},{"name":"total_voters","type":"flags.2?int"},{"name":"recent_voters","type":"flags.3?Vector"},{"name":"solution","type":"flags.4?string"},{"name":"solution_entities","type":"flags.4?Vector"}],"type":"PollResults"},{"id":4030849616,"predicate":"chatOnlines","params":[{"name":"onlines","type":"int"}],"type":"ChatOnlines"},{"id":1202287072,"predicate":"statsURL","params":[{"name":"url","type":"string"}],"type":"StatsURL"},{"id":1605510357,"predicate":"chatAdminRights","params":[{"name":"flags","type":"#"},{"name":"change_info","type":"flags.0?true"},{"name":"post_messages","type":"flags.1?true"},{"name":"edit_messages","type":"flags.2?true"},{"name":"delete_messages","type":"flags.3?true"},{"name":"ban_users","type":"flags.4?true"},{"name":"invite_users","type":"flags.5?true"},{"name":"pin_messages","type":"flags.7?true"},{"name":"add_admins","type":"flags.9?true"}],"type":"ChatAdminRights"},{"id":2668758040,"predicate":"chatBannedRights","params":[{"name":"flags","type":"#"},{"name":"view_messages","type":"flags.0?true"},{"name":"send_messages","type":"flags.1?true"},{"name":"send_media","type":"flags.2?true"},{"name":"send_stickers","type":"flags.3?true"},{"name":"send_gifs","type":"flags.4?true"},{"name":"send_games","type":"flags.5?true"},{"name":"send_inline","type":"flags.6?true"},{"name":"embed_links","type":"flags.7?true"},{"name":"send_polls","type":"flags.8?true"},{"name":"change_info","type":"flags.10?true"},{"name":"invite_users","type":"flags.15?true"},{"name":"pin_messages","type":"flags.17?true"},{"name":"until_date","type":"int"}],"type":"ChatBannedRights"},{"id":3861952889,"predicate":"inputWallPaper","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"}],"type":"InputWallPaper"},{"id":1913199744,"predicate":"inputWallPaperSlug","params":[{"name":"slug","type":"string"}],"type":"InputWallPaper"},{"id":2217196460,"predicate":"inputWallPaperNoFile","params":[],"type":"InputWallPaper"},{"id":471437699,"predicate":"account.wallPapersNotModified","params":[],"type":"account.WallPapers"},{"id":1881892265,"predicate":"account.wallPapers","params":[{"name":"hash","type":"int"},{"name":"wallpapers","type":"Vector"}],"type":"account.WallPapers"},{"id":3737042563,"predicate":"codeSettings","params":[{"name":"flags","type":"#"},{"name":"allow_flashcall","type":"flags.0?true"},{"name":"current_number","type":"flags.1?true"},{"name":"allow_app_hash","type":"flags.4?true"}],"type":"CodeSettings"},{"id":84438264,"predicate":"wallPaperSettings","params":[{"name":"flags","type":"#"},{"name":"blur","type":"flags.1?true"},{"name":"motion","type":"flags.2?true"},{"name":"background_color","type":"flags.0?int"},{"name":"second_background_color","type":"flags.4?int"},{"name":"intensity","type":"flags.3?int"},{"name":"rotation","type":"flags.4?int"}],"type":"WallPaperSettings"},{"id":3762434803,"predicate":"autoDownloadSettings","params":[{"name":"flags","type":"#"},{"name":"disabled","type":"flags.0?true"},{"name":"video_preload_large","type":"flags.1?true"},{"name":"audio_preload_next","type":"flags.2?true"},{"name":"phonecalls_less_data","type":"flags.3?true"},{"name":"photo_size_max","type":"int"},{"name":"video_size_max","type":"int"},{"name":"file_size_max","type":"int"},{"name":"video_upload_maxbitrate","type":"int"}],"type":"AutoDownloadSettings"},{"id":1674235686,"predicate":"account.autoDownloadSettings","params":[{"name":"low","type":"AutoDownloadSettings"},{"name":"medium","type":"AutoDownloadSettings"},{"name":"high","type":"AutoDownloadSettings"}],"type":"account.AutoDownloadSettings"},{"id":3585325561,"predicate":"emojiKeyword","params":[{"name":"keyword","type":"string"},{"name":"emoticons","type":"Vector"}],"type":"EmojiKeyword"},{"id":594408994,"predicate":"emojiKeywordDeleted","params":[{"name":"keyword","type":"string"},{"name":"emoticons","type":"Vector"}],"type":"EmojiKeyword"},{"id":1556570557,"predicate":"emojiKeywordsDifference","params":[{"name":"lang_code","type":"string"},{"name":"from_version","type":"int"},{"name":"version","type":"int"},{"name":"keywords","type":"Vector"}],"type":"EmojiKeywordsDifference"},{"id":2775937949,"predicate":"emojiURL","params":[{"name":"url","type":"string"}],"type":"EmojiURL"},{"id":3019592545,"predicate":"emojiLanguage","params":[{"name":"lang_code","type":"string"}],"type":"EmojiLanguage"},{"id":3162490573,"predicate":"fileLocationToBeDeprecated","params":[{"name":"volume_id","type":"long"},{"name":"local_id","type":"int"}],"type":"FileLocation"},{"id":4283715173,"predicate":"folder","params":[{"name":"flags","type":"#"},{"name":"autofill_new_broadcasts","type":"flags.0?true"},{"name":"autofill_public_groups","type":"flags.1?true"},{"name":"autofill_new_correspondents","type":"flags.2?true"},{"name":"id","type":"int"},{"name":"title","type":"string"},{"name":"photo","type":"flags.3?ChatPhoto"}],"type":"Folder"},{"id":4224893590,"predicate":"inputFolderPeer","params":[{"name":"peer","type":"InputPeer"},{"name":"folder_id","type":"int"}],"type":"InputFolderPeer"},{"id":3921323624,"predicate":"folderPeer","params":[{"name":"peer","type":"Peer"},{"name":"folder_id","type":"int"}],"type":"FolderPeer"},{"id":3896830975,"predicate":"messages.searchCounter","params":[{"name":"flags","type":"#"},{"name":"inexact","type":"flags.1?true"},{"name":"filter","type":"MessagesFilter"},{"name":"count","type":"int"}],"type":"messages.SearchCounter"},{"id":2463316494,"predicate":"urlAuthResultRequest","params":[{"name":"flags","type":"#"},{"name":"request_write_access","type":"flags.0?true"},{"name":"bot","type":"User"},{"name":"domain","type":"string"}],"type":"UrlAuthResult"},{"id":2408320590,"predicate":"urlAuthResultAccepted","params":[{"name":"url","type":"string"}],"type":"UrlAuthResult"},{"id":2849430303,"predicate":"urlAuthResultDefault","params":[],"type":"UrlAuthResult"},{"id":3216354699,"predicate":"channelLocationEmpty","params":[],"type":"ChannelLocation"},{"id":547062491,"predicate":"channelLocation","params":[{"name":"geo_point","type":"GeoPoint"},{"name":"address","type":"string"}],"type":"ChannelLocation"},{"id":3393592157,"predicate":"peerLocated","params":[{"name":"peer","type":"Peer"},{"name":"expires","type":"int"},{"name":"distance","type":"int"}],"type":"PeerLocated"},{"id":4176226379,"predicate":"peerSelfLocated","params":[{"name":"expires","type":"int"}],"type":"PeerLocated"},{"id":3497176244,"predicate":"restrictionReason","params":[{"name":"platform","type":"string"},{"name":"reason","type":"string"},{"name":"text","type":"string"}],"type":"RestrictionReason"},{"id":1012306921,"predicate":"inputTheme","params":[{"name":"id","type":"long"},{"name":"access_hash","type":"long"}],"type":"InputTheme"},{"id":4119399921,"predicate":"inputThemeSlug","params":[{"name":"slug","type":"string"}],"type":"InputTheme"},{"id":42930452,"predicate":"theme","params":[{"name":"flags","type":"#"},{"name":"creator","type":"flags.0?true"},{"name":"default","type":"flags.1?true"},{"name":"id","type":"long"},{"name":"access_hash","type":"long"},{"name":"slug","type":"string"},{"name":"title","type":"string"},{"name":"document","type":"flags.2?Document"},{"name":"settings","type":"flags.3?ThemeSettings"},{"name":"installs_count","type":"int"}],"type":"Theme"},{"id":4095653410,"predicate":"account.themesNotModified","params":[],"type":"account.Themes"},{"id":2137482273,"predicate":"account.themes","params":[{"name":"hash","type":"int"},{"name":"themes","type":"Vector"}],"type":"account.Themes"},{"id":1654593920,"predicate":"auth.loginToken","params":[{"name":"expires","type":"int"},{"name":"token","type":"bytes"}],"type":"auth.LoginToken"},{"id":110008598,"predicate":"auth.loginTokenMigrateTo","params":[{"name":"dc_id","type":"int"},{"name":"token","type":"bytes"}],"type":"auth.LoginToken"},{"id":957176926,"predicate":"auth.loginTokenSuccess","params":[{"name":"authorization","type":"auth.Authorization"}],"type":"auth.LoginToken"},{"id":1474462241,"predicate":"account.contentSettings","params":[{"name":"flags","type":"#"},{"name":"sensitive_enabled","type":"flags.0?true"},{"name":"sensitive_can_change","type":"flags.1?true"}],"type":"account.ContentSettings"},{"id":2837970629,"predicate":"messages.inactiveChats","params":[{"name":"dates","type":"Vector"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"}],"type":"messages.InactiveChats"},{"id":3282117730,"predicate":"baseThemeClassic","params":[],"type":"BaseTheme"},{"id":4225242760,"predicate":"baseThemeDay","params":[],"type":"BaseTheme"},{"id":3081969320,"predicate":"baseThemeNight","params":[],"type":"BaseTheme"},{"id":1834973166,"predicate":"baseThemeTinted","params":[],"type":"BaseTheme"},{"id":1527845466,"predicate":"baseThemeArctic","params":[],"type":"BaseTheme"},{"id":3176168657,"predicate":"inputThemeSettings","params":[{"name":"flags","type":"#"},{"name":"base_theme","type":"BaseTheme"},{"name":"accent_color","type":"int"},{"name":"message_top_color","type":"flags.0?int"},{"name":"message_bottom_color","type":"flags.0?int"},{"name":"wallpaper","type":"flags.1?InputWallPaper"},{"name":"wallpaper_settings","type":"flags.1?WallPaperSettings"}],"type":"InputThemeSettings"},{"id":2618595402,"predicate":"themeSettings","params":[{"name":"flags","type":"#"},{"name":"base_theme","type":"BaseTheme"},{"name":"accent_color","type":"int"},{"name":"message_top_color","type":"flags.0?int"},{"name":"message_bottom_color","type":"flags.0?int"},{"name":"wallpaper","type":"flags.1?WallPaper"}],"type":"ThemeSettings"},{"id":1421174295,"predicate":"webPageAttributeTheme","params":[{"name":"flags","type":"#"},{"name":"documents","type":"flags.0?Vector"},{"name":"settings","type":"flags.1?ThemeSettings"}],"type":"WebPageAttribute"},{"id":2727236953,"predicate":"messageUserVote","params":[{"name":"user_id","type":"int"},{"name":"option","type":"bytes"},{"name":"date","type":"int"}],"type":"MessageUserVote"},{"id":909603888,"predicate":"messageUserVoteInputOption","params":[{"name":"user_id","type":"int"},{"name":"date","type":"int"}],"type":"MessageUserVote"},{"id":244310238,"predicate":"messageUserVoteMultiple","params":[{"name":"user_id","type":"int"},{"name":"options","type":"Vector"},{"name":"date","type":"int"}],"type":"MessageUserVote"},{"id":136574537,"predicate":"messages.votesList","params":[{"name":"flags","type":"#"},{"name":"count","type":"int"},{"name":"votes","type":"Vector"},{"name":"users","type":"Vector"},{"name":"next_offset","type":"flags.0?string"}],"type":"messages.VotesList"},{"id":4117234314,"predicate":"bankCardOpenUrl","params":[{"name":"url","type":"string"},{"name":"name","type":"string"}],"type":"BankCardOpenUrl"},{"id":1042605427,"predicate":"payments.bankCardData","params":[{"name":"title","type":"string"},{"name":"open_urls","type":"Vector"}],"type":"payments.BankCardData"},{"id":1949890536,"predicate":"dialogFilter","params":[{"name":"flags","type":"#"},{"name":"contacts","type":"flags.0?true"},{"name":"non_contacts","type":"flags.1?true"},{"name":"groups","type":"flags.2?true"},{"name":"broadcasts","type":"flags.3?true"},{"name":"bots","type":"flags.4?true"},{"name":"exclude_muted","type":"flags.11?true"},{"name":"exclude_read","type":"flags.12?true"},{"name":"exclude_archived","type":"flags.13?true"},{"name":"id","type":"int"},{"name":"title","type":"string"},{"name":"emoticon","type":"flags.25?string"},{"name":"pinned_peers","type":"Vector"},{"name":"include_peers","type":"Vector"},{"name":"exclude_peers","type":"Vector"}],"type":"DialogFilter"},{"id":2004110666,"predicate":"dialogFilterSuggested","params":[{"name":"filter","type":"DialogFilter"},{"name":"description","type":"string"}],"type":"DialogFilterSuggested"},{"id":3057118639,"predicate":"statsDateRangeDays","params":[{"name":"min_date","type":"int"},{"name":"max_date","type":"int"}],"type":"StatsDateRangeDays"},{"id":3410210014,"predicate":"statsAbsValueAndPrev","params":[{"name":"current","type":"double"},{"name":"previous","type":"double"}],"type":"StatsAbsValueAndPrev"},{"id":3419287520,"predicate":"statsPercentValue","params":[{"name":"part","type":"double"},{"name":"total","type":"double"}],"type":"StatsPercentValue"},{"id":1244130093,"predicate":"statsGraphAsync","params":[{"name":"token","type":"string"}],"type":"StatsGraph"},{"id":3202127906,"predicate":"statsGraphError","params":[{"name":"error","type":"string"}],"type":"StatsGraph"},{"id":2393138358,"predicate":"statsGraph","params":[{"name":"flags","type":"#"},{"name":"json","type":"DataJSON"},{"name":"zoom_token","type":"flags.0?string"}],"type":"StatsGraph"},{"id":2907687357,"predicate":"messageInteractionCounters","params":[{"name":"msg_id","type":"int"},{"name":"views","type":"int"},{"name":"forwards","type":"int"}],"type":"MessageInteractionCounters"},{"id":3187114900,"predicate":"stats.broadcastStats","params":[{"name":"period","type":"StatsDateRangeDays"},{"name":"followers","type":"StatsAbsValueAndPrev"},{"name":"views_per_post","type":"StatsAbsValueAndPrev"},{"name":"shares_per_post","type":"StatsAbsValueAndPrev"},{"name":"enabled_notifications","type":"StatsPercentValue"},{"name":"growth_graph","type":"StatsGraph"},{"name":"followers_graph","type":"StatsGraph"},{"name":"mute_graph","type":"StatsGraph"},{"name":"top_hours_graph","type":"StatsGraph"},{"name":"interactions_graph","type":"StatsGraph"},{"name":"iv_interactions_graph","type":"StatsGraph"},{"name":"views_by_source_graph","type":"StatsGraph"},{"name":"new_followers_by_source_graph","type":"StatsGraph"},{"name":"languages_graph","type":"StatsGraph"},{"name":"recent_message_interactions","type":"Vector"}],"type":"stats.BroadcastStats"},{"id":2566302837,"predicate":"help.promoDataEmpty","params":[{"name":"expires","type":"int"}],"type":"help.PromoData"},{"id":2352576831,"predicate":"help.promoData","params":[{"name":"flags","type":"#"},{"name":"proxy","type":"flags.0?true"},{"name":"expires","type":"int"},{"name":"peer","type":"Peer"},{"name":"chats","type":"Vector"},{"name":"users","type":"Vector"},{"name":"psa_type","type":"flags.1?string"},{"name":"psa_message","type":"flags.2?string"}],"type":"help.PromoData"},{"id":1130084743,"predicate":"videoSize","params":[{"name":"type","type":"string"},{"name":"location","type":"FileLocation"},{"name":"w","type":"int"},{"name":"h","type":"int"},{"name":"size","type":"int"}],"type":"VideoSize"}],"methods":[{"id":3416209197,"method":"invokeAfterMsg","params":[{"name":"msg_id","type":"long"},{"name":"query","type":"!X"}],"type":"X"},{"id":1036301552,"method":"invokeAfterMsgs","params":[{"name":"msg_ids","type":"Vector"},{"name":"query","type":"!X"}],"type":"X"},{"id":3251461801,"method":"initConnection","params":[{"name":"flags","type":"#"},{"name":"api_id","type":"int"},{"name":"device_model","type":"string"},{"name":"system_version","type":"string"},{"name":"app_version","type":"string"},{"name":"system_lang_code","type":"string"},{"name":"lang_pack","type":"string"},{"name":"lang_code","type":"string"},{"name":"proxy","type":"flags.0?InputClientProxy"},{"name":"params","type":"flags.1?JSONValue"},{"name":"query","type":"!X"}],"type":"X"},{"id":3667594509,"method":"invokeWithLayer","params":[{"name":"layer","type":"int"},{"name":"query","type":"!X"}],"type":"X"},{"id":3214170551,"method":"invokeWithoutUpdates","params":[{"name":"query","type":"!X"}],"type":"X"},{"id":911373810,"method":"invokeWithMessagesRange","params":[{"name":"range","type":"MessageRange"},{"name":"query","type":"!X"}],"type":"X"},{"id":2896821550,"method":"invokeWithTakeout","params":[{"name":"takeout_id","type":"long"},{"name":"query","type":"!X"}],"type":"X"},{"id":2792825935,"method":"auth.sendCode","params":[{"name":"phone_number","type":"string"},{"name":"api_id","type":"int"},{"name":"api_hash","type":"string"},{"name":"settings","type":"CodeSettings"}],"type":"auth.SentCode"},{"id":2163139623,"method":"auth.signUp","params":[{"name":"phone_number","type":"string"},{"name":"phone_code_hash","type":"string"},{"name":"first_name","type":"string"},{"name":"last_name","type":"string"}],"type":"auth.Authorization"},{"id":3168081281,"method":"auth.signIn","params":[{"name":"phone_number","type":"string"},{"name":"phone_code_hash","type":"string"},{"name":"phone_code","type":"string"}],"type":"auth.Authorization"},{"id":1461180992,"method":"auth.logOut","params":[],"type":"Bool"},{"id":2678787354,"method":"auth.resetAuthorizations","params":[],"type":"Bool"},{"id":3854565325,"method":"auth.exportAuthorization","params":[{"name":"dc_id","type":"int"}],"type":"auth.ExportedAuthorization"},{"id":3824129555,"method":"auth.importAuthorization","params":[{"name":"id","type":"int"},{"name":"bytes","type":"bytes"}],"type":"auth.Authorization"},{"id":3453233669,"method":"auth.bindTempAuthKey","params":[{"name":"perm_auth_key_id","type":"long"},{"name":"nonce","type":"long"},{"name":"expires_at","type":"int"},{"name":"encrypted_message","type":"bytes"}],"type":"Bool"},{"id":1738800940,"method":"auth.importBotAuthorization","params":[{"name":"flags","type":"int"},{"name":"api_id","type":"int"},{"name":"api_hash","type":"string"},{"name":"bot_auth_token","type":"string"}],"type":"auth.Authorization"},{"id":3515567382,"method":"auth.checkPassword","params":[{"name":"password","type":"InputCheckPasswordSRP"}],"type":"auth.Authorization"},{"id":3633822822,"method":"auth.requestPasswordRecovery","params":[],"type":"auth.PasswordRecovery"},{"id":1319464594,"method":"auth.recoverPassword","params":[{"name":"code","type":"string"}],"type":"auth.Authorization"},{"id":1056025023,"method":"auth.resendCode","params":[{"name":"phone_number","type":"string"},{"name":"phone_code_hash","type":"string"}],"type":"auth.SentCode"},{"id":520357240,"method":"auth.cancelCode","params":[{"name":"phone_number","type":"string"},{"name":"phone_code_hash","type":"string"}],"type":"Bool"},{"id":2387124616,"method":"auth.dropTempAuthKeys","params":[{"name":"except_auth_keys","type":"Vector"}],"type":"Bool"},{"id":2981369111,"method":"auth.exportLoginToken","params":[{"name":"api_id","type":"int"},{"name":"api_hash","type":"string"},{"name":"except_ids","type":"Vector"}],"type":"auth.LoginToken"},{"id":2511101156,"method":"auth.importLoginToken","params":[{"name":"token","type":"bytes"}],"type":"auth.LoginToken"},{"id":3902057805,"method":"auth.acceptLoginToken","params":[{"name":"token","type":"bytes"}],"type":"Authorization"},{"id":1754754159,"method":"account.registerDevice","params":[{"name":"flags","type":"#"},{"name":"no_muted","type":"flags.0?true"},{"name":"token_type","type":"int"},{"name":"token","type":"string"},{"name":"app_sandbox","type":"Bool"},{"name":"secret","type":"bytes"},{"name":"other_uids","type":"Vector"}],"type":"Bool"},{"id":813089983,"method":"account.unregisterDevice","params":[{"name":"token_type","type":"int"},{"name":"token","type":"string"},{"name":"other_uids","type":"Vector"}],"type":"Bool"},{"id":2227067795,"method":"account.updateNotifySettings","params":[{"name":"peer","type":"InputNotifyPeer"},{"name":"settings","type":"InputPeerNotifySettings"}],"type":"Bool"},{"id":313765169,"method":"account.getNotifySettings","params":[{"name":"peer","type":"InputNotifyPeer"}],"type":"PeerNotifySettings"},{"id":3682473799,"method":"account.resetNotifySettings","params":[],"type":"Bool"},{"id":2018596725,"method":"account.updateProfile","params":[{"name":"flags","type":"#"},{"name":"first_name","type":"flags.0?string"},{"name":"last_name","type":"flags.1?string"},{"name":"about","type":"flags.2?string"}],"type":"User"},{"id":1713919532,"method":"account.updateStatus","params":[{"name":"offline","type":"Bool"}],"type":"Bool"},{"id":2864387939,"method":"account.getWallPapers","params":[{"name":"hash","type":"int"}],"type":"account.WallPapers"},{"id":2920848735,"method":"account.reportPeer","params":[{"name":"peer","type":"InputPeer"},{"name":"reason","type":"ReportReason"}],"type":"Bool"},{"id":655677548,"method":"account.checkUsername","params":[{"name":"username","type":"string"}],"type":"Bool"},{"id":1040964988,"method":"account.updateUsername","params":[{"name":"username","type":"string"}],"type":"User"},{"id":3671837008,"method":"account.getPrivacy","params":[{"name":"key","type":"InputPrivacyKey"}],"type":"account.PrivacyRules"},{"id":3388480744,"method":"account.setPrivacy","params":[{"name":"key","type":"InputPrivacyKey"},{"name":"rules","type":"Vector"}],"type":"account.PrivacyRules"},{"id":1099779595,"method":"account.deleteAccount","params":[{"name":"reason","type":"string"}],"type":"Bool"},{"id":150761757,"method":"account.getAccountTTL","params":[],"type":"AccountDaysTTL"},{"id":608323678,"method":"account.setAccountTTL","params":[{"name":"ttl","type":"AccountDaysTTL"}],"type":"Bool"},{"id":2186758885,"method":"account.sendChangePhoneCode","params":[{"name":"phone_number","type":"string"},{"name":"settings","type":"CodeSettings"}],"type":"auth.SentCode"},{"id":1891839707,"method":"account.changePhone","params":[{"name":"phone_number","type":"string"},{"name":"phone_code_hash","type":"string"},{"name":"phone_code","type":"string"}],"type":"User"},{"id":954152242,"method":"account.updateDeviceLocked","params":[{"name":"period","type":"int"}],"type":"Bool"},{"id":3810574680,"method":"account.getAuthorizations","params":[],"type":"account.Authorizations"},{"id":3749180348,"method":"account.resetAuthorization","params":[{"name":"hash","type":"long"}],"type":"Bool"},{"id":1418342645,"method":"account.getPassword","params":[],"type":"account.Password"},{"id":2631199481,"method":"account.getPasswordSettings","params":[{"name":"password","type":"InputCheckPasswordSRP"}],"type":"account.PasswordSettings"},{"id":2778402863,"method":"account.updatePasswordSettings","params":[{"name":"password","type":"InputCheckPasswordSRP"},{"name":"new_settings","type":"account.PasswordInputSettings"}],"type":"Bool"},{"id":457157256,"method":"account.sendConfirmPhoneCode","params":[{"name":"hash","type":"string"},{"name":"settings","type":"CodeSettings"}],"type":"auth.SentCode"},{"id":1596029123,"method":"account.confirmPhone","params":[{"name":"phone_code_hash","type":"string"},{"name":"phone_code","type":"string"}],"type":"Bool"},{"id":1151208273,"method":"account.getTmpPassword","params":[{"name":"password","type":"InputCheckPasswordSRP"},{"name":"period","type":"int"}],"type":"account.TmpPassword"},{"id":405695855,"method":"account.getWebAuthorizations","params":[],"type":"account.WebAuthorizations"},{"id":755087855,"method":"account.resetWebAuthorization","params":[{"name":"hash","type":"long"}],"type":"Bool"},{"id":1747789204,"method":"account.resetWebAuthorizations","params":[],"type":"Bool"},{"id":2995305597,"method":"account.getAllSecureValues","params":[],"type":"Vector"},{"id":1936088002,"method":"account.getSecureValue","params":[{"name":"types","type":"Vector"}],"type":"Vector"},{"id":2308956957,"method":"account.saveSecureValue","params":[{"name":"value","type":"InputSecureValue"},{"name":"secure_secret_id","type":"long"}],"type":"SecureValue"},{"id":3095444555,"method":"account.deleteSecureValue","params":[{"name":"types","type":"Vector"}],"type":"Bool"},{"id":3094063329,"method":"account.getAuthorizationForm","params":[{"name":"bot_id","type":"int"},{"name":"scope","type":"string"},{"name":"public_key","type":"string"}],"type":"account.AuthorizationForm"},{"id":3875699860,"method":"account.acceptAuthorization","params":[{"name":"bot_id","type":"int"},{"name":"scope","type":"string"},{"name":"public_key","type":"string"},{"name":"value_hashes","type":"Vector"},{"name":"credentials","type":"SecureCredentialsEncrypted"}],"type":"Bool"},{"id":2778945273,"method":"account.sendVerifyPhoneCode","params":[{"name":"phone_number","type":"string"},{"name":"settings","type":"CodeSettings"}],"type":"auth.SentCode"},{"id":1305716726,"method":"account.verifyPhone","params":[{"name":"phone_number","type":"string"},{"name":"phone_code_hash","type":"string"},{"name":"phone_code","type":"string"}],"type":"Bool"},{"id":1880182943,"method":"account.sendVerifyEmailCode","params":[{"name":"email","type":"string"}],"type":"account.SentEmailCode"},{"id":3971627483,"method":"account.verifyEmail","params":[{"name":"email","type":"string"},{"name":"code","type":"string"}],"type":"Bool"},{"id":4032514052,"method":"account.initTakeoutSession","params":[{"name":"flags","type":"#"},{"name":"contacts","type":"flags.0?true"},{"name":"message_users","type":"flags.1?true"},{"name":"message_chats","type":"flags.2?true"},{"name":"message_megagroups","type":"flags.3?true"},{"name":"message_channels","type":"flags.4?true"},{"name":"files","type":"flags.5?true"},{"name":"file_max_size","type":"flags.5?int"}],"type":"account.Takeout"},{"id":489050862,"method":"account.finishTakeoutSession","params":[{"name":"flags","type":"#"},{"name":"success","type":"flags.0?true"}],"type":"Bool"},{"id":2413762848,"method":"account.confirmPasswordEmail","params":[{"name":"code","type":"string"}],"type":"Bool"},{"id":2055154197,"method":"account.resendPasswordEmail","params":[],"type":"Bool"},{"id":3251361206,"method":"account.cancelPasswordEmail","params":[],"type":"Bool"},{"id":2668087080,"method":"account.getContactSignUpNotification","params":[],"type":"Bool"},{"id":3488890721,"method":"account.setContactSignUpNotification","params":[{"name":"silent","type":"Bool"}],"type":"Bool"},{"id":1398240377,"method":"account.getNotifyExceptions","params":[{"name":"flags","type":"#"},{"name":"compare_sound","type":"flags.1?true"},{"name":"peer","type":"flags.0?InputNotifyPeer"}],"type":"Updates"},{"id":4237155306,"method":"account.getWallPaper","params":[{"name":"wallpaper","type":"InputWallPaper"}],"type":"WallPaper"},{"id":3716494945,"method":"account.uploadWallPaper","params":[{"name":"file","type":"InputFile"},{"name":"mime_type","type":"string"},{"name":"settings","type":"WallPaperSettings"}],"type":"WallPaper"},{"id":1817860919,"method":"account.saveWallPaper","params":[{"name":"wallpaper","type":"InputWallPaper"},{"name":"unsave","type":"Bool"},{"name":"settings","type":"WallPaperSettings"}],"type":"Bool"},{"id":4276967273,"method":"account.installWallPaper","params":[{"name":"wallpaper","type":"InputWallPaper"},{"name":"settings","type":"WallPaperSettings"}],"type":"Bool"},{"id":3141244932,"method":"account.resetWallPapers","params":[],"type":"Bool"},{"id":1457130303,"method":"account.getAutoDownloadSettings","params":[],"type":"account.AutoDownloadSettings"},{"id":1995661875,"method":"account.saveAutoDownloadSettings","params":[{"name":"flags","type":"#"},{"name":"low","type":"flags.0?true"},{"name":"high","type":"flags.1?true"},{"name":"settings","type":"AutoDownloadSettings"}],"type":"Bool"},{"id":473805619,"method":"account.uploadTheme","params":[{"name":"flags","type":"#"},{"name":"file","type":"InputFile"},{"name":"thumb","type":"flags.0?InputFile"},{"name":"file_name","type":"string"},{"name":"mime_type","type":"string"}],"type":"Document"},{"id":2217919007,"method":"account.createTheme","params":[{"name":"flags","type":"#"},{"name":"slug","type":"string"},{"name":"title","type":"string"},{"name":"document","type":"flags.2?InputDocument"},{"name":"settings","type":"flags.3?InputThemeSettings"}],"type":"Theme"},{"id":1555261397,"method":"account.updateTheme","params":[{"name":"flags","type":"#"},{"name":"format","type":"string"},{"name":"theme","type":"InputTheme"},{"name":"slug","type":"flags.0?string"},{"name":"title","type":"flags.1?string"},{"name":"document","type":"flags.2?InputDocument"},{"name":"settings","type":"flags.3?InputThemeSettings"}],"type":"Theme"},{"id":4065792108,"method":"account.saveTheme","params":[{"name":"theme","type":"InputTheme"},{"name":"unsave","type":"Bool"}],"type":"Bool"},{"id":2061776695,"method":"account.installTheme","params":[{"name":"flags","type":"#"},{"name":"dark","type":"flags.0?true"},{"name":"format","type":"flags.1?string"},{"name":"theme","type":"flags.1?InputTheme"}],"type":"Bool"},{"id":2375906347,"method":"account.getTheme","params":[{"name":"format","type":"string"},{"name":"theme","type":"InputTheme"},{"name":"document_id","type":"long"}],"type":"Theme"},{"id":676939512,"method":"account.getThemes","params":[{"name":"format","type":"string"},{"name":"hash","type":"int"}],"type":"account.Themes"},{"id":3044323691,"method":"account.setContentSettings","params":[{"name":"flags","type":"#"},{"name":"sensitive_enabled","type":"flags.0?true"}],"type":"Bool"},{"id":2342210990,"method":"account.getContentSettings","params":[],"type":"account.ContentSettings"},{"id":1705865692,"method":"account.getMultiWallPapers","params":[{"name":"wallpapers","type":"Vector"}],"type":"Vector"},{"id":227648840,"method":"users.getUsers","params":[{"name":"id","type":"Vector"}],"type":"Vector"},{"id":3392185777,"method":"users.getFullUser","params":[{"name":"id","type":"InputUser"}],"type":"UserFull"},{"id":2429064373,"method":"users.setSecureValueErrors","params":[{"name":"id","type":"InputUser"},{"name":"errors","type":"Vector"}],"type":"Bool"},{"id":749357634,"method":"contacts.getContactIDs","params":[{"name":"hash","type":"int"}],"type":"Vector"},{"id":3299038190,"method":"contacts.getStatuses","params":[],"type":"Vector"},{"id":3223553183,"method":"contacts.getContacts","params":[{"name":"hash","type":"int"}],"type":"contacts.Contacts"},{"id":746589157,"method":"contacts.importContacts","params":[{"name":"contacts","type":"Vector"}],"type":"contacts.ImportedContacts"},{"id":157945344,"method":"contacts.deleteContacts","params":[{"name":"id","type":"Vector"}],"type":"Updates"},{"id":269745566,"method":"contacts.deleteByPhones","params":[{"name":"phones","type":"Vector"}],"type":"Bool"},{"id":858475004,"method":"contacts.block","params":[{"name":"id","type":"InputUser"}],"type":"Bool"},{"id":3846242493,"method":"contacts.unblock","params":[{"name":"id","type":"InputUser"}],"type":"Bool"},{"id":4118557967,"method":"contacts.getBlocked","params":[{"name":"offset","type":"int"},{"name":"limit","type":"int"}],"type":"contacts.Blocked"},{"id":301470424,"method":"contacts.search","params":[{"name":"q","type":"string"},{"name":"limit","type":"int"}],"type":"contacts.Found"},{"id":4181511075,"method":"contacts.resolveUsername","params":[{"name":"username","type":"string"}],"type":"contacts.ResolvedPeer"},{"id":3566742965,"method":"contacts.getTopPeers","params":[{"name":"flags","type":"#"},{"name":"correspondents","type":"flags.0?true"},{"name":"bots_pm","type":"flags.1?true"},{"name":"bots_inline","type":"flags.2?true"},{"name":"phone_calls","type":"flags.3?true"},{"name":"forward_users","type":"flags.4?true"},{"name":"forward_chats","type":"flags.5?true"},{"name":"groups","type":"flags.10?true"},{"name":"channels","type":"flags.15?true"},{"name":"offset","type":"int"},{"name":"limit","type":"int"},{"name":"hash","type":"int"}],"type":"contacts.TopPeers"},{"id":451113900,"method":"contacts.resetTopPeerRating","params":[{"name":"category","type":"TopPeerCategory"},{"name":"peer","type":"InputPeer"}],"type":"Bool"},{"id":2274703345,"method":"contacts.resetSaved","params":[],"type":"Bool"},{"id":2196890527,"method":"contacts.getSaved","params":[],"type":"Vector"},{"id":2232729050,"method":"contacts.toggleTopPeers","params":[{"name":"enabled","type":"Bool"}],"type":"Bool"},{"id":3908330448,"method":"contacts.addContact","params":[{"name":"flags","type":"#"},{"name":"add_phone_privacy_exception","type":"flags.0?true"},{"name":"id","type":"InputUser"},{"name":"first_name","type":"string"},{"name":"last_name","type":"string"},{"name":"phone","type":"string"}],"type":"Updates"},{"id":4164002319,"method":"contacts.acceptContact","params":[{"name":"id","type":"InputUser"}],"type":"Updates"},{"id":3544759364,"method":"contacts.getLocated","params":[{"name":"flags","type":"#"},{"name":"background","type":"flags.1?true"},{"name":"geo_point","type":"InputGeoPoint"},{"name":"self_expires","type":"flags.0?int"}],"type":"Updates"},{"id":1673946374,"method":"messages.getMessages","params":[{"name":"id","type":"Vector"}],"type":"messages.Messages"},{"id":2699967347,"method":"messages.getDialogs","params":[{"name":"flags","type":"#"},{"name":"exclude_pinned","type":"flags.0?true"},{"name":"folder_id","type":"flags.1?int"},{"name":"offset_date","type":"int"},{"name":"offset_id","type":"int"},{"name":"offset_peer","type":"InputPeer"},{"name":"limit","type":"int"},{"name":"hash","type":"int"}],"type":"messages.Dialogs"},{"id":3703276128,"method":"messages.getHistory","params":[{"name":"peer","type":"InputPeer"},{"name":"offset_id","type":"int"},{"name":"offset_date","type":"int"},{"name":"add_offset","type":"int"},{"name":"limit","type":"int"},{"name":"max_id","type":"int"},{"name":"min_id","type":"int"},{"name":"hash","type":"int"}],"type":"messages.Messages"},{"id":2249518952,"method":"messages.search","params":[{"name":"flags","type":"#"},{"name":"peer","type":"InputPeer"},{"name":"q","type":"string"},{"name":"from_id","type":"flags.0?InputUser"},{"name":"filter","type":"MessagesFilter"},{"name":"min_date","type":"int"},{"name":"max_date","type":"int"},{"name":"offset_id","type":"int"},{"name":"add_offset","type":"int"},{"name":"limit","type":"int"},{"name":"max_id","type":"int"},{"name":"min_id","type":"int"},{"name":"hash","type":"int"}],"type":"messages.Messages"},{"id":238054714,"method":"messages.readHistory","params":[{"name":"peer","type":"InputPeer"},{"name":"max_id","type":"int"}],"type":"messages.AffectedMessages"},{"id":469850889,"method":"messages.deleteHistory","params":[{"name":"flags","type":"#"},{"name":"just_clear","type":"flags.0?true"},{"name":"revoke","type":"flags.1?true"},{"name":"peer","type":"InputPeer"},{"name":"max_id","type":"int"}],"type":"messages.AffectedHistory"},{"id":3851326930,"method":"messages.deleteMessages","params":[{"name":"flags","type":"#"},{"name":"revoke","type":"flags.0?true"},{"name":"id","type":"Vector"}],"type":"messages.AffectedMessages"},{"id":94983360,"method":"messages.receivedMessages","params":[{"name":"max_id","type":"int"}],"type":"Vector"},{"id":2743230032,"method":"messages.setTyping","params":[{"name":"peer","type":"InputPeer"},{"name":"action","type":"SendMessageAction"}],"type":"Bool"},{"id":1376532592,"method":"messages.sendMessage","params":[{"name":"flags","type":"#"},{"name":"no_webpage","type":"flags.1?true"},{"name":"silent","type":"flags.5?true"},{"name":"background","type":"flags.6?true"},{"name":"clear_draft","type":"flags.7?true"},{"name":"peer","type":"InputPeer"},{"name":"reply_to_msg_id","type":"flags.0?int"},{"name":"message","type":"string"},{"name":"random_id","type":"long"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"},{"name":"entities","type":"flags.3?Vector"},{"name":"schedule_date","type":"flags.10?int"}],"type":"Updates"},{"id":881978281,"method":"messages.sendMedia","params":[{"name":"flags","type":"#"},{"name":"silent","type":"flags.5?true"},{"name":"background","type":"flags.6?true"},{"name":"clear_draft","type":"flags.7?true"},{"name":"peer","type":"InputPeer"},{"name":"reply_to_msg_id","type":"flags.0?int"},{"name":"media","type":"InputMedia"},{"name":"message","type":"string"},{"name":"random_id","type":"long"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"},{"name":"entities","type":"flags.3?Vector"},{"name":"schedule_date","type":"flags.10?int"}],"type":"Updates"},{"id":3657360910,"method":"messages.forwardMessages","params":[{"name":"flags","type":"#"},{"name":"silent","type":"flags.5?true"},{"name":"background","type":"flags.6?true"},{"name":"with_my_score","type":"flags.8?true"},{"name":"grouped","type":"flags.9?true"},{"name":"from_peer","type":"InputPeer"},{"name":"id","type":"Vector"},{"name":"random_id","type":"Vector"},{"name":"to_peer","type":"InputPeer"},{"name":"schedule_date","type":"flags.10?int"}],"type":"Updates"},{"id":3474297563,"method":"messages.reportSpam","params":[{"name":"peer","type":"InputPeer"}],"type":"Bool"},{"id":913498268,"method":"messages.getPeerSettings","params":[{"name":"peer","type":"InputPeer"}],"type":"PeerSettings"},{"id":3179460184,"method":"messages.report","params":[{"name":"peer","type":"InputPeer"},{"name":"id","type":"Vector"},{"name":"reason","type":"ReportReason"}],"type":"Bool"},{"id":1013621127,"method":"messages.getChats","params":[{"name":"id","type":"Vector"}],"type":"messages.Chats"},{"id":998448230,"method":"messages.getFullChat","params":[{"name":"chat_id","type":"int"}],"type":"messages.ChatFull"},{"id":3695519829,"method":"messages.editChatTitle","params":[{"name":"chat_id","type":"int"},{"name":"title","type":"string"}],"type":"Updates"},{"id":3394009560,"method":"messages.editChatPhoto","params":[{"name":"chat_id","type":"int"},{"name":"photo","type":"InputChatPhoto"}],"type":"Updates"},{"id":4188056073,"method":"messages.addChatUser","params":[{"name":"chat_id","type":"int"},{"name":"user_id","type":"InputUser"},{"name":"fwd_limit","type":"int"}],"type":"Updates"},{"id":3764461334,"method":"messages.deleteChatUser","params":[{"name":"chat_id","type":"int"},{"name":"user_id","type":"InputUser"}],"type":"Updates"},{"id":164303470,"method":"messages.createChat","params":[{"name":"users","type":"Vector"},{"name":"title","type":"string"}],"type":"Updates"},{"id":651135312,"method":"messages.getDhConfig","params":[{"name":"version","type":"int"},{"name":"random_length","type":"int"}],"type":"messages.DhConfig"},{"id":4132286275,"method":"messages.requestEncryption","params":[{"name":"user_id","type":"InputUser"},{"name":"random_id","type":"int"},{"name":"g_a","type":"bytes"}],"type":"EncryptedChat"},{"id":1035731989,"method":"messages.acceptEncryption","params":[{"name":"peer","type":"InputEncryptedChat"},{"name":"g_b","type":"bytes"},{"name":"key_fingerprint","type":"long"}],"type":"EncryptedChat"},{"id":3990430661,"method":"messages.discardEncryption","params":[{"name":"chat_id","type":"int"}],"type":"Bool"},{"id":2031374829,"method":"messages.setEncryptedTyping","params":[{"name":"peer","type":"InputEncryptedChat"},{"name":"typing","type":"Bool"}],"type":"Bool"},{"id":2135648522,"method":"messages.readEncryptedHistory","params":[{"name":"peer","type":"InputEncryptedChat"},{"name":"max_date","type":"int"}],"type":"Bool"},{"id":2843174771,"method":"messages.sendEncrypted","params":[{"name":"peer","type":"InputEncryptedChat"},{"name":"random_id","type":"long"},{"name":"data","type":"bytes"}],"type":"messages.SentEncryptedMessage"},{"id":2593135462,"method":"messages.sendEncryptedFile","params":[{"name":"peer","type":"InputEncryptedChat"},{"name":"random_id","type":"long"},{"name":"data","type":"bytes"},{"name":"file","type":"InputEncryptedFile"}],"type":"messages.SentEncryptedMessage"},{"id":852769188,"method":"messages.sendEncryptedService","params":[{"name":"peer","type":"InputEncryptedChat"},{"name":"random_id","type":"long"},{"name":"data","type":"bytes"}],"type":"messages.SentEncryptedMessage"},{"id":1436924774,"method":"messages.receivedQueue","params":[{"name":"max_qts","type":"int"}],"type":"Vector"},{"id":1259113487,"method":"messages.reportEncryptedSpam","params":[{"name":"peer","type":"InputEncryptedChat"}],"type":"Bool"},{"id":916930423,"method":"messages.readMessageContents","params":[{"name":"id","type":"Vector"}],"type":"messages.AffectedMessages"},{"id":71126828,"method":"messages.getStickers","params":[{"name":"emoticon","type":"string"},{"name":"hash","type":"int"}],"type":"messages.Stickers"},{"id":479598769,"method":"messages.getAllStickers","params":[{"name":"hash","type":"int"}],"type":"messages.AllStickers"},{"id":2338894028,"method":"messages.getWebPagePreview","params":[{"name":"flags","type":"#"},{"name":"message","type":"string"},{"name":"entities","type":"flags.3?Vector"}],"type":"MessageMedia"},{"id":234312524,"method":"messages.exportChatInvite","params":[{"name":"peer","type":"InputPeer"}],"type":"ExportedChatInvite"},{"id":1051570619,"method":"messages.checkChatInvite","params":[{"name":"hash","type":"string"}],"type":"ChatInvite"},{"id":1817183516,"method":"messages.importChatInvite","params":[{"name":"hash","type":"string"}],"type":"Updates"},{"id":639215886,"method":"messages.getStickerSet","params":[{"name":"stickerset","type":"InputStickerSet"}],"type":"messages.StickerSet"},{"id":3348096096,"method":"messages.installStickerSet","params":[{"name":"stickerset","type":"InputStickerSet"},{"name":"archived","type":"Bool"}],"type":"messages.StickerSetInstallResult"},{"id":4184757726,"method":"messages.uninstallStickerSet","params":[{"name":"stickerset","type":"InputStickerSet"}],"type":"Bool"},{"id":3873403768,"method":"messages.startBot","params":[{"name":"bot","type":"InputUser"},{"name":"peer","type":"InputPeer"},{"name":"random_id","type":"long"},{"name":"start_param","type":"string"}],"type":"Updates"},{"id":3301483869,"method":"messages.getMessagesViews","params":[{"name":"peer","type":"InputPeer"},{"name":"id","type":"Vector"},{"name":"increment","type":"Bool"}],"type":"Vector"},{"id":2850463534,"method":"messages.editChatAdmin","params":[{"name":"chat_id","type":"int"},{"name":"user_id","type":"InputUser"},{"name":"is_admin","type":"Bool"}],"type":"Bool"},{"id":363051235,"method":"messages.migrateChat","params":[{"name":"chat_id","type":"int"}],"type":"Updates"},{"id":3211928996,"method":"messages.searchGlobal","params":[{"name":"flags","type":"#"},{"name":"folder_id","type":"flags.0?int"},{"name":"q","type":"string"},{"name":"offset_rate","type":"int"},{"name":"offset_peer","type":"InputPeer"},{"name":"offset_id","type":"int"},{"name":"limit","type":"int"}],"type":"messages.Messages"},{"id":2016638777,"method":"messages.reorderStickerSets","params":[{"name":"flags","type":"#"},{"name":"masks","type":"flags.0?true"},{"name":"order","type":"Vector"}],"type":"Bool"},{"id":864953444,"method":"messages.getDocumentByHash","params":[{"name":"sha256","type":"bytes"},{"name":"size","type":"int"},{"name":"mime_type","type":"string"}],"type":"Document"},{"id":3214571371,"method":"messages.searchGifs","params":[{"name":"q","type":"string"},{"name":"offset","type":"int"}],"type":"messages.FoundGifs"},{"id":2210348370,"method":"messages.getSavedGifs","params":[{"name":"hash","type":"int"}],"type":"messages.SavedGifs"},{"id":846868683,"method":"messages.saveGif","params":[{"name":"id","type":"InputDocument"},{"name":"unsave","type":"Bool"}],"type":"Bool"},{"id":1364105629,"method":"messages.getInlineBotResults","params":[{"name":"flags","type":"#"},{"name":"bot","type":"InputUser"},{"name":"peer","type":"InputPeer"},{"name":"geo_point","type":"flags.0?InputGeoPoint"},{"name":"query","type":"string"},{"name":"offset","type":"string"}],"type":"messages.BotResults"},{"id":3948847622,"method":"messages.setInlineBotResults","params":[{"name":"flags","type":"#"},{"name":"gallery","type":"flags.0?true"},{"name":"private","type":"flags.1?true"},{"name":"query_id","type":"long"},{"name":"results","type":"Vector"},{"name":"cache_time","type":"int"},{"name":"next_offset","type":"flags.2?string"},{"name":"switch_pm","type":"flags.3?InlineBotSwitchPM"}],"type":"Bool"},{"id":570955184,"method":"messages.sendInlineBotResult","params":[{"name":"flags","type":"#"},{"name":"silent","type":"flags.5?true"},{"name":"background","type":"flags.6?true"},{"name":"clear_draft","type":"flags.7?true"},{"name":"hide_via","type":"flags.11?true"},{"name":"peer","type":"InputPeer"},{"name":"reply_to_msg_id","type":"flags.0?int"},{"name":"random_id","type":"long"},{"name":"query_id","type":"long"},{"name":"id","type":"string"},{"name":"schedule_date","type":"flags.10?int"}],"type":"Updates"},{"id":4255550774,"method":"messages.getMessageEditData","params":[{"name":"peer","type":"InputPeer"},{"name":"id","type":"int"}],"type":"messages.MessageEditData"},{"id":1224152952,"method":"messages.editMessage","params":[{"name":"flags","type":"#"},{"name":"no_webpage","type":"flags.1?true"},{"name":"peer","type":"InputPeer"},{"name":"id","type":"int"},{"name":"message","type":"flags.11?string"},{"name":"media","type":"flags.14?InputMedia"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"},{"name":"entities","type":"flags.3?Vector"},{"name":"schedule_date","type":"flags.15?int"}],"type":"Updates"},{"id":2203418042,"method":"messages.editInlineBotMessage","params":[{"name":"flags","type":"#"},{"name":"no_webpage","type":"flags.1?true"},{"name":"id","type":"InputBotInlineMessageID"},{"name":"message","type":"flags.11?string"},{"name":"media","type":"flags.14?InputMedia"},{"name":"reply_markup","type":"flags.2?ReplyMarkup"},{"name":"entities","type":"flags.3?Vector"}],"type":"Bool"},{"id":2164957164,"method":"messages.getBotCallbackAnswer","params":[{"name":"flags","type":"#"},{"name":"game","type":"flags.1?true"},{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int"},{"name":"data","type":"flags.0?bytes"}],"type":"messages.BotCallbackAnswer"},{"id":3582923530,"method":"messages.setBotCallbackAnswer","params":[{"name":"flags","type":"#"},{"name":"alert","type":"flags.1?true"},{"name":"query_id","type":"long"},{"name":"message","type":"flags.0?string"},{"name":"url","type":"flags.2?string"},{"name":"cache_time","type":"int"}],"type":"Bool"},{"id":3832593661,"method":"messages.getPeerDialogs","params":[{"name":"peers","type":"Vector"}],"type":"messages.PeerDialogs"},{"id":3157909835,"method":"messages.saveDraft","params":[{"name":"flags","type":"#"},{"name":"no_webpage","type":"flags.1?true"},{"name":"reply_to_msg_id","type":"flags.0?int"},{"name":"peer","type":"InputPeer"},{"name":"message","type":"string"},{"name":"entities","type":"flags.3?Vector"}],"type":"Bool"},{"id":1782549861,"method":"messages.getAllDrafts","params":[],"type":"Updates"},{"id":766298703,"method":"messages.getFeaturedStickers","params":[{"name":"hash","type":"int"}],"type":"messages.FeaturedStickers"},{"id":1527873830,"method":"messages.readFeaturedStickers","params":[{"name":"id","type":"Vector"}],"type":"Bool"},{"id":1587647177,"method":"messages.getRecentStickers","params":[{"name":"flags","type":"#"},{"name":"attached","type":"flags.0?true"},{"name":"hash","type":"int"}],"type":"messages.RecentStickers"},{"id":958863608,"method":"messages.saveRecentSticker","params":[{"name":"flags","type":"#"},{"name":"attached","type":"flags.0?true"},{"name":"id","type":"InputDocument"},{"name":"unsave","type":"Bool"}],"type":"Bool"},{"id":2308530221,"method":"messages.clearRecentStickers","params":[{"name":"flags","type":"#"},{"name":"attached","type":"flags.0?true"}],"type":"Bool"},{"id":1475442322,"method":"messages.getArchivedStickers","params":[{"name":"flags","type":"#"},{"name":"masks","type":"flags.0?true"},{"name":"offset_id","type":"long"},{"name":"limit","type":"int"}],"type":"messages.ArchivedStickers"},{"id":1706608543,"method":"messages.getMaskStickers","params":[{"name":"hash","type":"int"}],"type":"messages.AllStickers"},{"id":3428542412,"method":"messages.getAttachedStickers","params":[{"name":"media","type":"InputStickeredMedia"}],"type":"Vector"},{"id":2398678208,"method":"messages.setGameScore","params":[{"name":"flags","type":"#"},{"name":"edit_message","type":"flags.0?true"},{"name":"force","type":"flags.1?true"},{"name":"peer","type":"InputPeer"},{"name":"id","type":"int"},{"name":"user_id","type":"InputUser"},{"name":"score","type":"int"}],"type":"Updates"},{"id":363700068,"method":"messages.setInlineGameScore","params":[{"name":"flags","type":"#"},{"name":"edit_message","type":"flags.0?true"},{"name":"force","type":"flags.1?true"},{"name":"id","type":"InputBotInlineMessageID"},{"name":"user_id","type":"InputUser"},{"name":"score","type":"int"}],"type":"Bool"},{"id":3894568093,"method":"messages.getGameHighScores","params":[{"name":"peer","type":"InputPeer"},{"name":"id","type":"int"},{"name":"user_id","type":"InputUser"}],"type":"messages.HighScores"},{"id":258170395,"method":"messages.getInlineGameHighScores","params":[{"name":"id","type":"InputBotInlineMessageID"},{"name":"user_id","type":"InputUser"}],"type":"messages.HighScores"},{"id":218777796,"method":"messages.getCommonChats","params":[{"name":"user_id","type":"InputUser"},{"name":"max_id","type":"int"},{"name":"limit","type":"int"}],"type":"messages.Chats"},{"id":3953659888,"method":"messages.getAllChats","params":[{"name":"except_ids","type":"Vector"}],"type":"messages.Chats"},{"id":852135825,"method":"messages.getWebPage","params":[{"name":"url","type":"string"},{"name":"hash","type":"int"}],"type":"WebPage"},{"id":2805064279,"method":"messages.toggleDialogPin","params":[{"name":"flags","type":"#"},{"name":"pinned","type":"flags.0?true"},{"name":"peer","type":"InputDialogPeer"}],"type":"Bool"},{"id":991616823,"method":"messages.reorderPinnedDialogs","params":[{"name":"flags","type":"#"},{"name":"force","type":"flags.0?true"},{"name":"folder_id","type":"int"},{"name":"order","type":"Vector"}],"type":"Bool"},{"id":3602468338,"method":"messages.getPinnedDialogs","params":[{"name":"folder_id","type":"int"}],"type":"messages.PeerDialogs"},{"id":3858133754,"method":"messages.setBotShippingResults","params":[{"name":"flags","type":"#"},{"name":"query_id","type":"long"},{"name":"error","type":"flags.0?string"},{"name":"shipping_options","type":"flags.1?Vector"}],"type":"Bool"},{"id":163765653,"method":"messages.setBotPrecheckoutResults","params":[{"name":"flags","type":"#"},{"name":"success","type":"flags.1?true"},{"name":"query_id","type":"long"},{"name":"error","type":"flags.0?string"}],"type":"Bool"},{"id":1369162417,"method":"messages.uploadMedia","params":[{"name":"peer","type":"InputPeer"},{"name":"media","type":"InputMedia"}],"type":"MessageMedia"},{"id":3380473888,"method":"messages.sendScreenshotNotification","params":[{"name":"peer","type":"InputPeer"},{"name":"reply_to_msg_id","type":"int"},{"name":"random_id","type":"long"}],"type":"Updates"},{"id":567151374,"method":"messages.getFavedStickers","params":[{"name":"hash","type":"int"}],"type":"messages.FavedStickers"},{"id":3120547163,"method":"messages.faveSticker","params":[{"name":"id","type":"InputDocument"},{"name":"unfave","type":"Bool"}],"type":"Bool"},{"id":1180140658,"method":"messages.getUnreadMentions","params":[{"name":"peer","type":"InputPeer"},{"name":"offset_id","type":"int"},{"name":"add_offset","type":"int"},{"name":"limit","type":"int"},{"name":"max_id","type":"int"},{"name":"min_id","type":"int"}],"type":"messages.Messages"},{"id":251759059,"method":"messages.readMentions","params":[{"name":"peer","type":"InputPeer"}],"type":"messages.AffectedHistory"},{"id":3150207753,"method":"messages.getRecentLocations","params":[{"name":"peer","type":"InputPeer"},{"name":"limit","type":"int"},{"name":"hash","type":"int"}],"type":"messages.Messages"},{"id":3422621899,"method":"messages.sendMultiMedia","params":[{"name":"flags","type":"#"},{"name":"silent","type":"flags.5?true"},{"name":"background","type":"flags.6?true"},{"name":"clear_draft","type":"flags.7?true"},{"name":"peer","type":"InputPeer"},{"name":"reply_to_msg_id","type":"flags.0?int"},{"name":"multi_media","type":"Vector"},{"name":"schedule_date","type":"flags.10?int"}],"type":"Updates"},{"id":1347929239,"method":"messages.uploadEncryptedFile","params":[{"name":"peer","type":"InputEncryptedChat"},{"name":"file","type":"InputEncryptedFile"}],"type":"EncryptedFile"},{"id":3266826379,"method":"messages.searchStickerSets","params":[{"name":"flags","type":"#"},{"name":"exclude_featured","type":"flags.0?true"},{"name":"q","type":"string"},{"name":"hash","type":"int"}],"type":"messages.FoundStickerSets"},{"id":486505992,"method":"messages.getSplitRanges","params":[],"type":"Vector"},{"id":3263617423,"method":"messages.markDialogUnread","params":[{"name":"flags","type":"#"},{"name":"unread","type":"flags.0?true"},{"name":"peer","type":"InputDialogPeer"}],"type":"Bool"},{"id":585256482,"method":"messages.getDialogUnreadMarks","params":[],"type":"Vector"},{"id":2119757468,"method":"messages.clearAllDrafts","params":[],"type":"Bool"},{"id":3534419948,"method":"messages.updatePinnedMessage","params":[{"name":"flags","type":"#"},{"name":"silent","type":"flags.0?true"},{"name":"peer","type":"InputPeer"},{"name":"id","type":"int"}],"type":"Updates"},{"id":283795844,"method":"messages.sendVote","params":[{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int"},{"name":"options","type":"Vector"}],"type":"Updates"},{"id":1941660731,"method":"messages.getPollResults","params":[{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int"}],"type":"Updates"},{"id":1848369232,"method":"messages.getOnlines","params":[{"name":"peer","type":"InputPeer"}],"type":"ChatOnlines"},{"id":2167155430,"method":"messages.getStatsURL","params":[{"name":"flags","type":"#"},{"name":"dark","type":"flags.0?true"},{"name":"peer","type":"InputPeer"},{"name":"params","type":"string"}],"type":"StatsURL"},{"id":3740665751,"method":"messages.editChatAbout","params":[{"name":"peer","type":"InputPeer"},{"name":"about","type":"string"}],"type":"Bool"},{"id":2777049921,"method":"messages.editChatDefaultBannedRights","params":[{"name":"peer","type":"InputPeer"},{"name":"banned_rights","type":"ChatBannedRights"}],"type":"Updates"},{"id":899735650,"method":"messages.getEmojiKeywords","params":[{"name":"lang_code","type":"string"}],"type":"EmojiKeywordsDifference"},{"id":352892591,"method":"messages.getEmojiKeywordsDifference","params":[{"name":"lang_code","type":"string"},{"name":"from_version","type":"int"}],"type":"EmojiKeywordsDifference"},{"id":1318675378,"method":"messages.getEmojiKeywordsLanguages","params":[{"name":"lang_codes","type":"Vector"}],"type":"Vector"},{"id":3585149990,"method":"messages.getEmojiURL","params":[{"name":"lang_code","type":"string"}],"type":"EmojiURL"},{"id":1932455680,"method":"messages.getSearchCounters","params":[{"name":"peer","type":"InputPeer"},{"name":"filters","type":"Vector"}],"type":"Vector"},{"id":3812578835,"method":"messages.requestUrlAuth","params":[{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int"},{"name":"button_id","type":"int"}],"type":"UrlAuthResult"},{"id":4146719384,"method":"messages.acceptUrlAuth","params":[{"name":"flags","type":"#"},{"name":"write_allowed","type":"flags.0?true"},{"name":"peer","type":"InputPeer"},{"name":"msg_id","type":"int"},{"name":"button_id","type":"int"}],"type":"UrlAuthResult"},{"id":1336717624,"method":"messages.hidePeerSettingsBar","params":[{"name":"peer","type":"InputPeer"}],"type":"Bool"},{"id":3804391515,"method":"messages.getScheduledHistory","params":[{"name":"peer","type":"InputPeer"},{"name":"hash","type":"int"}],"type":"messages.Messages"},{"id":3183150180,"method":"messages.getScheduledMessages","params":[{"name":"peer","type":"InputPeer"},{"name":"id","type":"Vector"}],"type":"messages.Messages"},{"id":3174597898,"method":"messages.sendScheduledMessages","params":[{"name":"peer","type":"InputPeer"},{"name":"id","type":"Vector"}],"type":"Updates"},{"id":1504586518,"method":"messages.deleteScheduledMessages","params":[{"name":"peer","type":"InputPeer"},{"name":"id","type":"Vector"}],"type":"Updates"},{"id":3094231054,"method":"messages.getPollVotes","params":[{"name":"flags","type":"#"},{"name":"peer","type":"InputPeer"},{"name":"id","type":"int"},{"name":"option","type":"flags.0?bytes"},{"name":"offset","type":"flags.1?string"},{"name":"limit","type":"int"}],"type":"messages.VotesList"},{"id":3037016042,"method":"messages.toggleStickerSets","params":[{"name":"flags","type":"#"},{"name":"uninstall","type":"flags.0?true"},{"name":"archive","type":"flags.1?true"},{"name":"unarchive","type":"flags.2?true"},{"name":"stickersets","type":"Vector"}],"type":"Bool"},{"id":4053719405,"method":"messages.getDialogFilters","params":[],"type":"Vector"},{"id":2728186924,"method":"messages.getSuggestedDialogFilters","params":[],"type":"Vector"},{"id":450142282,"method":"messages.updateDialogFilter","params":[{"name":"flags","type":"#"},{"name":"id","type":"int"},{"name":"filter","type":"flags.0?DialogFilter"}],"type":"Bool"},{"id":3311649252,"method":"messages.updateDialogFiltersOrder","params":[{"name":"order","type":"Vector"}],"type":"Bool"},{"id":1608974939,"method":"messages.getOldFeaturedStickers","params":[{"name":"offset","type":"int"},{"name":"limit","type":"int"},{"name":"hash","type":"int"}],"type":"messages.FeaturedStickers"},{"id":3990128682,"method":"updates.getState","params":[],"type":"updates.State"},{"id":630429265,"method":"updates.getDifference","params":[{"name":"flags","type":"#"},{"name":"pts","type":"int"},{"name":"pts_total_limit","type":"flags.0?int"},{"name":"date","type":"int"},{"name":"qts","type":"int"}],"type":"updates.Difference"},{"id":51854712,"method":"updates.getChannelDifference","params":[{"name":"flags","type":"#"},{"name":"force","type":"flags.0?true"},{"name":"channel","type":"InputChannel"},{"name":"filter","type":"ChannelMessagesFilter"},{"name":"pts","type":"int"},{"name":"limit","type":"int"}],"type":"updates.ChannelDifference"},{"id":4038807890,"method":"photos.updateProfilePhoto","params":[{"name":"id","type":"InputPhoto"}],"type":"UserProfilePhoto"},{"id":1328726168,"method":"photos.uploadProfilePhoto","params":[{"name":"file","type":"InputFile"}],"type":"photos.Photo"},{"id":2278522671,"method":"photos.deletePhotos","params":[{"name":"id","type":"Vector"}],"type":"Vector"},{"id":2446144168,"method":"photos.getUserPhotos","params":[{"name":"user_id","type":"InputUser"},{"name":"offset","type":"int"},{"name":"max_id","type":"long"},{"name":"limit","type":"int"}],"type":"photos.Photos"},{"id":3003426337,"method":"upload.saveFilePart","params":[{"name":"file_id","type":"long"},{"name":"file_part","type":"int"},{"name":"bytes","type":"bytes"}],"type":"Bool"},{"id":2975505148,"method":"upload.getFile","params":[{"name":"flags","type":"#"},{"name":"precise","type":"flags.0?true"},{"name":"cdn_supported","type":"flags.1?true"},{"name":"location","type":"InputFileLocation"},{"name":"offset","type":"int"},{"name":"limit","type":"int"}],"type":"upload.File"},{"id":3732629309,"method":"upload.saveBigFilePart","params":[{"name":"file_id","type":"long"},{"name":"file_part","type":"int"},{"name":"file_total_parts","type":"int"},{"name":"bytes","type":"bytes"}],"type":"Bool"},{"id":619086221,"method":"upload.getWebFile","params":[{"name":"location","type":"InputWebFileLocation"},{"name":"offset","type":"int"},{"name":"limit","type":"int"}],"type":"upload.WebFile"},{"id":536919235,"method":"upload.getCdnFile","params":[{"name":"file_token","type":"bytes"},{"name":"offset","type":"int"},{"name":"limit","type":"int"}],"type":"upload.CdnFile"},{"id":2603046056,"method":"upload.reuploadCdnFile","params":[{"name":"file_token","type":"bytes"},{"name":"request_token","type":"bytes"}],"type":"Vector"},{"id":1302676017,"method":"upload.getCdnFileHashes","params":[{"name":"file_token","type":"bytes"},{"name":"offset","type":"int"}],"type":"Vector"},{"id":3338819889,"method":"upload.getFileHashes","params":[{"name":"location","type":"InputFileLocation"},{"name":"offset","type":"int"}],"type":"Vector"},{"id":3304659051,"method":"help.getConfig","params":[],"type":"Config"},{"id":531836966,"method":"help.getNearestDc","params":[],"type":"NearestDc"},{"id":1378703997,"method":"help.getAppUpdate","params":[{"name":"source","type":"string"}],"type":"help.AppUpdate"},{"id":1295590211,"method":"help.getInviteText","params":[],"type":"help.InviteText"},{"id":2631862477,"method":"help.getSupport","params":[],"type":"help.Support"},{"id":2417028975,"method":"help.getAppChangelog","params":[{"name":"prev_app_version","type":"string"}],"type":"Updates"},{"id":3961704397,"method":"help.setBotUpdatesStatus","params":[{"name":"pending_updates_count","type":"int"},{"name":"message","type":"string"}],"type":"Bool"},{"id":1375900482,"method":"help.getCdnConfig","params":[],"type":"CdnConfig"},{"id":1036054804,"method":"help.getRecentMeUrls","params":[{"name":"referer","type":"string"}],"type":"help.RecentMeUrls"},{"id":749019089,"method":"help.getTermsOfServiceUpdate","params":[],"type":"help.TermsOfServiceUpdate"},{"id":4000511898,"method":"help.acceptTermsOfService","params":[{"name":"id","type":"DataJSON"}],"type":"Bool"},{"id":1072547679,"method":"help.getDeepLinkInfo","params":[{"name":"path","type":"string"}],"type":"help.DeepLinkInfo"},{"id":2559656208,"method":"help.getAppConfig","params":[],"type":"JSONValue"},{"id":1862465352,"method":"help.saveAppLog","params":[{"name":"events","type":"Vector"}],"type":"Bool"},{"id":3328290056,"method":"help.getPassportConfig","params":[{"name":"hash","type":"int"}],"type":"help.PassportConfig"},{"id":3546343212,"method":"help.getSupportName","params":[],"type":"help.SupportName"},{"id":59377875,"method":"help.getUserInfo","params":[{"name":"user_id","type":"InputUser"}],"type":"help.UserInfo"},{"id":1723407216,"method":"help.editUserInfo","params":[{"name":"user_id","type":"InputUser"},{"name":"message","type":"string"},{"name":"entities","type":"Vector"}],"type":"help.UserInfo"},{"id":3231151137,"method":"help.getPromoData","params":[],"type":"help.PromoData"},{"id":505748629,"method":"help.hidePromoData","params":[{"name":"peer","type":"InputPeer"}],"type":"Bool"},{"id":3423619383,"method":"channels.readHistory","params":[{"name":"channel","type":"InputChannel"},{"name":"max_id","type":"int"}],"type":"Bool"},{"id":2227305806,"method":"channels.deleteMessages","params":[{"name":"channel","type":"InputChannel"},{"name":"id","type":"Vector"}],"type":"messages.AffectedMessages"},{"id":3507345179,"method":"channels.deleteUserHistory","params":[{"name":"channel","type":"InputChannel"},{"name":"user_id","type":"InputUser"}],"type":"messages.AffectedHistory"},{"id":4261967888,"method":"channels.reportSpam","params":[{"name":"channel","type":"InputChannel"},{"name":"user_id","type":"InputUser"},{"name":"id","type":"Vector"}],"type":"Bool"},{"id":2911672867,"method":"channels.getMessages","params":[{"name":"channel","type":"InputChannel"},{"name":"id","type":"Vector"}],"type":"messages.Messages"},{"id":306054633,"method":"channels.getParticipants","params":[{"name":"channel","type":"InputChannel"},{"name":"filter","type":"ChannelParticipantsFilter"},{"name":"offset","type":"int"},{"name":"limit","type":"int"},{"name":"hash","type":"int"}],"type":"channels.ChannelParticipants"},{"id":1416484774,"method":"channels.getParticipant","params":[{"name":"channel","type":"InputChannel"},{"name":"user_id","type":"InputUser"}],"type":"channels.ChannelParticipant"},{"id":176122811,"method":"channels.getChannels","params":[{"name":"id","type":"Vector"}],"type":"messages.Chats"},{"id":141781513,"method":"channels.getFullChannel","params":[{"name":"channel","type":"InputChannel"}],"type":"messages.ChatFull"},{"id":1029681423,"method":"channels.createChannel","params":[{"name":"flags","type":"#"},{"name":"broadcast","type":"flags.0?true"},{"name":"megagroup","type":"flags.1?true"},{"name":"title","type":"string"},{"name":"about","type":"string"},{"name":"geo_point","type":"flags.2?InputGeoPoint"},{"name":"address","type":"flags.2?string"}],"type":"Updates"},{"id":3543959810,"method":"channels.editAdmin","params":[{"name":"channel","type":"InputChannel"},{"name":"user_id","type":"InputUser"},{"name":"admin_rights","type":"ChatAdminRights"},{"name":"rank","type":"string"}],"type":"Updates"},{"id":1450044624,"method":"channels.editTitle","params":[{"name":"channel","type":"InputChannel"},{"name":"title","type":"string"}],"type":"Updates"},{"id":4046346185,"method":"channels.editPhoto","params":[{"name":"channel","type":"InputChannel"},{"name":"photo","type":"InputChatPhoto"}],"type":"Updates"},{"id":283557164,"method":"channels.checkUsername","params":[{"name":"channel","type":"InputChannel"},{"name":"username","type":"string"}],"type":"Bool"},{"id":890549214,"method":"channels.updateUsername","params":[{"name":"channel","type":"InputChannel"},{"name":"username","type":"string"}],"type":"Bool"},{"id":615851205,"method":"channels.joinChannel","params":[{"name":"channel","type":"InputChannel"}],"type":"Updates"},{"id":4164332181,"method":"channels.leaveChannel","params":[{"name":"channel","type":"InputChannel"}],"type":"Updates"},{"id":429865580,"method":"channels.inviteToChannel","params":[{"name":"channel","type":"InputChannel"},{"name":"users","type":"Vector"}],"type":"Updates"},{"id":3222347747,"method":"channels.deleteChannel","params":[{"name":"channel","type":"InputChannel"}],"type":"Updates"},{"id":3468128611,"method":"channels.exportMessageLink","params":[{"name":"channel","type":"InputChannel"},{"name":"id","type":"int"},{"name":"grouped","type":"Bool"}],"type":"ExportedMessageLink"},{"id":527021574,"method":"channels.toggleSignatures","params":[{"name":"channel","type":"InputChannel"},{"name":"enabled","type":"Bool"}],"type":"Updates"},{"id":4172297903,"method":"channels.getAdminedPublicChannels","params":[{"name":"flags","type":"#"},{"name":"by_location","type":"flags.0?true"},{"name":"check_limit","type":"flags.1?true"}],"type":"messages.Chats"},{"id":1920559378,"method":"channels.editBanned","params":[{"name":"channel","type":"InputChannel"},{"name":"user_id","type":"InputUser"},{"name":"banned_rights","type":"ChatBannedRights"}],"type":"Updates"},{"id":870184064,"method":"channels.getAdminLog","params":[{"name":"flags","type":"#"},{"name":"channel","type":"InputChannel"},{"name":"q","type":"string"},{"name":"events_filter","type":"flags.0?ChannelAdminLogEventsFilter"},{"name":"admins","type":"flags.1?Vector"},{"name":"max_id","type":"long"},{"name":"min_id","type":"long"},{"name":"limit","type":"int"}],"type":"channels.AdminLogResults"},{"id":3935085817,"method":"channels.setStickers","params":[{"name":"channel","type":"InputChannel"},{"name":"stickerset","type":"InputStickerSet"}],"type":"Bool"},{"id":3937786936,"method":"channels.readMessageContents","params":[{"name":"channel","type":"InputChannel"},{"name":"id","type":"Vector"}],"type":"Bool"},{"id":2939592002,"method":"channels.deleteHistory","params":[{"name":"channel","type":"InputChannel"},{"name":"max_id","type":"int"}],"type":"Bool"},{"id":3938171212,"method":"channels.togglePreHistoryHidden","params":[{"name":"channel","type":"InputChannel"},{"name":"enabled","type":"Bool"}],"type":"Updates"},{"id":2202135744,"method":"channels.getLeftChannels","params":[{"name":"offset","type":"int"}],"type":"messages.Chats"},{"id":4124758904,"method":"channels.getGroupsForDiscussion","params":[],"type":"messages.Chats"},{"id":1079520178,"method":"channels.setDiscussionGroup","params":[{"name":"broadcast","type":"InputChannel"},{"name":"group","type":"InputChannel"}],"type":"Bool"},{"id":2402864415,"method":"channels.editCreator","params":[{"name":"channel","type":"InputChannel"},{"name":"user_id","type":"InputUser"},{"name":"password","type":"InputCheckPasswordSRP"}],"type":"Updates"},{"id":1491484525,"method":"channels.editLocation","params":[{"name":"channel","type":"InputChannel"},{"name":"geo_point","type":"InputGeoPoint"},{"name":"address","type":"string"}],"type":"Bool"},{"id":3990134512,"method":"channels.toggleSlowMode","params":[{"name":"channel","type":"InputChannel"},{"name":"seconds","type":"int"}],"type":"Updates"},{"id":300429806,"method":"channels.getInactiveChannels","params":[],"type":"messages.InactiveChats"},{"id":2854709741,"method":"bots.sendCustomRequest","params":[{"name":"custom_method","type":"string"},{"name":"params","type":"DataJSON"}],"type":"DataJSON"},{"id":3860938573,"method":"bots.answerWebhookJSONQuery","params":[{"name":"query_id","type":"long"},{"name":"data","type":"DataJSON"}],"type":"Bool"},{"id":2153596662,"method":"bots.setBotCommands","params":[{"name":"commands","type":"Vector"}],"type":"Bool"},{"id":2582681413,"method":"payments.getPaymentForm","params":[{"name":"msg_id","type":"int"}],"type":"payments.PaymentForm"},{"id":2693966208,"method":"payments.getPaymentReceipt","params":[{"name":"msg_id","type":"int"}],"type":"payments.PaymentReceipt"},{"id":1997180532,"method":"payments.validateRequestedInfo","params":[{"name":"flags","type":"#"},{"name":"save","type":"flags.0?true"},{"name":"msg_id","type":"int"},{"name":"info","type":"PaymentRequestedInfo"}],"type":"payments.ValidatedRequestedInfo"},{"id":730364339,"method":"payments.sendPaymentForm","params":[{"name":"flags","type":"#"},{"name":"msg_id","type":"int"},{"name":"requested_info_id","type":"flags.0?string"},{"name":"shipping_option_id","type":"flags.1?string"},{"name":"credentials","type":"InputPaymentCredentials"}],"type":"payments.PaymentResult"},{"id":578650699,"method":"payments.getSavedInfo","params":[],"type":"payments.SavedInfo"},{"id":3627905217,"method":"payments.clearSavedInfo","params":[{"name":"flags","type":"#"},{"name":"credentials","type":"flags.0?true"},{"name":"info","type":"flags.1?true"}],"type":"Bool"},{"id":779736953,"method":"payments.getBankCardData","params":[{"name":"number","type":"string"}],"type":"payments.BankCardData"},{"id":4043532160,"method":"stickers.createStickerSet","params":[{"name":"flags","type":"#"},{"name":"masks","type":"flags.0?true"},{"name":"animated","type":"flags.1?true"},{"name":"user_id","type":"InputUser"},{"name":"title","type":"string"},{"name":"short_name","type":"string"},{"name":"thumb","type":"flags.2?InputDocument"},{"name":"stickers","type":"Vector"}],"type":"messages.StickerSet"},{"id":4151709521,"method":"stickers.removeStickerFromSet","params":[{"name":"sticker","type":"InputDocument"}],"type":"messages.StickerSet"},{"id":4290172106,"method":"stickers.changeStickerPosition","params":[{"name":"sticker","type":"InputDocument"},{"name":"position","type":"int"}],"type":"messages.StickerSet"},{"id":2253651646,"method":"stickers.addStickerToSet","params":[{"name":"stickerset","type":"InputStickerSet"},{"name":"sticker","type":"InputStickerSetItem"}],"type":"messages.StickerSet"},{"id":2587250224,"method":"stickers.setStickerSetThumb","params":[{"name":"stickerset","type":"InputStickerSet"},{"name":"thumb","type":"InputDocument"}],"type":"messages.StickerSet"},{"id":1430593449,"method":"phone.getCallConfig","params":[],"type":"DataJSON"},{"id":1124046573,"method":"phone.requestCall","params":[{"name":"flags","type":"#"},{"name":"video","type":"flags.0?true"},{"name":"user_id","type":"InputUser"},{"name":"random_id","type":"int"},{"name":"g_a_hash","type":"bytes"},{"name":"protocol","type":"PhoneCallProtocol"}],"type":"phone.PhoneCall"},{"id":1003664544,"method":"phone.acceptCall","params":[{"name":"peer","type":"InputPhoneCall"},{"name":"g_b","type":"bytes"},{"name":"protocol","type":"PhoneCallProtocol"}],"type":"phone.PhoneCall"},{"id":788404002,"method":"phone.confirmCall","params":[{"name":"peer","type":"InputPhoneCall"},{"name":"g_a","type":"bytes"},{"name":"key_fingerprint","type":"long"},{"name":"protocol","type":"PhoneCallProtocol"}],"type":"phone.PhoneCall"},{"id":399855457,"method":"phone.receivedCall","params":[{"name":"peer","type":"InputPhoneCall"}],"type":"Bool"},{"id":2999697856,"method":"phone.discardCall","params":[{"name":"flags","type":"#"},{"name":"video","type":"flags.0?true"},{"name":"peer","type":"InputPhoneCall"},{"name":"duration","type":"int"},{"name":"reason","type":"PhoneCallDiscardReason"},{"name":"connection_id","type":"long"}],"type":"Updates"},{"id":1508562471,"method":"phone.setCallRating","params":[{"name":"flags","type":"#"},{"name":"user_initiative","type":"flags.0?true"},{"name":"peer","type":"InputPhoneCall"},{"name":"rating","type":"int"},{"name":"comment","type":"string"}],"type":"Updates"},{"id":662363518,"method":"phone.saveCallDebug","params":[{"name":"peer","type":"InputPhoneCall"},{"name":"debug","type":"DataJSON"}],"type":"Bool"},{"id":4286223235,"method":"phone.sendSignalingData","params":[{"name":"peer","type":"InputPhoneCall"},{"name":"data","type":"bytes"}],"type":"Bool"},{"id":4075959050,"method":"langpack.getLangPack","params":[{"name":"lang_pack","type":"string"},{"name":"lang_code","type":"string"}],"type":"LangPackDifference"},{"id":4025104387,"method":"langpack.getStrings","params":[{"name":"lang_pack","type":"string"},{"name":"lang_code","type":"string"},{"name":"keys","type":"Vector"}],"type":"Vector"},{"id":3449309861,"method":"langpack.getDifference","params":[{"name":"lang_pack","type":"string"},{"name":"lang_code","type":"string"},{"name":"from_version","type":"int"}],"type":"LangPackDifference"},{"id":1120311183,"method":"langpack.getLanguages","params":[{"name":"lang_pack","type":"string"}],"type":"Vector"},{"id":1784243458,"method":"langpack.getLanguage","params":[{"name":"lang_pack","type":"string"},{"name":"lang_code","type":"string"}],"type":"LangPackLanguage"},{"id":1749536939,"method":"folders.editPeerFolders","params":[{"name":"folder_peers","type":"Vector"}],"type":"Updates"},{"id":472471681,"method":"folders.deleteFolder","params":[{"name":"folder_id","type":"int"}],"type":"Updates"},{"id":2873246746,"method":"stats.getBroadcastStats","params":[{"name":"flags","type":"#"},{"name":"dark","type":"flags.0?true"},{"name":"channel","type":"InputChannel"}],"type":"stats.BroadcastStats"},{"id":1646092192,"method":"stats.loadAsyncGraph","params":[{"name":"flags","type":"#"},{"name":"token","type":"string"},{"name":"x","type":"flags.0?long"}],"type":"StatsGraph"}]}, "layer": 114} as { MTProto: { constructors: Constructor[], methods: Method[], diff --git a/src/lib/utils.js b/src/lib/utils.js index e30bd7e9..782d75c2 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -297,6 +297,17 @@ export function findUpTag(el, tag) { return null; } +export function findUpAttribute(el, attribute) { + if(el.getAttribute(attribute) != null) return el; // 03.02.2020 + + while(el.parentElement) { + el = el.parentElement; + if(el.getAttribute(attribute) != null) + return el; + } + return null; +} + export function whichChild(elem/* : Node */) { let i = 0; // @ts-ignore diff --git a/src/pages/pageAuthCode.ts b/src/pages/pageAuthCode.ts index b9b0a581..55c36252 100644 --- a/src/pages/pageAuthCode.ts +++ b/src/pages/pageAuthCode.ts @@ -236,35 +236,23 @@ let onFirstMount = (): Promise => { let imageDiv = page.pageEl.querySelector('.auth-image') as HTMLDivElement; return Promise.all([ - LottieLoader.loadLottieWorkers(), - - fetch('assets/img/TwoFactorSetupMonkeyIdle.tgs') - .then(res => res.arrayBuffer()) - .then(data => apiManager.gzipUncompress(data, true)) - .then(str => LottieLoader.loadAnimationWorker({ + LottieLoader.loadAnimationFromURL({ container: imageDiv, loop: true, autoplay: true, - animationData: JSON.parse(str), width: 166, height: 166 - })) - .then(animation => { + }, 'assets/img/TwoFactorSetupMonkeyIdle.tgs').then(animation => { idleAnimation = animation; }), - /* false && */fetch('assets/img/TwoFactorSetupMonkeyTracking.tgs') - .then(res => res.arrayBuffer()) - .then(data => apiManager.gzipUncompress(data, true)) - .then(str => LottieLoader.loadAnimationWorker({ + LottieLoader.loadAnimationFromURL({ container: imageDiv, loop: false, autoplay: false, - animationData: JSON.parse(str), width: 166, height: 166 - })) - .then(_animation => { + }, 'assets/img/TwoFactorSetupMonkeyTracking.tgs').then(_animation => { animation = _animation; if(!codeInput.value.length) { @@ -272,7 +260,7 @@ let onFirstMount = (): Promise => { } animation.addListener('enterFrame', currentFrame => { - console.log('enterFrame', currentFrame, needFrame); + //console.log('enterFrame', currentFrame, needFrame); //let currentFrame = Math.round(e.currentTime); if((animation.direction == 1 && currentFrame >= needFrame) || diff --git a/src/pages/pagePassword.ts b/src/pages/pagePassword.ts index 17e4009a..c7d95e8c 100644 --- a/src/pages/pagePassword.ts +++ b/src/pages/pagePassword.ts @@ -91,20 +91,13 @@ let onFirstMount = (): Promise => { }); */ return Promise.all([ - LottieLoader.loadLottieWorkers(), - - fetch('assets/img/TwoFactorSetupMonkeyClose.tgs') - .then(res => res.arrayBuffer()) - .then(data => apiManager.gzipUncompress(data, true)) - .then(str => LottieLoader.loadAnimationWorker({ + LottieLoader.loadAnimationFromURL({ container: page.pageEl.querySelector('.auth-image'), loop: false, autoplay: false, - animationData: JSON.parse(str), width: 166, height: 166 - })) - .then(_animation => { + }, 'assets/img/TwoFactorSetupMonkeyClose.tgs').then(_animation => { animation = _animation; animation.addListener('enterFrame', currentFrame => { //console.log('enterFrame', e, needFrame); diff --git a/src/scss/partials/_chat.scss b/src/scss/partials/_chat.scss index 2fe6cb50..278deb63 100644 --- a/src/scss/partials/_chat.scss +++ b/src/scss/partials/_chat.scss @@ -3,13 +3,17 @@ $time-background: rgba(0, 0, 0, .35); #bubble-contextmenu > div { padding: 0 84px 0 16px; + + @include respond-to(handhelds) { + padding: 0 60px 0 16px; + } } #topbar { width: 100%; background-color: #fff; user-select: none; - box-shadow: 0px 1px 5px -1px rgba(0,0,0,0.18); + box-shadow: 0px 1px 5px -1px rgba(0,0,0,0.21); z-index: 1; min-height: 56px; max-height: 56px; @@ -62,6 +66,10 @@ $time-background: rgba(0, 0, 0, .35); .btn-menu { top: calc(100% + 7px); } + + @include respond-to(handhelds) { + margin-left: 0; + } } .chat-info { @@ -73,7 +81,11 @@ $time-background: rgba(0, 0, 0, .35); // padding-left: 17px; // line-height: 1.6; padding-left: 10px; - line-height: 1.3; + //line-height: 1.3; + + @include respond-to(handhelds) { + max-width: 208px; + } } .person { @@ -88,7 +100,7 @@ $time-background: rgba(0, 0, 0, .35); .bottom { font-size: 14px; - line-height: 18px; + //line-height: 18px; color: #707579; .online { @@ -127,7 +139,7 @@ $time-background: rgba(0, 0, 0, .35); @include respond-to(handhelds) { - padding: .35rem .5rem .5rem; + padding: 0 .5rem .5rem; } @include respond-to(not-handhelds) { @@ -214,7 +226,7 @@ $time-background: rgba(0, 0, 0, .35); height: 10px; background-color: #e53935; border-radius: 50%; - margin: 0 .5rem; + margin: 0 9px; display: inline-block; animation: recordBlink 1.25s infinite; } @@ -231,13 +243,20 @@ $time-background: rgba(0, 0, 0, .35); left: -48px; transition: transform .03s, visibility .1s; visibility: hidden; + + @include respond-to(handhelds) { + width: 300px; + height: 300px; + top: -124px; + left: -124px; + } } &.is-recording { #btn-record-cancel { opacity: 1; visibility: visible; - margin-right: .5rem; + margin-right: 9px; transition: width .1s, margin-right .1s, visibility 0s .1s, opacity .1s .1s; } @@ -279,14 +298,24 @@ $time-background: rgba(0, 0, 0, .35); #im-title { cursor: pointer; - margin-top: -2px; font-size: 18px; + line-height: 24px; + + @include respond-to(handhelds) { + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; + } span.emoji { vertical-align: inherit; } } +.info#im-subtitle { + margin-top: -2px; +} + .chat-container { display: flex; // padding: 200px; @@ -471,6 +500,14 @@ $time-background: rgba(0, 0, 0, .35); // height: 100%; height: 52px; padding: 1rem; + + &-subtitle { + line-height: 13px !important; + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; + max-width: 280px; + } } } @@ -530,9 +567,9 @@ $time-background: rgba(0, 0, 0, .35); white-space: nowrap; text-overflow: ellipsis; - @include respond-to(handhelds) { - line-height: 13px; - } + // @include respond-to(handhelds) { + // line-height: 13px; + // } } &-subtitle { @@ -765,6 +802,9 @@ $time-background: rgba(0, 0, 0, .35); //flex-direction: unset; display: block; + @include respond-to(handhelds) { + padding: 0 .5rem; + } /* display: flex; flex-direction: column; @@ -814,10 +854,12 @@ $time-background: rgba(0, 0, 0, .35); &.is-chat { .is-in .bubble__container { - margin-left: 3rem; + margin-left: 45px; + //margin-left: 3rem; #DO JS3 @include respond-to(handhelds) { max-width: calc(100% - 3rem); + margin-left: 45px; } } } @@ -899,7 +941,7 @@ $time-background: rgba(0, 0, 0, .35); display: flex; justify-content: space-between; align-items: center; - box-shadow: 0px -1px 5px -1px rgba(0,0,0,0.18); + box-shadow: 0px -1px 5px -1px rgba(0,0,0,0.21); .chat-search-count { margin-left: 8px; @@ -956,7 +998,7 @@ $time-background: rgba(0, 0, 0, .35); width: 100%; justify-content: center; z-index: 5; - top: 10px; + top: 8px; align-items: center; transform: translateY(calc(-100% - 10px)); transition: transform .2s ease; @@ -969,7 +1011,7 @@ $time-background: rgba(0, 0, 0, .35); background: rgba(0, 0, 0, .7); text-align: center; width: auto; - padding: 12px 18px 12px 48px; + padding: 10px 18px 12px 50px; min-height: 48px; border-radius: 12px; line-height: 1.5; @@ -990,7 +1032,7 @@ $time-background: rgba(0, 0, 0, .35); &:before { content: $tgico-info2; position: absolute; - left: 12px; + left: 15px; font-size: 1.5rem; top: 12px; } diff --git a/src/scss/partials/_chatBubble.scss b/src/scss/partials/_chatBubble.scss index 85b88a36..b838d8dd 100644 --- a/src/scss/partials/_chatBubble.scss +++ b/src/scss/partials/_chatBubble.scss @@ -49,6 +49,10 @@ $bubble-margin: .25rem; margin: 0 auto; } + @include respond-to(handhelds) { + max-width: unquote("min(calc(100% - 46px), #{$chat-max-width})"); + } + &.is-selected { &:after { position: absolute; @@ -67,6 +71,10 @@ $bubble-margin: .25rem; } &.is-first-unread { + @include respond-to(handhelds) { + max-width: unset; + } + &:before { content: "Unread messages"; height: 30px; @@ -135,13 +143,18 @@ $bubble-margin: .25rem; > .user-avatar { position: absolute; - left: -3rem; + left: -45px; + //left: -3rem; # DO JS3 width: 40px; height: 40px; line-height: 40px; bottom: 0; font-size: 1rem; cursor: pointer; + + // @include respond-to(handhelds) { + // left: -45px; + // } } } @@ -630,6 +643,11 @@ $bubble-margin: .25rem; top: 0; margin-bottom: 0; + @include respond-to(handhelds) { + padding: 8px 6px 8px 8px; + max-width: 94px; + } + .reply-content { margin-top: 0; } @@ -1088,6 +1106,10 @@ $bubble-margin: .25rem; .reply { left: calc(100% + 10px); background-color: #fff; + + @include respond-to(handhelds) { + left: calc(100% + 1px); + } } } } @@ -1443,7 +1465,8 @@ $bubble-margin: .25rem; poll-element { margin-top: -1px; display: block; - min-width: 280px; + //min-width: 280px; + min-width: 330px; &:not(.is-closed):not(.is-voted) .poll-answer { cursor: pointer; @@ -1458,6 +1481,7 @@ poll-element { &-desc { font-size: 14px; color: #707579; + margin-top: 2px; margin-bottom: 7px; user-select: none; display: flex; @@ -1466,8 +1490,9 @@ poll-element { &-hint { position: absolute; - right: 0; font-size: 1.5rem; + top: -4px; + right: 2px; color: #50a2e9; cursor: pointer; transform: scale(1); @@ -1485,18 +1510,19 @@ poll-element { &-avatars { display: flex; - margin-left: 1rem; + margin-left: 18px; } &-answer { display: flex; position: relative; padding-bottom: 20px; - padding-left: 34px; + padding-left: 28px; + margin-top: 1px; &-text { - margin-top: 7px; - margin-left: 14px; + margin-top: 6px; + margin-left: 12px; user-select: none; } @@ -1507,8 +1533,9 @@ poll-element { opacity: 0; font-weight: 500; margin-top: 7px; + font-size: 14px; transition: .34s opacity; - margin-left: -3px; + margin-left: -9px; text-align: right; width: 40px; user-select: none; @@ -1517,7 +1544,7 @@ poll-element { &-selected { position: absolute; bottom: 1px; - left: 22px; + left: 15px; color: #fff; background: #50a2e9; border-radius: 50%; @@ -1577,12 +1604,13 @@ poll-element { color: #707579; font-size: 14px; user-select: none; + padding-top: 1px; } &-line { height: 35px; position: absolute; - left: 17.5px; + left: 10px; bottom: 2px; transition: stroke-dashoffset .34s linear, stroke-dasharray .34s linear; stroke-dashoffset: 0; @@ -1623,12 +1651,23 @@ poll-element { } &-quiz-timer { - width: 30px; - height: 30px; - stroke: #DF3F40; + width: 32px; + height: 32px; + stroke: #a3adb6; + transform: rotate(270deg); + top: -7px; fill: none; position: absolute; - right: 0; + right: -2px; + stroke-linecap: round; + } + + &-time { + font-size: 12px; + font-weight: 500; + position: absolute; + right: 27px; + color: #a3adb6; } } @@ -1641,7 +1680,7 @@ poll-element { .poll-answer-selected { background: #DF3F40; - line-height: 16px; + //line-height: 16px; &:before { content: $tgico-close; @@ -1660,8 +1699,8 @@ poll-element { } avatar-element { - width: 20px; - height: 20px; + width: 18px; + height: 18px; border: 1px solid #fff; line-height: 20px; font-size: 10px; @@ -1680,10 +1719,9 @@ poll-element { align-items: center; width: 34px; height: 34px; - margin-left: 5px; position: absolute; - left: 0; - top: 0; + left: -1px; + top: -1px; transform: scale(1); transition: .1s transform; @@ -1693,9 +1731,9 @@ poll-element { left: 50%; top: 50%; transform: translate(-50%, -50%); - width: 16px; - height: 16px; - font-size: 16px; + width: 20px; + height: 20px; + font-size: 20px; line-height: 16px; animation: none; transition: opacity .2s ease; @@ -1727,7 +1765,7 @@ poll-element { stroke-dashoffset: 0; stroke-opacity: 1; stroke-width: 2; - stroke: #8d969c; + stroke: #dadbdc; fill: transparent; } } diff --git a/src/scss/partials/_chatlist.scss b/src/scss/partials/_chatlist.scss index b31cf9fd..665dbbe0 100644 --- a/src/scss/partials/_chatlist.scss +++ b/src/scss/partials/_chatlist.scss @@ -84,7 +84,7 @@ li { //padding: 0 0 2px 0; - padding-bottom: 4px; + //padding-bottom: 4px; - DO MAKETA JS3 //overflow: hidden; background-color: #fff; @@ -106,7 +106,7 @@ position: relative; cursor: pointer; padding: 9px 8.5px; - margin: 0px 8px 0px 7px; + margin: 0px 8px 0px 8px; overflow: hidden; @media not all and (min-resolution:.001dpcm) @@ -116,8 +116,9 @@ } @include respond-to(handhelds) { - padding: 9px 0 0 0; - margin: 0px 11.5px 0px 9px; + padding: 9px 12px 0 9px; + border-radius: 0; + margin: 0; overflow: hidden; } @@ -189,8 +190,8 @@ overflow: hidden; color: $color-gray; flex: 1 1 auto; - padding: 1px 3.5px 1px 9px; - + //padding: 1px 3.5px 1px 9px; - DO MAKETA JS3 + padding: 1px 8.5px 1px 9px; // JS3 p:last-child { margin-top: -3px; } diff --git a/src/scss/partials/_emojiDropdown.scss b/src/scss/partials/_emojiDropdown.scss index 01fe06b4..ed9a2ee2 100644 --- a/src/scss/partials/_emojiDropdown.scss +++ b/src/scss/partials/_emojiDropdown.scss @@ -11,7 +11,7 @@ @include respond-to(not-handhelds) { position: absolute !important; left: 0; - bottom: calc(82px); + bottom: calc(85px); width: 420px !important; height: 420px; box-shadow: 0px 5px 10px 5px rgba(16, 35, 47, 0.14); @@ -30,6 +30,7 @@ > .menu-horizontal { //font-weight: 500; margin-top: 2px; + border: none; } .emoji-container { @@ -51,11 +52,13 @@ &-search { position: absolute; left: 0; + margin-left: 4px !important; } &-delete { position: absolute; right: 0; + margin-right: 4px !important; } } @@ -64,18 +67,21 @@ height: 100%; .category-title { - position: sticky; + //position: sticky; top: 0; - font-size: .85rem; + //font-size: .85rem; + font-size: 14px; + font-weight: 500; color: $color-gray; - background: linear-gradient(to bottom,#fff 0,rgba(255,255,255,.9) 60%,rgba(255,255,255,0) 100%); + //background: linear-gradient(to bottom,#fff 0,rgba(255,255,255,.9) 60%,rgba(255,255,255,0) 100%); z-index: 2; - padding: .53333rem 6PX .66667rem; + //padding: .53333rem 6PX .66667rem; + padding: 12px 6px 6px 6px; width: 100%; } .emoji-category { - padding-top: 1px; + //padding-top: 1px; position: relative; .category-items { @@ -109,7 +115,7 @@ } &:first-child { - padding-top: 5px; + //padding-top: 5px; } /* &::after { @@ -188,35 +194,42 @@ .emoji-padding { .menu-horizontal { - border-bottom: 1px solid $lightgrey; + //border-bottom: 1px solid $lightgrey; } } .emoji-padding, .stickers-padding { .menu-horizontal { - height: 47px; + height: 48px; border-bottom: none; padding: 2px 2px 2px 2px; width: 100%; + box-shadow: 0px 1px 5px -1px rgba(0, 0, 0, 0.21); + z-index: 4; + + li { + margin: 0; + } } } #content-stickers { .scrollable { - padding: 15px 5px 0; + padding: 0px 5px 0; } } .menu-horizontal { width: 100%; - height: 50px; + height: 48px; + box-shadow: 0px -2px 5px -1px rgba(0, 0, 0, 0.21); li { - font-size: 1.65rem; - padding: 0; - width: 50px; - height: 50px; - line-height: 50px; + font-size: 1.5rem; + margin: 0 12px; + width: 48px; + height: 48px; + line-height: 48px; display: flex; align-items: center; flex: 0 0 auto; @@ -224,11 +237,30 @@ } .stickers-padding { + &.active { + .scrollable { + padding: 0; + box-shadow: 0px 1px 5px -1px rgba(0, 0, 0, 0.21); + } + + .menu-horizontal { + box-shadow: none; + + & li { + height: 48px; + width: 48px; + padding: 0; + margin-right: 1px; + margin-left: 1px; + } + } + } + .menu-wrapper { padding: 0; - height: 50px; + height: 48px; max-width: 100%; - border-top: 1px solid $lightgrey; + //border-top: 1px solid $lightgrey; } li { @@ -242,7 +274,8 @@ } > canvas, > img { - padding: .75rem; + //padding: .75rem; + padding: 8px; max-width: 100%; max-height: 100%; width: 100%; diff --git a/src/scss/partials/_leftSidebar.scss b/src/scss/partials/_leftSidebar.scss index 83a9c670..03e7f4ed 100644 --- a/src/scss/partials/_leftSidebar.scss +++ b/src/scss/partials/_leftSidebar.scss @@ -6,6 +6,24 @@ max-height: 100%; overflow: hidden; position: relative; + + .folders-tabs-scrollable { + position: sticky; + top: 0; + z-index: 1; + + .scrollable { + position: relative; + } + } + + .menu-horizontal { + background: #fff; + + ul { + justify-content: space-between + } + } } .sidebar-slider { @@ -46,6 +64,12 @@ } } } + + .btn-menu { + @include respond-to(handhelds) { + margin-top: -4px; + } + } } .sidebar-tools-button .btn-menu { @@ -64,6 +88,11 @@ justify-self: flex-end; position: absolute; right: 16px; + + @include respond-to(handhelds) { + font-size: 14px; + font-weight: 600; + } } .archived-count:empty { @@ -219,6 +248,13 @@ border-radius: 0.625rem; margin: 0px 0.5rem 0px 0.4375rem; + @include respond-to(handhelds) { + padding: 0.75rem 0.625rem; + height: 48px; + margin: 0 0 2px 0; + border-radius: 0; + } + html.no-touch &:hover { background: rgba(112, 117, 121, 0.08); cursor: pointer; @@ -240,6 +276,10 @@ &-buttons { margin-top: .9375rem; width: 100%; + + @include respond-to(handhelds) { + margin-top: 0.6875rem; + } } } } @@ -266,4 +306,191 @@ .scroll-wrapper { width: 100%; } +} + +.chat-folders-container, .edit-folder-container { + user-select: none; + + .sticker-container { + width: 86px; + height: 86px; + margin: 1px auto 32px; + flex: 0 0 auto; + } + + .caption { + text-align: center; + color: #707579; + font-size: 14px; + line-height: 1.3; + } + + .sidebar-left-h2 { + color: #707579; + font-size: 15px; + padding-top: 7px; + padding-bottom: 15px; + font-weight: 500; + } +} + +.chat-folders-container { + .btn-primary { + width: 160px; + height: 40px; + align-items: center; + margin: 15px auto 24px; + border-radius: 30px; + padding: 0 12px; + display: flex; + } + + .tgico-add:before { + content: "\e903"; + font-size: 24px; + margin-right: 6px; + } + + .folders-container { + padding: 0 16px; + } + + .category { + padding: 7px 0 11px 0; + display: flex; + padding-bottom: 11px; + justify-content: space-between; + cursor: pointer; + position: relative; + + p:last-child { + color: #707579; + font-size: 14px; + line-height: 1; + } + + .btn-primary { + height: 30px; + font-size: 15px; + width: 52px; + transition: width 0.2s; + margin: 5px 0 0 0; + } + } +} + +.edit-folder-container { + .caption { + margin-bottom: 18px; + } + + @include respond-to(handhelds) { + .input-wrapper { + width: 328px; + } + + .input-field input { + height: 50px; + } + } + + .sidebar-left-h2 { + padding: 21px 0 8px 16px; + } + + .input-wrapper { + margin-bottom: 10px; + } +} + +.folder-list { + li { + padding-bottom: 2px; + + .rp { + padding: 8px 3px !important; + height: 48px !important; + } + } + + avatar-element { + height: 32px; + width: 32px; + } + + .user-caption { + padding: 6px 28px; + } + + p span { + font-weight: normal; + } +} + +.folder-categories { + width: 100%; +} + +.folder-category-button { + display: flex; + font-size: 1.5rem; + padding: 13px 16px 10px 16px; + + p { + user-select: none; + margin-left: 32px; + font-size: 16px; + } + + &.blue, &.blue:before { + color: #50a2e9; + } + + &:first-child { + cursor: pointer; + } + + &:before { + color: #797d82; + } +} + +.sidebar-header .tgico-check1 { + color: #50a2e9; +} + +.included-chats-container { + .sidebar-left-h2 { + color: #707579; + font-size: 15px; + font-weight: 500; + padding: 6px 0 8px 16px; + } + + ul { + li > .rp { + margin: 0 !important; + padding: 7px 12px !important; + height: 62px; + } + + .dialog-avatar { + width: 46px; + height: 46px; + } + + span.user-title { + font-weight: 500; + } + + .user-caption { + padding: 0px 0px 0 14px; + margin-top: -2px; + } + + span.user-last-message { + font-size: 15px; + margin-top: -1px; + } + } } \ No newline at end of file diff --git a/src/scss/partials/_rightSidebar.scss b/src/scss/partials/_rightSidebar.scss index 325b5838..4ddc1e51 100644 --- a/src/scss/partials/_rightSidebar.scss +++ b/src/scss/partials/_rightSidebar.scss @@ -120,6 +120,10 @@ margin-bottom: 2px; margin-top: 1px; + @include respond-to(handhelds) { + margin-top: 3px; + } + &.online { color: $color-blue; } @@ -639,7 +643,7 @@ height: 48px; @include respond-to(not-handhelds) { - padding: 8px 13px; + padding: 8px 12px; } } } diff --git a/src/scss/partials/_selector.scss b/src/scss/partials/_selector.scss index a2a38bd5..da088f15 100644 --- a/src/scss/partials/_selector.scss +++ b/src/scss/partials/_selector.scss @@ -134,6 +134,10 @@ margin: 0px 9px 0px 8px; padding: 12px 8.5px; + @include respond-to(handhelds) { + margin: 0; + } + @media not all and (min-resolution:.001dpcm) { @supports (-webkit-appearance:none) { margin-right: 4px; diff --git a/src/scss/partials/_sidebar.scss b/src/scss/partials/_sidebar.scss index 1b5369b3..0a335ce8 100644 --- a/src/scss/partials/_sidebar.scss +++ b/src/scss/partials/_sidebar.scss @@ -25,8 +25,12 @@ &__title { flex: 1; font-weight: 500; - padding-left: 23px; + padding-left: 22px; font-size: 20px; + + @include respond-to(handhelds) { + padding-left: 24px; + } } .btn-icon + .btn-icon { diff --git a/src/scss/partials/_slider.scss b/src/scss/partials/_slider.scss index 20e5cf51..757dfbea 100644 --- a/src/scss/partials/_slider.scss +++ b/src/scss/partials/_slider.scss @@ -12,6 +12,7 @@ align-items: center; position: relative; z-index: 2; + flex-direction: row; } li { @@ -24,6 +25,7 @@ // font-size: 1rem; font-size: 14px; font-weight: 500; + position: relative; &.active { color: $color-blue; diff --git a/src/scss/partials/popups/_createPoll.scss b/src/scss/partials/popups/_createPoll.scss index 4368e789..a7ca3726 100644 --- a/src/scss/partials/popups/_createPoll.scss +++ b/src/scss/partials/popups/_createPoll.scss @@ -4,10 +4,12 @@ #{$parent} { &-container { max-height: 468px; + padding: 0; } } .input-field { + margin-top: 25px; .btn-icon { position: absolute; right: .5rem; @@ -30,4 +32,18 @@ } } */ } + + .caption { + color: #707579; + font-weight: 500; + padding: 16px 24px 0; + } + + .poll-create-questions { + padding: 0px 20px 32.5px; + } + + hr { + border-bottom: 1px solid #edeff1; + } } \ No newline at end of file diff --git a/src/scss/partials/popups/_mediaAttacher.scss b/src/scss/partials/popups/_mediaAttacher.scss index 15e08755..533e2028 100644 --- a/src/scss/partials/popups/_mediaAttacher.scss +++ b/src/scss/partials/popups/_mediaAttacher.scss @@ -53,6 +53,7 @@ justify-content: space-between; align-items: center; margin-bottom: 9px; + padding: 12px 20px 15px; .btn-primary { width: 79px; @@ -125,14 +126,14 @@ .input-field { width: 100%; - margin-top: 1rem; + margin-top: 25px; &::placeholder { color: #a2acb4; } input { - height: 54px; + //height: 54px; font-size: 1rem; padding: 0 15px; border-radius: $border-radius-medium; @@ -147,4 +148,8 @@ opacity: 0; } } +} + +.popup-create-poll.popup-new-media .btn-primary { + width: 94px; } \ No newline at end of file diff --git a/src/scss/style.scss b/src/scss/style.scss index 1917e1fa..16ae3dfc 100644 --- a/src/scss/style.scss +++ b/src/scss/style.scss @@ -347,6 +347,11 @@ input, textarea { &.danger:before { color: $color-error; } + + @include respond-to(handhelds) { + padding: 0 30px 0 16px; + height: 50px; + } } } @@ -475,6 +480,7 @@ avatar-element { .rp { position: relative; + user-select: none; } /** @@ -853,6 +859,7 @@ avatar-element { padding: 0 5px; left: .75rem; font-size: 0.75rem!important; + color: #666; opacity: 1; } } @@ -1386,6 +1393,26 @@ img.emoji { transition: opacity .2s ease; } +.show-more { + padding-top: 13px; + padding-bottom: 13px; + cursor: pointer; + user-select: none; + position: relative; + + @include respond-to(not-handhelds) { + padding-left: 8px; + } + + .tgico-down { + float: left; + padding-right: 32px; + padding-left: 16px; + font-size: 24px; + color: #707579; + } +} + /* .fade-in-end { opacity: 1; transition: opacity .2s ease; diff --git a/webpack.common.js b/webpack.common.js index 9fb57615..83192624 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -5,7 +5,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const postcssPresetEnv = require('postcss-preset-env'); const fs = require('fs'); -const allowedIPs = ['195.66.140.39', '192.168.31.144', '127.0.0.1', '192.168.31.1', '192.168.31.192']; +const allowedIPs = ['195.66.140.39', '192.168.31.144', '127.0.0.1', '192.168.31.1', '192.168.31.192', '176.100.18.181']; const devMode = process.env.NODE_ENV !== 'production'; const useLocal = false;