tweb/public/2307c9269e9ada81cfd9.worker.js
Eduard Kuzmenko c43aa101ce Fix scrolling to last bubble in outer chats
Avoid opening the same profile
Show write menu on touch devices
2021-04-16 17:30:42 +04:00

1 line
346 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(e){this.webpackChunk=function(t,n){for(var s in n)e[s]=n[s];for(;t.length;)a[t.pop()]=1};var t={},a={0:1};function n(a){if(t[a])return t[a].exports;var s=t[a]={i:a,l:!1,exports:{}};return e[a].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.e=function(e){var t=[];return t.push(Promise.resolve().then((function(){a[e]||importScripts(n.p+""+e+".2307c9269e9ada81cfd9.worker.js")}))),Promise.all(t)},n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(a,s,function(t){return e[t]}.bind(null,s));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=12)}([function(e,t,a){"use strict";function n(e){e=e||[];let t=[];for(let a=0;a<e.length;++a)t.push((e[a]<16?"0":"")+(e[a]||0).toString(16));return t.join("")}function s(e){const t=e.length;let a=0,n=[];t%2&&(n.push(parseInt(e.charAt(0),16)),++a);for(let s=a;s<t;s+=2)n.push(parseInt(e.substr(s,2),16));return n}function i(e,t){const a=e.length;if(a!==t.length)return!1;for(let n=0;n<a;++n)if(e[n]!==t[n])return!1;return!0}function r(e,t){const a=e.length,n=[];for(let s=0;s<a;++s)n[s]=e[s]^t[s];return n}function p(e){return e instanceof ArrayBuffer?e:void 0!==e.buffer&&e.buffer.byteLength===e.length*e.BYTES_PER_ELEMENT?e.buffer:new Uint8Array(e).buffer}function o(e){return void 0!==e.buffer?e:new Uint8Array(e)}function m(e){const t=e.byteLength,a=new Uint8Array(e),n=[];for(let e=0;e<t;++e)n[e]=a[e];return n}function d(e,t){const a=e.byteLength||e.length,n=t.byteLength||t.length,s=new Uint8Array(a+n);return s.set(e instanceof ArrayBuffer?new Uint8Array(e):e,0),s.set(t instanceof ArrayBuffer?new Uint8Array(t):t,a),s.buffer}function y(...e){let t=0;e.forEach(e=>t+=e.byteLength||e.length);const a=new Uint8Array(t);let n=0;return e.forEach(e=>{a.set(e instanceof ArrayBuffer?new Uint8Array(e):e,n),n+=e.byteLength||e.length}),a}function c(e){const t=[];for(let a=0,n=4*e.length;a<n;++a)t.push(e[a>>>2]>>>24-a%4*8&255);return t}function l(e){let t;t=e instanceof ArrayBuffer?new Uint8Array(e):e;const a=[];for(let e=0,n=t.length;e<n;++e)a[e>>>2]|=t[e]<<24-e%4*8;return new Uint32Array(a)}a.d(t,"g",(function(){return n})),a.d(t,"e",(function(){return s})),a.d(t,"c",(function(){return i})),a.d(t,"i",(function(){return r})),a.d(t,"j",(function(){return p})),a.d(t,"k",(function(){return o})),a.d(t,"d",(function(){return m})),a.d(t,"a",(function(){return d})),a.d(t,"b",(function(){return y})),a.d(t,"f",(function(){return c})),a.d(t,"h",(function(){return l}))},function(e,t,a){"use strict";a.d(t,"f",(function(){return s})),a.d(t,"u",(function(){return m})),a.d(t,"e",(function(){return I})),a.d(t,"r",(function(){return C})),a.d(t,"s",(function(){return A})),a.d(t,"w",(function(){return M})),a.d(t,"v",(function(){return E})),a.d(t,"z",(function(){return V})),a.d(t,"a",(function(){return U})),a.d(t,"l",(function(){return R})),a.d(t,"t",(function(){return B})),a.d(t,"n",(function(){return x})),a.d(t,"j",(function(){return O})),a.d(t,"o",(function(){return L})),a.d(t,"y",(function(){return j})),a.d(t,"m",(function(){return N})),a.d(t,"p",(function(){return G})),a.d(t,"d",(function(){return z})),a.d(t,"c",(function(){return K})),a.d(t,"g",(function(){return H})),a.d(t,"k",(function(){return W})),a.d(t,"i",(function(){return Z})),a.d(t,"h",(function(){return J})),a.d(t,"x",(function(){return X})),a.d(t,"q",(function(){return $})),a.d(t,"A",(function(){return ie})),a.d(t,"b",(function(){return re}));var n,s=0,i=0,r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_=!@#$%^&*()[]{}|;:,.<>/?`~ \\'\"+-";for(s=0;1<<s+1>1<<s;s++);n=(i=(1<<(s>>=1))-1)+1;var p,o,m=L(1,1,1),d=(L(0,1,1),new Array(0)),y=d,c=d,l=d,g=d,u=d,h=d,f=d,_=d,b=d,v=d,P=d,w=d,S=d;function I(e){var t,a,n;for(t=e.length-1;0==e[t]&&t>0;t--);for(a=0,n=e[t];n;n>>=1,a++);return a+=s*t}function k(e,t){var a=L(0,(e.length>t?e.length:t)*s,0);return Z(a,e),a}function C(e,t){var a=W(e);return oe(a,t),ye(a,1)}function A(e,t){var a=k(e,e.length+t.length);return pe(a,t),ye(a,1)}function M(e,t,a){var n=k(e,a.length);return ce(n,ye(t,2),ye(a,2)),ye(n,1)}function E(e,t){let a=W(e);t-=1;for(let n=0;n<t;++n)a=A(a,e);return ye(a,1)}function V(e,t){var a=k(e,e.length>t.length?e.length+1:t.length+1);return ie(a,t),ye(a,1)}function U(e,t){var a=k(e,e.length>t.length?e.length+1:t.length+1);return re(a,t),ye(a,1)}function D(e,t){for(var a=1,n=0;;){if(1===e)return a;if(0===e)return 0;if(n-=a*Math.floor(t/e),1===(t%=e))return n;if(0===t)return 0;a-=n*Math.floor(e/t),e%=t}}function R(e,t,a,n,s){var i=0,r=Math.max(e.length,t.length);for(b.length!=r&&(b=new Array(r),v=new Array(r),P=new Array(r),w=new Array(r),S=new Array(r));!(1&e[0]||1&t[0]);)Y(e),Y(t),i++;for(Z(b,e),Z(a,t),J(v,1),J(P,0),J(w,0),J(S,1);;){for(;!(1&b[0]);)Y(b),1&v[0]||1&P[0]?(re(v,t),Y(v),ie(P,e),Y(P)):(Y(v),Y(P));for(;!(1&a[0]);)Y(a),1&w[0]||1&S[0]?(re(w,t),Y(w),ie(S,e),Y(S)):(Y(w),Y(S));if(x(a,b)?(ie(a,b),ie(w,v),ie(S,P)):(ie(b,a),ie(v,w),ie(P,S)),N(b,0)){for(;B(w);)re(w,t),ie(S,e);return ee(S,-1),Z(n,w),Z(s,S),void $(a,i)}}}function B(e){return e[e.length-1]>>s-1&1}function T(e,t,a){var n,s=e.length,i=t.length;for(p=s+a<i?s+a:i,n=i-1-a;n<s&&n>=0;n++)if(e[n]>0)return 1;for(n=s-1+a;n<i;n++)if(t[n]>0)return 0;for(n=p-1;n>=a;n--){if(e[n-a]>t[n])return 1;if(e[n-a]<t[n])return 0}return 0}function x(e,t){var a,n=e.length<t.length?e.length:t.length;for(a=e.length;a<t.length;a++)if(t[a])return 0;for(a=t.length;a<e.length;a++)if(e[a])return 1;for(a=n-1;a>=0;a--){if(e[a]>t[a])return 1;if(e[a]<t[a])return 0}return 0}function O(e,t,a,r){var p,o,m,d,y,c,l,g;for(Z(r,e),o=t.length;0===t[o-1];o--);for(g=t[o-1],l=0;g;l++)g>>=1;for($(t,l=s-l),$(r,l),p=r.length;0===r[p-1]&&p>o;p--);for(J(a,0);!T(t,r,p-o);)se(r,t,p-o),a[p-o]++;for(m=p-1;m>=o;m--){for(r[m]==t[o-1]?a[m-o]=i:a[m-o]=Math.floor((r[m]*n+r[m-1])/t[o-1]);c=(y=(o>1?t[o-2]:0)*a[m-o])>>s,y&=i,c=(d=c+a[m-o]*t[o-1])>>s,d&=i,c==r[m]?d==r[m-1]?y>(m>1?r[m-2]:0):d>r[m-1]:c>r[m];)a[m-o]--;ae(r,t,-a[m-o],m-o),B(r)&&(ne(r,t,m-o),a[m-o]--)}X(t,l),X(r,l)}function F(e,t){var a,s=0;for(a=e.length-1;a>=0;a--)s=(s*n+e[a])%t;return s}function L(e,t,a){var n;n=a>(n=Math.ceil(t/s)+1)?a:n;var i=new Array(n);return J(i,e),i}function j(e,t,a){var n,s,i,p,o,m=e.length;if(-1===t){for(i=new Array(0);;){for(p=new Array(i.length+1),s=0;s<i.length;s++)p[s+1]=i[s];if(p[0]=parseInt(e,10),i=p,(n=e.indexOf(",",0))<1)break;if(0==(e=e.substring(n+1)).length)break}return i.length<a?(Z(p=new Array(a),i),p):i}for(i=L(0,t*m,0),s=0;s<m&&(n=r.indexOf(e.substring(s,s+1),0),t<=36&&n>=36&&(n-=26),!(n>=t||n<0));s++)ee(i,t),Q(i,n);for(m=i.length;m>0&&!i[m-1];m--);for(m=a>m+1?a:m+1,p=new Array(m),o=m<i.length?m:i.length,s=0;s<o;s++)p[s]=i[s];for(;s<m;s++)p[s]=0;return p}function N(e,t){var a;if(e[0]!=t)return 0;for(a=1;a<e.length;a++)if(e[a])return 0;return 1}function q(e,t){var a,n=e.length<t.length?e.length:t.length;for(a=0;a<n;a++)if(e[a]!==t[a])return 0;if(e.length>t.length){for(;a<e.length;a++)if(e[a])return 0}else for(;a<t.length;a++)if(t[a])return 0;return 1}function G(e){var t;for(t=0;t<e.length;t++)if(e[t])return 0;return 1}function z(e,t){var a,n,s="";if(h.length!==e.length?h=W(e):Z(h,e),-1===t){for(a=e.length-1;a>0;a--)s+=e[a]+",";s+=e[0]}else for(;!G(h);)n=te(h,t),s=r.substring(n,n+1)+s;return 0===s.length&&(s="0"),s}function K(e,t=!0){h.length!==e.length?h=W(e):Z(h,e);const a=[];for(;!G(h);)d=te(h,256),a.push(d);return t&&a.reverse(),a}function H(e,t){return x(e,t)?1:q(e,t)?0:-1}function W(e){return Z(o=Array(e.length),e),o}function Z(e,t){var a,n=e.length<t.length?e.length:t.length;for(a=0;a<n;a++)e[a]=t[a];for(a=n;a<e.length;a++)e[a]=0}function J(e,t){var a,n,r=e.length;for(n=t,a=0;a<r;a++)e[a]=n&i,n>>=s}function Q(e,t){var a,r,p,o;for(e[0]+=t,r=e.length,p=0,a=0;a<r;a++)if(o=0,(p+=e[a])<0&&(p+=(o=-(p>>s))*n),e[a]=p&i,!(p=(p>>s)-o))return}function X(e,t){var a,n=Math.floor(t/s);if(n){for(a=0;a<e.length-n;a++)e[a]=e[a+n];for(;a<e.length;a++)e[a]=0;t%=s}for(a=0;a<e.length-1;a++)e[a]=i&(e[a+1]<<s-t|e[a]>>t);e[a]>>=t}function Y(e){var t;for(t=0;t<e.length-1;t++)e[t]=i&(e[t+1]<<s-1|e[t]>>1);e[t]=e[t]>>1|e[t]&n>>1}function $(e,t){var a,n=Math.floor(t/s);if(n){for(a=e.length;a>=n;a--)e[a]=e[a-n];for(;a>=0;a--)e[a]=0;t%=s}if(t){for(a=e.length-1;a>0;a--)e[a]=i&(e[a]<<t|e[a-1]>>s-t);e[a]=i&e[a]<<t}}function ee(e,t){var a,r,p,o;if(t)for(r=e.length,p=0,a=0;a<r;a++)o=0,(p+=e[a]*t)<0&&(p+=(o=-(p>>s))*n),e[a]=p&i,p=(p>>s)-o}function te(e,t){var a,s,i=0;for(a=e.length-1;a>=0;a--)s=i*n+e[a],e[a]=Math.floor(s/t),i=s%t;return i}function ae(e,t,a,n){var r,p,o,m;for(o=e.length<n+t.length?e.length:n+t.length,m=e.length,p=0,r=n;r<o;r++)p+=e[r]+a*t[r-n],e[r]=p&i,p>>=s;for(r=o;p&&r<m;r++)p+=e[r],e[r]=p&i,p>>=s}function ne(e,t,a){var n,r,p,o;for(p=e.length<a+t.length?e.length:a+t.length,o=e.length,r=0,n=a;n<p;n++)r+=e[n]+t[n-a],e[n]=r&i,r>>=s;for(n=p;r&&n<o;n++)r+=e[n],e[n]=r&i,r>>=s}function se(e,t,a){var n,r,p,o;for(p=e.length<a+t.length?e.length:a+t.length,o=e.length,r=0,n=a;n<p;n++)r+=e[n]-t[n-a],e[n]=r&i,r>>=s;for(n=p;r&&n<o;n++)r+=e[n],e[n]=r&i,r>>=s}function ie(e,t){var a,n,r;for(r=e.length<t.length?e.length:t.length,n=0,a=0;a<r;a++)n+=e[a]-t[a],e[a]=n&i,n>>=s;for(a=r;n&&a<e.length;a++)n+=e[a],e[a]=n&i,n>>=s}function re(e,t){var a,n,r;for(r=e.length<t.length?e.length:t.length,n=0,a=0;a<r;a++)n+=e[a]+t[a],e[a]=n&i,n>>=s;for(a=r;n&&a<e.length;a++)n+=e[a],e[a]=n&i,n>>=s}function pe(e,t){var a;for(y.length!=2*e.length&&(y=new Array(2*e.length)),J(y,0),a=0;a<t.length;a++)t[a]&&ae(y,e,t[a],a);Z(e,y)}function oe(e,t){g.length!==e.length?g=W(e):Z(g,e),u.length!==e.length&&(u=W(e)),O(g,t,u,e)}function me(e,t,a){var n;for(c.length!=2*e.length&&(c=new Array(2*e.length)),J(c,0),n=0;n<t.length;n++)t[n]&&ae(c,e,t[n],n);oe(c,a),Z(e,c)}function de(e,t){var a,n,r,p,o;for(p=e.length;p>0&&!e[p-1];p--);for(o=p>t.length?2*p:2*t.length,c.length!=o&&(c=new Array(o)),J(c,0),a=0;a<p;a++){for(r=c[2*a]+e[a]*e[a],c[2*a]=r&i,r>>=s,n=a+1;n<p;n++)r=c[a+n]+2*e[a]*e[n]+r,c[a+n]=r&i,r>>=s;c[a+p]=r}oe(c,t),Z(e,c)}function ye(e,t){var a,n;for(a=e.length;a>0&&!e[a-1];a--);return Z(n=new Array(a+t),e),n}function ce(e,t,a){var i,r,p,o;if(f.length!=a.length&&(f=W(a)),0!=(1&a[0])){for(J(f,0),p=a.length;p>0&&!a[p-1];p--);for(o=n-D(F(a,n),n),f[p]=1,me(e,f,a),l.length!=e.length?l=W(e):Z(l,e),i=t.length-1;i>0&!t[i];i--);if(0!=t[i]){for(r=1<<s-1;r&&!(t[i]&r);r>>=1);for(;;){if(!(r>>=1)){if(--i<0)return void le(e,m,a,o);r=1<<s-1}le(e,e,a,o),r&t[i]&&le(e,l,a,o)}}else J(e,1)}else for(Z(f,e),J(e,1);!N(t,0);)1&t[0]&&me(e,f,a),te(t,2),de(f,a)}function le(e,t,a,n){var r,p,o,m,d,y,c=a.length,l=t.length;for(_.length!=c&&(_=new Array(c)),J(_,0);c>0&&0==a[c-1];c--);for(;l>0&&0==t[l-1];l--);for(y=_.length-1,r=0;r<c;r++){for(o=(d=_[0]+e[r]*t[0])+(m=(d&i)*n&i)*a[0]>>s,d=e[r],p=1;p<l-4;)o+=_[p]+m*a[p]+d*t[p],_[p-1]=o&i,o>>=s,p++,o+=_[p]+m*a[p]+d*t[p],_[p-1]=o&i,o>>=s,p++,o+=_[p]+m*a[p]+d*t[p],_[p-1]=o&i,o>>=s,p++,o+=_[p]+m*a[p]+d*t[p],_[p-1]=o&i,o>>=s,p++,o+=_[p]+m*a[p]+d*t[p],_[p-1]=o&i,o>>=s,p++;for(;p<l;)o+=_[p]+m*a[p]+d*t[p],_[p-1]=o&i,o>>=s,p++;for(;p<c-4;)o+=_[p]+m*a[p],_[p-1]=o&i,o>>=s,p++,o+=_[p]+m*a[p],_[p-1]=o&i,o>>=s,p++,o+=_[p]+m*a[p],_[p-1]=o&i,o>>=s,p++,o+=_[p]+m*a[p],_[p-1]=o&i,o>>=s,p++,o+=_[p]+m*a[p],_[p-1]=o&i,o>>=s,p++;for(;p<c;)o+=_[p]+m*a[p],_[p-1]=o&i,o>>=s,p++;for(;p<y;)o+=_[p],_[p-1]=o&i,o>>=s,p++;_[p-1]=o&i}x(a,_)||ie(_,a),Z(e,_)}},function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));const n=a(5).a.debug,s="undefined"!=typeof window?window:self,i=n?s:{};t.b=n,n||(s.sandpitTurtle=()=>{for(let e in i)s[e]=i[e]})},function(e,t,a){"use strict";var n=a(2),s=a(0);const i=new class extends class{sha1Hash(e){return this.performTaskWorker("sha1-hash",e)}sha256Hash(e){return this.performTaskWorker("sha256-hash",e)}pbkdf2(e,t,a){return this.performTaskWorker("pbkdf2",e,t,a)}aesEncrypt(e,t,a){return this.performTaskWorker("aes-encrypt",Object(s.j)(e),Object(s.j)(t),Object(s.j)(a))}aesDecrypt(e,t,a){return this.performTaskWorker("aes-decrypt",e,t,a).then(e=>Object(s.j)(e))}rsaEncrypt(e,t){return this.performTaskWorker("rsa-encrypt",e,t)}factorize(e){return this.performTaskWorker("factorize",[...e])}modPow(e,t,a){return this.performTaskWorker("mod-pow",e,t,a)}gzipUncompress(e,t){return this.performTaskWorker("gzipUncompress",e,t)}computeSRP(e,t,a=!1){return this.performTaskWorker("computeSRP",e,t,a)}}{constructor(){super(),this.webWorker=!1,this.taskId=0,this.awaiting={},this.pending=[],this.debug=!1,this.utils={},console.log("CW constructor"),Promise.all([Promise.resolve().then(a.bind(null,9)).then(e=>{Object.assign(this.utils,{"sha1-hash":e.sha1HashSync,"sha256-hash":e.sha256HashSync,pbkdf2:e.hash_pbkdf2,"aes-encrypt":e.aesEncryptSync,"aes-decrypt":e.aesDecryptSync,"rsa-encrypt":e.rsaEncrypt,factorize:e.pqPrimeFactorization,"mod-pow":e.bytesModPow,gzipUncompress:e.gzipUncompress})}),a.e(1).then(a.bind(null,13)).then(e=>{this.utils.computeSRP=e.computeSRP})])}performTaskWorker(e,...t){return this.debug&&console.log("CW start",e,t),Promise.resolve(this.utils[e](...t))}};n.a.CryptoWorker=i;t.a=i},function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return p}));var n,s=a(2);!function(e){e[e.log=1]="log",e[e.warn=2]="warn",e[e.error=4]="error",e[e.debug=8]="debug"}(n||(n={}));const i=Date.now();function r(){return"["+((Date.now()-i)/1e3).toFixed(3)+"]"}function p(e,t=n.log|n.warn|n.error){function a(...a){return t&n.log&&console.log(r(),e,...a)}return s.b||(t=n.error),a.warn=function(...a){return t&n.warn&&console.warn(r(),e,...a)},a.info=function(...a){return t&n.log&&console.info(r(),e,...a)},a.error=function(...a){return t&n.error&&console.error(r(),e,...a)},a.trace=function(...a){return t&n.log&&console.trace(r(),e,...a)},a.debug=function(...a){return t&n.debug&&console.debug(r(),e,...a)},a.setPrefix=function(t){e="["+t+"]:"},a.setPrefix(e),a}},function(e,t,a){"use strict";const n={test:location.search.indexOf("test=1")>0,debug:location.search.indexOf("debug=1")>0,http:!1,ssl:!0,multipleConnections:!0,asServiceWorker:!1};t.a=n},function(e,t,a){"use strict";function n(e){return Math.floor(Math.random()*e)}a.d(t,"a",(function(){return n}))},function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"c",(function(){return p})),a.d(t,"d",(function(){return o})),a.d(t,"a",(function(){return m}));var n=a(0),s=a(1),i=a(6);function r(e){return"object"==typeof e&&null!==e}function p(e,t){const a=Object(s.y)(e.toString(16),16,32);Object(s.q)(a,32),Object(s.b)(a,Object(s.y)(t.toString(16),16,32));return Object(s.d)(a,10)}function o(e){return e.map(e=>Object(s.y)(e,10)).sort((e,t)=>Object(s.g)(e,t)).map(e=>Object(s.d)(e,10))}function m(e,t=16,a,s=!1,r=!1){let p=t-(e.byteLength||e.length)%t;if(p>0&&(p<t||s)){let t=new Array(p);if(a)for(let e=0;e<p;e++)t[e]=0;else for(let e=0;e<t.length;++e)t[e]=Object(i.a)(255);e=e instanceof ArrayBuffer?(r?Object(n.b)(t,e):Object(n.b)(e,t)).buffer:e instanceof Uint8Array?r?Object(n.b)(t,e):Object(n.b)(e,t):r?t.concat(e):e.concat(t)}return e}},function(e,t,a){"use strict";a.d(t,"a",(function(){return h}));var n=new Uint8Array(256),s=new Uint8Array(256),i=new Uint32Array(256),r=new Uint32Array(256),p=new Uint32Array(256),o=new Uint32Array(256),m=new Uint32Array(256),d=new Uint32Array(256),y=new Uint32Array(256),c=new Uint32Array(256);function l(e){if(e instanceof Uint32Array)return e;if("string"==typeof e){if(e.length%4!=0)for(var t=e.length%4;t<=4;t++)e+="\0x00";var a=new Uint32Array(e.length/4);for(t=0;t<e.length;t+=4)a[t/4]=(s=t,(n=e).charCodeAt(s)<<24^n.charCodeAt(s+1)<<16^n.charCodeAt(s+2)<<8^n.charCodeAt(s+3));return a}var n,s;if(e instanceof Uint8Array){for(a=new Uint32Array(e.length/4),t=0;t<e.length;t+=4)a[t/4]=e[t]<<24^e[t+1]<<16^e[t+2]<<8^e[t+3];return a}throw new Error("Unable to create 32-bit words")}function g(e,t,a){void 0===a&&(a=e);for(var n=0;n<e.length;n++)a[n]=e[n]^t[n]}!function(){for(var e,t,a,l,g,u=new Uint8Array(256),h=new Uint8Array(256),f=0,_=0,b=0;b<256;b++)u[b]=b<<1^283*(b>>7),h[u[b]^b]=b;for(;!n[f];f^=e||1)a=(a=_^_<<1^_<<2^_<<3^_<<4)>>8^255&a^99,n[f]=a,s[a]=f,g=16843009*u[t=u[e=u[f]]]^65537*t^257*e^16843008*f,l=257*u[a]^16843008*a,i[f]=l=l<<24^l>>>8,r[f]=l=l<<24^l>>>8,p[f]=l=l<<24^l>>>8,o[f]=l=l<<24^l>>>8,m[a]=g=g<<24^g>>>8,d[a]=g=g<<24^g>>>8,y[a]=g=g<<24^g>>>8,c[a]=g=g<<24^g>>>8,_=h[_]||1}();var u=function(){function e(e){var t=l(e);if(4!==t.length&&6!==t.length&&8!==t.length)throw new Error("Invalid key size");this.encKey=new Uint32Array(4*t.length+28),this.decKey=new Uint32Array(4*t.length+28),this.encKey.set(t);for(var a,s=1,i=t.length;i<4*t.length+28;i++)a=this.encKey[i-1],(i%t.length==0||8===t.length&&i%t.length==4)&&(a=n[a>>>24]<<24^n[a>>16&255]<<16^n[a>>8&255]<<8^n[255&a],i%t.length==0&&(a=a<<8^a>>>24^s<<24,s=s<<1^283*(s>>7))),this.encKey[i]=this.encKey[i-t.length]^a;for(var r=0;i;r++,i--)a=this.encKey[3&r?i:i-4],this.decKey[r]=i<=4||r<4?a:m[n[a>>>24]]^d[n[a>>16&255]]^y[n[a>>8&255]]^c[n[255&a]]}return e.prototype.encrypt=function(e){for(var t,a,s,m=l(e),d=new Uint32Array(4),y=m[0]^this.encKey[0],c=m[1]^this.encKey[1],g=m[2]^this.encKey[2],u=m[3]^this.encKey[3],h=this.encKey.length/4-2,f=4,_=0;_<h;_++)t=i[y>>>24]^r[c>>16&255]^p[g>>8&255]^o[255&u]^this.encKey[f],a=i[c>>>24]^r[g>>16&255]^p[u>>8&255]^o[255&y]^this.encKey[f+1],s=i[g>>>24]^r[u>>16&255]^p[y>>8&255]^o[255&c]^this.encKey[f+2],u=i[u>>>24]^r[y>>16&255]^p[c>>8&255]^o[255&g]^this.encKey[f+3],y=t,c=a,g=s,f+=4;for(_=0;_<4;_++)d[_]=n[y>>>24]<<24^n[c>>16&255]<<16^n[g>>8&255]<<8^n[255&u]^this.encKey[f++],t=y,y=c,c=g,g=u,u=t;return d},e.prototype.decrypt=function(e){for(var t,a,n,i=l(e),r=new Uint32Array(4),p=i[0]^this.decKey[0],o=i[3]^this.decKey[1],g=i[2]^this.decKey[2],u=i[1]^this.decKey[3],h=this.decKey.length/4-2,f=4,_=0;_<h;_++)t=m[p>>>24]^d[o>>16&255]^y[g>>8&255]^c[255&u]^this.decKey[f],a=m[o>>>24]^d[g>>16&255]^y[u>>8&255]^c[255&p]^this.decKey[f+1],n=m[g>>>24]^d[u>>16&255]^y[p>>8&255]^c[255&o]^this.decKey[f+2],u=m[u>>>24]^d[p>>16&255]^y[o>>8&255]^c[255&g]^this.decKey[f+3],p=t,o=a,g=n,f+=4;for(_=0;_<4;_++)r[3&-_]=s[p>>>24]<<24^s[o>>16&255]<<16^s[g>>8&255]<<8^s[255&u]^this.decKey[f++],t=p,p=o,o=g,g=u,u=t;return r},e}(),h=function(){function e(e,t,a){void 0===a&&(a=16),this.key=l(e),this.iv=l(t),this.cipher=new u(e),this.blockSize=a/4}return e.prototype.encrypt=function(e,t){for(var a=l(e),n=t||new Uint32Array(a.length),s=this.iv.subarray(this.blockSize,this.iv.length),i=this.iv.subarray(0,this.blockSize),r=new Uint32Array(this.blockSize),p=0;p<a.length;p+=this.blockSize){var o=a.subarray(p,p+this.blockSize);g(o,i,r);var m=this.cipher.encrypt(r);g(m,s),s=o,i=m;for(var d=p,y=0;d<a.length&&y<4;d++,y++)n[d]=m[y]}return n},e.prototype.decrypt=function(e,t){for(var a=l(e),n=t||new Uint32Array(a.length),s=this.iv.subarray(this.blockSize,this.iv.length),i=this.iv.subarray(0,this.blockSize),r=new Uint32Array(this.blockSize),p=0;p<n.length;p+=this.blockSize){var o=a.subarray(p,p+this.blockSize);g(o,s,r);var m=this.cipher.decrypt(r);g(m,i),i=o,s=m;for(var d=p,y=0;d<n.length&&y<4;d++,y++)n[d]=m[y]}return n},e}();!function(){function e(e,t,a){if(void 0===a&&(a=16),this.offset=0,this.key=l(e),this.counter=l(t),this.cipher=new u(e),this.blockSize=a/4,4!==this.counter.length)throw new Error("AES-CTR mode counter must be 16 bytes length")}e.prototype.encrypt=function(e,t){for(var a=l(e),n=t||new Uint32Array(a.length),s=this.offset,i=0;i<a.length;i+=this.blockSize){for(var r=this.cipher.encrypt(this.counter),p=i,o=s;p<a.length&&o<this.blockSize;p++,o++)n[p]=r[o]^a[p];a.length-i>=this.blockSize&&this.incrementCounter(),s&&(i-=s,s=0)}return this.offset=(this.offset+a.length%4)%4,n},e.prototype.decrypt=function(e,t){return this.encrypt(e,t)},e.prototype.incrementCounter=function(){for(var e=this.counter.length-1;e>=0&&!(++this.counter[e]<4294967295);e--);}}();t.b=u},function(e,t,a){"use strict";a.r(t),a.d(t,"longToBytes",(function(){return E})),a.d(t,"sha1HashSync",(function(){return V})),a.d(t,"sha256HashSync",(function(){return U})),a.d(t,"aesEncryptSync",(function(){return D})),a.d(t,"aesDecryptSync",(function(){return R})),a.d(t,"rsaEncrypt",(function(){return B})),a.d(t,"hash_pbkdf2",(function(){return T})),a.d(t,"pqPrimeFactorization",(function(){return x})),a.d(t,"pqPrimeLeemon",(function(){return O})),a.d(t,"bytesModPow",(function(){return F})),a.d(t,"gzipUncompress",(function(){return L}));var n=a(10),s=a.n(n);function i(e,t){return e.charCodeAt(t)<<24^e.charCodeAt(t+1)<<16^e.charCodeAt(t+2)<<8^e.charCodeAt(t+3)}function r(e){return String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e)}function p(e){return("00000000"+e.toString(16)).slice(-8)}function o(e){return e||(e=new Uint32Array(8)),e[0]=1779033703,e[1]=3144134277,e[2]=1013904242,e[3]=2773480762,e[4]=1359893119,e[5]=2600822924,e[6]=528734635,e[7]=1541459225,e}var m=new Uint32Array(64),d=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function y(e,t){var a=e[0],n=e[1],s=e[2],i=e[3],r=e[4],p=e[5],o=e[6],y=e[7];m.set(t);for(var c=16;c<64;c+=1){h=((h=m[c-2])>>>17|h<<15)^(h>>>19|h<<13)^h>>>10,l=((l=m[c-15])>>>7|l<<25)^(l>>>18|l<<14)^l>>>3,m[c]=h+m[c-7]+l+m[c-16]}for(c=0;c<64;c+=1){var l,g=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),u=a&n|s&(a^n),h=y+((r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7))+(o^r&(p^o))+d[c]+m[c];y=o,o=p,p=r,r=i+h|0,i=s,s=n,n=a,a=h+(l=g+u)|0}e[0]+=a,e[1]+=n,e[2]+=s,e[3]+=i,e[4]+=r,e[5]+=p,e[6]+=o,e[7]+=y}function c(e,t,a,n){for(void 0===n&&(n=0);e.length>=64;){for(var s=n;s<16;s++)t[s]=i(e,4*s);e=e.slice(64-4*n),n=0,y(a,t)}return e}function l(e,t,a,n){for(void 0===n&&(n=0);e.length>=t.length-n;)t.set(e.subarray(0,t.length-n),n),e=e.subarray(t.length-n),n=0,y(a,t);return e.length>0&&(t.set(e,n),n+=e.length),n}function g(e,t,a,n){void 0===n&&(n=0);for(var s=e/4294967296>>>0,i=e>>>0,r=n+1;r<t.length;r++)t[r]=0;if(n>=14){y(a,t);for(r=0;r<t.length;r++)t[r]=0}t[14]=s<<3|s>>>28,t[15]=i<<3,y(a,t)}function u(e,t,a,n,s){for(void 0===s&&(s=0);e.length>=4;s++)a[s]=i(e,0),e=e.slice(4);s>=16&&(y(n,a),s=0),a[s]=i(e+"€\0\0\0",0),g(t,a,n,s)}function h(e,t,a,n){void 0===n&&(n=0),t[n]=2147483648,g(e,t,a,n)}function f(e,t){switch(void 0===t&&(t="array"),t){case"hex":return p(e[0])+p(e[1])+p(e[2])+p(e[3])+p(e[4])+p(e[5])+p(e[6])+p(e[7]);case"binary":return r(e[0])+r(e[1])+r(e[2])+r(e[3])+r(e[4])+r(e[5])+r(e[6])+r(e[7]);default:return e}}var _=function(){function e(e){this.buffer=new Uint32Array(16),this.state=o(e),this.length=0,this.offset=0,this.tail=""}return e.prototype.update=function(e){if("string"==typeof e)this.length+=e.length,this.tail=c(this.tail+e,this.buffer,this.state,this.offset),this.offset=0;else{if(this.tail.length>0)throw new Error("Unable to update hash-stream with array");this.length+=4*e.length,this.offset=l(e,this.buffer,this.state,this.offset)}return this},e.prototype.digest=function(e){return void 0===e&&(e="array"),this.tail.length>0?u(this.tail,this.length,this.buffer,this.state,this.offset):h(this.length,this.buffer,this.state,this.offset),f(this.state,e)},e.prototype.clear=function(){this.state=o(),this.length=0,this.offset=0,this.tail=""},e}();function b(e,t){void 0===t&&(t="array");var a=new Uint32Array(16),n=o();return"string"==typeof e?u(c(e,a,n),e.length,a,n):h(4*e.length,a,n,l(e,a,n)),f(n,t)}b.stream=function(e){return new _(e)},b.blockLength=64,b.digestLength=32;var v=b,P=a(8),w=a(11),S=a.n(w),I=a(1),k=a(7),C=a(0),A=a(6),M=function(e,t,a,n){return new(a||(a=Promise))((function(s,i){function r(e){try{o(n.next(e))}catch(e){i(e)}}function p(e){try{o(n.throw(e))}catch(e){i(e)}}function o(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,p)}o((n=n.apply(e,t||[])).next())}))};function E(e){return Object(k.a)(Object(I.c)(Object(I.y)(e,10),!1),8,!0,!1,!1)}function V(e){const t=[];let a=s()(String.fromCharCode.apply(null,e instanceof Uint8Array?[...e]:[...new Uint8Array(e)]));for(let e=0;e<a.length;++e)t.push(a.charCodeAt(e));return new Uint8Array(t)}function U(e){let t="string"==typeof e?e:Object(C.h)(e),a=v(t);return Object(C.f)(a)}function D(e,t,a){e=Object(k.a)(e);const n=new P.a(Object(C.h)(t),Object(C.h)(a)).encrypt(Object(C.h)(e));return Object(C.f)(n)}function R(e,t,a){const n=new P.a(Object(C.h)(t),Object(C.h)(a)).decrypt(Object(C.h)(e));return Object(C.f)(n)}function B(e,t){t=Object(k.a)(t,255);var a=Object(I.y)(e.modulus,16),n=Object(I.y)(e.exponent,16),s=Object(I.y)(Object(C.g)(t),16),i=Object(I.w)(s,n,a);return Object(C.e)(Object(I.d)(i,16))}function T(e,t,a){return M(this,void 0,void 0,(function*(){let n="undefined"!=typeof window&&"crypto"in window?window.crypto.subtle:self.crypto.subtle,s=yield n.importKey("raw",e,{name:"PBKDF2"},!1,["deriveKey","deriveBits"]);return yield n.deriveKey({name:"PBKDF2",salt:t,iterations:a,hash:{name:"SHA-512"}},s,{name:"AES-CTR",length:256},!1,["encrypt","decrypt"]),n.deriveBits({name:"PBKDF2",salt:t,iterations:a,hash:{name:"SHA-512"}},s,512)}))}function x(e){let t;try{t=O(Object(I.y)(Object(C.g)(e),16,Math.ceil(64/I.f)+1))}catch(e){console.error("Pq leemon Exception",e)}return t}function O(e){var t,a,n,s,i,r,p=Math.ceil(64/I.f)+1,o=0,m=new Array(p),d=new Array(p),y=new Array(p),c=new Array(p),l=new Array(p),g=new Array(p),u=new Array(p);for(t=0;t<3;++t){for(a=17+(15&Object(A.a)(128)),Object(I.h)(g,Object(A.a)(1e9)+1),Object(I.i)(u,g),s=1<<t+18,n=1;n<s;++n){for(++o,Object(I.i)(m,g),Object(I.i)(d,g),Object(I.h)(y,a);!Object(I.p)(d);)1&d[0]&&(Object(I.b)(y,m),Object(I.n)(y,e)&&Object(I.A)(y,e)),Object(I.b)(m,m),Object(I.n)(m,e)&&Object(I.A)(m,e),Object(I.x)(d,1);if(Object(I.i)(g,y),Object(I.n)(g,u)?(Object(I.i)(l,g),Object(I.A)(l,u)):(Object(I.i)(l,u),Object(I.A)(l,g)),Object(I.l)(l,e,c,m,d),!Object(I.m)(c,1))break;0==(n&n-1)&&Object(I.i)(u,g)}if(Object(I.n)(c,I.u))break}return Object(I.j)(e,c,g,u),Object(I.n)(c,g)?(i=g,r=c):(i=c,r=g),[Object(I.c)(i),Object(I.c)(r),o]}function F(e,t,a){try{var n=Object(I.y)(Object(C.g)(e),16),s=Object(I.y)(Object(C.g)(t),16),i=Object(I.y)(Object(C.g)(a),16),r=Object(I.w)(n,s,i);return Object(C.e)(Object(I.d)(r,16))}catch(e){console.error("mod pow error",e)}}function L(e,t){return S.a.inflate(e,t?{to:"string"}:void 0)}},function(e,t,a){"use strict";function n(e){return String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(255&e)}Object.defineProperty(t,"__esModule",{value:!0});for(var s=String.fromCharCode(128),i=64;i--;)s+=String.fromCharCode(0);t.default=function(e){for(var t=e.length,a=t/4294967296>>>0,i=t>>>0,r=[0,0],p=r.length-1;p>=0;p-=1)r[p]+=i,i=a+(r[p]/4294967296>>>0),r[p]>>>=0,a=i/4294967296>>>0;var o,m=e,d=63&r[r.length-1]+8;m+=s.substr(0,64-d);var y=8*r[0];for(p=0;p<r.length-1;p+=1)m+=n((y+=(o=8*r[p+1])/4294967296>>>0)>>>0),y=o>>>0;var c=function(e){for(var t,a,n,s,i,r,p,o=0,m=0,d=new Uint32Array(80),y=1732584193,c=4023233417,l=2562383102,g=271733878,u=3285377520,h=e.length,f=0;h>=64;){for(t=y,a=c,n=l,s=g,i=u,o=0;o<16;o+=1)d[o]=(p=f,(r=e).charCodeAt(p)<<24^r.charCodeAt(p+1)<<16^r.charCodeAt(p+2)<<8^r.charCodeAt(p+3)),f+=4,m=(t<<5|t>>>27)+(s^a&(n^s))+i+1518500249+d[o],i=s,s=n,n=(a<<30|a>>>2)>>>0,a=t,t=m;for(;o<20;o+=1)m=(m=d[o-3]^d[o-8]^d[o-14]^d[o-16])<<1|m>>>31,d[o]=m,m=(t<<5|t>>>27)+(s^a&(n^s))+i+1518500249+m,i=s,s=n,n=(a<<30|a>>>2)>>>0,a=t,t=m;for(;o<32;o+=1)m=(m=d[o-3]^d[o-8]^d[o-14]^d[o-16])<<1|m>>>31,d[o]=m,m=(t<<5|t>>>27)+(a^n^s)+i+1859775393+m,i=s,s=n,n=(a<<30|a>>>2)>>>0,a=t,t=m;for(;o<40;o+=1)m=(m=d[o-6]^d[o-16]^d[o-28]^d[o-32])<<2|m>>>30,d[o]=m,m=(t<<5|t>>>27)+(a^n^s)+i+1859775393+m,i=s,s=n,n=(a<<30|a>>>2)>>>0,a=t,t=m;for(;o<60;o+=1)m=(m=d[o-6]^d[o-16]^d[o-28]^d[o-32])<<2|m>>>30,d[o]=m,m=(t<<5|t>>>27)+(a&n|s&(a^n))+i+2400959708+m,i=s,s=n,n=(a<<30|a>>>2)>>>0,a=t,t=m;for(;o<80;o+=1)m=(m=d[o-6]^d[o-16]^d[o-28]^d[o-32])<<2|m>>>30,d[o]=m,m=(t<<5|t>>>27)+(a^n^s)+i+3395469782+m,i=s,s=n,n=(a<<30|a>>>2)>>>0,a=t,t=m;y=y+t|0,c=c+a|0,l=l+n|0,g=g+s|0,u=u+i|0,h-=64}return{h1:y,h2:c,h3:l,h4:g,h5:u}}(m+=n(y));return n(c.h1)+n(c.h2)+n(c.h3)+n(c.h4)+n(c.h5)}},function(e,t,a){e.exports=function e(t,a,n){function s(r,p){if(!a[r]){if(!t[r]){if(i)return i(r,!0);var o=new Error("Cannot find module '"+r+"'");throw o.code="MODULE_NOT_FOUND",o}var m=a[r]={exports:{}};t[r][0].call(m.exports,(function(e){return s(t[r][1][e]||e)}),m,m.exports,e,t,a,n)}return a[r].exports}for(var i=!1,r=0;r<n.length;r++)s(n[r]);return s}({1:[function(e,t,a){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;a.assign=function(e){for(var t,a,n=Array.prototype.slice.call(arguments,1);n.length;){var s=n.shift();if(s){if("object"!=typeof s)throw new TypeError(s+"must be non-object");for(var i in s)t=s,a=i,Object.prototype.hasOwnProperty.call(t,a)&&(e[i]=s[i])}}return e},a.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var s={arraySet:function(e,t,a,n,s){if(t.subarray&&e.subarray)e.set(t.subarray(a,a+n),s);else for(var i=0;i<n;i++)e[s+i]=t[a+i]},flattenChunks:function(e){var t,a,n,s,i,r;for(t=n=0,a=e.length;t<a;t++)n+=e[t].length;for(r=new Uint8Array(n),t=s=0,a=e.length;t<a;t++)i=e[t],r.set(i,s),s+=i.length;return r}},i={arraySet:function(e,t,a,n,s){for(var i=0;i<n;i++)e[s+i]=t[a+i]},flattenChunks:function(e){return[].concat.apply([],e)}};a.setTyped=function(e){e?(a.Buf8=Uint8Array,a.Buf16=Uint16Array,a.Buf32=Int32Array,a.assign(a,s)):(a.Buf8=Array,a.Buf16=Array,a.Buf32=Array,a.assign(a,i))},a.setTyped(n)},{}],2:[function(e,t,a){"use strict";var n=e("./common"),s=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(e){s=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){i=!1}for(var r=new n.Buf8(256),p=0;p<256;p++)r[p]=252<=p?6:248<=p?5:240<=p?4:224<=p?3:192<=p?2:1;function o(e,t){if(t<65534&&(e.subarray&&i||!e.subarray&&s))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var a="",r=0;r<t;r++)a+=String.fromCharCode(e[r]);return a}r[254]=r[254]=1,a.string2buf=function(e){var t,a,s,i,r,p=e.length,o=0;for(i=0;i<p;i++)55296==(64512&(a=e.charCodeAt(i)))&&i+1<p&&56320==(64512&(s=e.charCodeAt(i+1)))&&(a=65536+(a-55296<<10)+(s-56320),i++),o+=a<128?1:a<2048?2:a<65536?3:4;for(t=new n.Buf8(o),i=r=0;r<o;i++)55296==(64512&(a=e.charCodeAt(i)))&&i+1<p&&56320==(64512&(s=e.charCodeAt(i+1)))&&(a=65536+(a-55296<<10)+(s-56320),i++),a<128?t[r++]=a:(a<2048?t[r++]=192|a>>>6:(a<65536?t[r++]=224|a>>>12:(t[r++]=240|a>>>18,t[r++]=128|a>>>12&63),t[r++]=128|a>>>6&63),t[r++]=128|63&a);return t},a.buf2binstring=function(e){return o(e,e.length)},a.binstring2buf=function(e){for(var t=new n.Buf8(e.length),a=0,s=t.length;a<s;a++)t[a]=e.charCodeAt(a);return t},a.buf2string=function(e,t){var a,n,s,i,p=t||e.length,m=new Array(2*p);for(a=n=0;a<p;)if((s=e[a++])<128)m[n++]=s;else if(4<(i=r[s]))m[n++]=65533,a+=i-1;else{for(s&=2===i?31:3===i?15:7;1<i&&a<p;)s=s<<6|63&e[a++],i--;1<i?m[n++]=65533:s<65536?m[n++]=s:(s-=65536,m[n++]=55296|s>>10&1023,m[n++]=56320|1023&s)}return o(m,n)},a.utf8border=function(e,t){var a;for((t=t||e.length)>e.length&&(t=e.length),a=t-1;0<=a&&128==(192&e[a]);)a--;return a<0||0===a?t:a+r[e[a]]>t?a:t}},{"./common":1}],3:[function(e,t,a){"use strict";t.exports=function(e,t,a,n){for(var s=65535&e|0,i=e>>>16&65535|0,r=0;0!==a;){for(a-=r=2e3<a?2e3:a;i=i+(s=s+t[n++]|0)|0,--r;);s%=65521,i%=65521}return s|i<<16|0}},{}],4:[function(e,t,a){"use strict";t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],5:[function(e,t,a){"use strict";var n=function(){for(var e,t=[],a=0;a<256;a++){e=a;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[a]=e}return t}();t.exports=function(e,t,a,s){var i=n,r=s+a;e^=-1;for(var p=s;p<r;p++)e=e>>>8^i[255&(e^t[p])];return-1^e}},{}],6:[function(e,t,a){"use strict";t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],7:[function(e,t,a){"use strict";t.exports=function(e,t){var a,n,s,i,r,p,o,m,d,y,c,l,g,u,h,f,_,b,v,P,w,S,I,k,C;a=e.state,n=e.next_in,k=e.input,s=n+(e.avail_in-5),i=e.next_out,C=e.output,r=i-(t-e.avail_out),p=i+(e.avail_out-257),o=a.dmax,m=a.wsize,d=a.whave,y=a.wnext,c=a.window,l=a.hold,g=a.bits,u=a.lencode,h=a.distcode,f=(1<<a.lenbits)-1,_=(1<<a.distbits)-1;e:do{g<15&&(l+=k[n++]<<g,g+=8,l+=k[n++]<<g,g+=8),b=u[l&f];t:for(;;){if(l>>>=v=b>>>24,g-=v,0==(v=b>>>16&255))C[i++]=65535&b;else{if(!(16&v)){if(0==(64&v)){b=u[(65535&b)+(l&(1<<v)-1)];continue t}if(32&v){a.mode=12;break e}e.msg="invalid literal/length code",a.mode=30;break e}P=65535&b,(v&=15)&&(g<v&&(l+=k[n++]<<g,g+=8),P+=l&(1<<v)-1,l>>>=v,g-=v),g<15&&(l+=k[n++]<<g,g+=8,l+=k[n++]<<g,g+=8),b=h[l&_];a:for(;;){if(l>>>=v=b>>>24,g-=v,!(16&(v=b>>>16&255))){if(0==(64&v)){b=h[(65535&b)+(l&(1<<v)-1)];continue a}e.msg="invalid distance code",a.mode=30;break e}if(w=65535&b,g<(v&=15)&&(l+=k[n++]<<g,(g+=8)<v&&(l+=k[n++]<<g,g+=8)),o<(w+=l&(1<<v)-1)){e.msg="invalid distance too far back",a.mode=30;break e}if(l>>>=v,g-=v,(v=i-r)<w){if(d<(v=w-v)&&a.sane){e.msg="invalid distance too far back",a.mode=30;break e}if(I=c,(S=0)===y){if(S+=m-v,v<P){for(P-=v;C[i++]=c[S++],--v;);S=i-w,I=C}}else if(y<v){if(S+=m+y-v,(v-=y)<P){for(P-=v;C[i++]=c[S++],--v;);if(S=0,y<P){for(P-=v=y;C[i++]=c[S++],--v;);S=i-w,I=C}}}else if(S+=y-v,v<P){for(P-=v;C[i++]=c[S++],--v;);S=i-w,I=C}for(;2<P;)C[i++]=I[S++],C[i++]=I[S++],C[i++]=I[S++],P-=3;P&&(C[i++]=I[S++],1<P&&(C[i++]=I[S++]))}else{for(S=i-w;C[i++]=C[S++],C[i++]=C[S++],C[i++]=C[S++],2<(P-=3););P&&(C[i++]=C[S++],1<P&&(C[i++]=C[S++]))}break}}break}}while(n<s&&i<p);n-=P=g>>3,l&=(1<<(g-=P<<3))-1,e.next_in=n,e.next_out=i,e.avail_in=n<s?s-n+5:5-(n-s),e.avail_out=i<p?p-i+257:257-(i-p),a.hold=l,a.bits=g}},{}],8:[function(e,t,a){"use strict";var n=e("../utils/common"),s=e("./adler32"),i=e("./crc32"),r=e("./inffast"),p=e("./inftrees"),o=-2;function m(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function d(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function y(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):o}function c(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,y(e)):o}function l(e,t){var a,n;return e&&e.state?(n=e.state,t<0?(a=0,t=-t):(a=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?o:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=a,n.wbits=t,c(e))):o}function g(e,t){var a,n;return e?(n=new d,(e.state=n).window=null,0!==(a=l(e,t))&&(e.state=null),a):o}var u,h,f=!0;function _(e){if(f){var t;for(u=new n.Buf32(512),h=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(p(1,e.lens,0,288,u,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;p(2,e.lens,0,32,h,0,e.work,{bits:5}),f=!1}e.lencode=u,e.lenbits=9,e.distcode=h,e.distbits=5}function b(e,t,a,s){var i,r=e.state;return null===r.window&&(r.wsize=1<<r.wbits,r.wnext=0,r.whave=0,r.window=new n.Buf8(r.wsize)),s>=r.wsize?(n.arraySet(r.window,t,a-r.wsize,r.wsize,0),r.wnext=0,r.whave=r.wsize):(s<(i=r.wsize-r.wnext)&&(i=s),n.arraySet(r.window,t,a-s,i,r.wnext),(s-=i)?(n.arraySet(r.window,t,a-s,s,0),r.wnext=s,r.whave=r.wsize):(r.wnext+=i,r.wnext===r.wsize&&(r.wnext=0),r.whave<r.wsize&&(r.whave+=i))),0}a.inflateReset=c,a.inflateReset2=l,a.inflateResetKeep=y,a.inflateInit=function(e){return g(e,15)},a.inflateInit2=g,a.inflate=function(e,t){var a,d,y,c,l,g,u,h,f,v,P,w,S,I,k,C,A,M,E,V,U,D,R,B,T=0,x=new n.Buf8(4),O=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return o;12===(a=e.state).mode&&(a.mode=13),l=e.next_out,y=e.output,u=e.avail_out,c=e.next_in,d=e.input,g=e.avail_in,h=a.hold,f=a.bits,v=g,P=u,D=0;e:for(;;)switch(a.mode){case 1:if(0===a.wrap){a.mode=13;break}for(;f<16;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}if(2&a.wrap&&35615===h){x[a.check=0]=255&h,x[1]=h>>>8&255,a.check=i(a.check,x,2,0),f=h=0,a.mode=2;break}if(a.flags=0,a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&h)<<8)+(h>>8))%31){e.msg="incorrect header check",a.mode=30;break}if(8!=(15&h)){e.msg="unknown compression method",a.mode=30;break}if(f-=4,U=8+(15&(h>>>=4)),0===a.wbits)a.wbits=U;else if(U>a.wbits){e.msg="invalid window size",a.mode=30;break}a.dmax=1<<U,e.adler=a.check=1,a.mode=512&h?10:12,f=h=0;break;case 2:for(;f<16;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}if(a.flags=h,8!=(255&a.flags)){e.msg="unknown compression method",a.mode=30;break}if(57344&a.flags){e.msg="unknown header flags set",a.mode=30;break}a.head&&(a.head.text=h>>8&1),512&a.flags&&(x[0]=255&h,x[1]=h>>>8&255,a.check=i(a.check,x,2,0)),f=h=0,a.mode=3;case 3:for(;f<32;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}a.head&&(a.head.time=h),512&a.flags&&(x[0]=255&h,x[1]=h>>>8&255,x[2]=h>>>16&255,x[3]=h>>>24&255,a.check=i(a.check,x,4,0)),f=h=0,a.mode=4;case 4:for(;f<16;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}a.head&&(a.head.xflags=255&h,a.head.os=h>>8),512&a.flags&&(x[0]=255&h,x[1]=h>>>8&255,a.check=i(a.check,x,2,0)),f=h=0,a.mode=5;case 5:if(1024&a.flags){for(;f<16;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}a.length=h,a.head&&(a.head.extra_len=h),512&a.flags&&(x[0]=255&h,x[1]=h>>>8&255,a.check=i(a.check,x,2,0)),f=h=0}else a.head&&(a.head.extra=null);a.mode=6;case 6:if(1024&a.flags&&(g<(w=a.length)&&(w=g),w&&(a.head&&(U=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Array(a.head.extra_len)),n.arraySet(a.head.extra,d,c,w,U)),512&a.flags&&(a.check=i(a.check,d,w,c)),g-=w,c+=w,a.length-=w),a.length))break e;a.length=0,a.mode=7;case 7:if(2048&a.flags){if(0===g)break e;for(w=0;U=d[c+w++],a.head&&U&&a.length<65536&&(a.head.name+=String.fromCharCode(U)),U&&w<g;);if(512&a.flags&&(a.check=i(a.check,d,w,c)),g-=w,c+=w,U)break e}else a.head&&(a.head.name=null);a.length=0,a.mode=8;case 8:if(4096&a.flags){if(0===g)break e;for(w=0;U=d[c+w++],a.head&&U&&a.length<65536&&(a.head.comment+=String.fromCharCode(U)),U&&w<g;);if(512&a.flags&&(a.check=i(a.check,d,w,c)),g-=w,c+=w,U)break e}else a.head&&(a.head.comment=null);a.mode=9;case 9:if(512&a.flags){for(;f<16;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}if(h!==(65535&a.check)){e.msg="header crc mismatch",a.mode=30;break}f=h=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),e.adler=a.check=0,a.mode=12;break;case 10:for(;f<32;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}e.adler=a.check=m(h),f=h=0,a.mode=11;case 11:if(0===a.havedict)return e.next_out=l,e.avail_out=u,e.next_in=c,e.avail_in=g,a.hold=h,a.bits=f,2;e.adler=a.check=1,a.mode=12;case 12:if(5===t||6===t)break e;case 13:if(a.last){h>>>=7&f,f-=7&f,a.mode=27;break}for(;f<3;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}switch(a.last=1&h,f-=1,3&(h>>>=1)){case 0:a.mode=14;break;case 1:if(_(a),a.mode=20,6!==t)break;h>>>=2,f-=2;break e;case 2:a.mode=17;break;case 3:e.msg="invalid block type",a.mode=30}h>>>=2,f-=2;break;case 14:for(h>>>=7&f,f-=7&f;f<32;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}if((65535&h)!=(h>>>16^65535)){e.msg="invalid stored block lengths",a.mode=30;break}if(a.length=65535&h,f=h=0,a.mode=15,6===t)break e;case 15:a.mode=16;case 16:if(w=a.length){if(g<w&&(w=g),u<w&&(w=u),0===w)break e;n.arraySet(y,d,c,w,l),g-=w,c+=w,u-=w,l+=w,a.length-=w;break}a.mode=12;break;case 17:for(;f<14;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}if(a.nlen=257+(31&h),h>>>=5,f-=5,a.ndist=1+(31&h),h>>>=5,f-=5,a.ncode=4+(15&h),h>>>=4,f-=4,286<a.nlen||30<a.ndist){e.msg="too many length or distance symbols",a.mode=30;break}a.have=0,a.mode=18;case 18:for(;a.have<a.ncode;){for(;f<3;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}a.lens[O[a.have++]]=7&h,h>>>=3,f-=3}for(;a.have<19;)a.lens[O[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,R={bits:a.lenbits},D=p(0,a.lens,0,19,a.lencode,0,a.work,R),a.lenbits=R.bits,D){e.msg="invalid code lengths set",a.mode=30;break}a.have=0,a.mode=19;case 19:for(;a.have<a.nlen+a.ndist;){for(;C=(T=a.lencode[h&(1<<a.lenbits)-1])>>>16&255,A=65535&T,!((k=T>>>24)<=f);){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}if(A<16)h>>>=k,f-=k,a.lens[a.have++]=A;else{if(16===A){for(B=k+2;f<B;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}if(h>>>=k,f-=k,0===a.have){e.msg="invalid bit length repeat",a.mode=30;break}U=a.lens[a.have-1],w=3+(3&h),h>>>=2,f-=2}else if(17===A){for(B=k+3;f<B;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}f-=k,U=0,w=3+(7&(h>>>=k)),h>>>=3,f-=3}else{for(B=k+7;f<B;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}f-=k,U=0,w=11+(127&(h>>>=k)),h>>>=7,f-=7}if(a.have+w>a.nlen+a.ndist){e.msg="invalid bit length repeat",a.mode=30;break}for(;w--;)a.lens[a.have++]=U}}if(30===a.mode)break;if(0===a.lens[256]){e.msg="invalid code -- missing end-of-block",a.mode=30;break}if(a.lenbits=9,R={bits:a.lenbits},D=p(1,a.lens,0,a.nlen,a.lencode,0,a.work,R),a.lenbits=R.bits,D){e.msg="invalid literal/lengths set",a.mode=30;break}if(a.distbits=6,a.distcode=a.distdyn,R={bits:a.distbits},D=p(2,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,R),a.distbits=R.bits,D){e.msg="invalid distances set",a.mode=30;break}if(a.mode=20,6===t)break e;case 20:a.mode=21;case 21:if(6<=g&&258<=u){e.next_out=l,e.avail_out=u,e.next_in=c,e.avail_in=g,a.hold=h,a.bits=f,r(e,P),l=e.next_out,y=e.output,u=e.avail_out,c=e.next_in,d=e.input,g=e.avail_in,h=a.hold,f=a.bits,12===a.mode&&(a.back=-1);break}for(a.back=0;C=(T=a.lencode[h&(1<<a.lenbits)-1])>>>16&255,A=65535&T,!((k=T>>>24)<=f);){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}if(C&&0==(240&C)){for(M=k,E=C,V=A;C=(T=a.lencode[V+((h&(1<<M+E)-1)>>M)])>>>16&255,A=65535&T,!(M+(k=T>>>24)<=f);){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}h>>>=M,f-=M,a.back+=M}if(h>>>=k,f-=k,a.back+=k,a.length=A,0===C){a.mode=26;break}if(32&C){a.back=-1,a.mode=12;break}if(64&C){e.msg="invalid literal/length code",a.mode=30;break}a.extra=15&C,a.mode=22;case 22:if(a.extra){for(B=a.extra;f<B;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}a.length+=h&(1<<a.extra)-1,h>>>=a.extra,f-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=23;case 23:for(;C=(T=a.distcode[h&(1<<a.distbits)-1])>>>16&255,A=65535&T,!((k=T>>>24)<=f);){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}if(0==(240&C)){for(M=k,E=C,V=A;C=(T=a.distcode[V+((h&(1<<M+E)-1)>>M)])>>>16&255,A=65535&T,!(M+(k=T>>>24)<=f);){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}h>>>=M,f-=M,a.back+=M}if(h>>>=k,f-=k,a.back+=k,64&C){e.msg="invalid distance code",a.mode=30;break}a.offset=A,a.extra=15&C,a.mode=24;case 24:if(a.extra){for(B=a.extra;f<B;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}a.offset+=h&(1<<a.extra)-1,h>>>=a.extra,f-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){e.msg="invalid distance too far back",a.mode=30;break}a.mode=25;case 25:if(0===u)break e;if(w=P-u,a.offset>w){if((w=a.offset-w)>a.whave&&a.sane){e.msg="invalid distance too far back",a.mode=30;break}w>a.wnext?(w-=a.wnext,S=a.wsize-w):S=a.wnext-w,w>a.length&&(w=a.length),I=a.window}else I=y,S=l-a.offset,w=a.length;for(u<w&&(w=u),u-=w,a.length-=w;y[l++]=I[S++],--w;);0===a.length&&(a.mode=21);break;case 26:if(0===u)break e;y[l++]=a.length,u--,a.mode=21;break;case 27:if(a.wrap){for(;f<32;){if(0===g)break e;g--,h|=d[c++]<<f,f+=8}if(P-=u,e.total_out+=P,a.total+=P,P&&(e.adler=a.check=a.flags?i(a.check,y,P,l-P):s(a.check,y,P,l-P)),P=u,(a.flags?h:m(h))!==a.check){e.msg="incorrect data check",a.mode=30;break}f=h=0}a.mode=28;case 28:if(a.wrap&&a.flags){for(;f<32;){if(0===g)break e;g--,h+=d[c++]<<f,f+=8}if(h!==(4294967295&a.total)){e.msg="incorrect length check",a.mode=30;break}f=h=0}a.mode=29;case 29:D=1;break e;case 30:D=-3;break e;case 31:return-4;case 32:default:return o}return e.next_out=l,e.avail_out=u,e.next_in=c,e.avail_in=g,a.hold=h,a.bits=f,(a.wsize||P!==e.avail_out&&a.mode<30&&(a.mode<27||4!==t))&&b(e,e.output,e.next_out,P-e.avail_out)?(a.mode=31,-4):(v-=e.avail_in,P-=e.avail_out,e.total_in+=v,e.total_out+=P,a.total+=P,a.wrap&&P&&(e.adler=a.check=a.flags?i(a.check,y,P,e.next_out-P):s(a.check,y,P,e.next_out-P)),e.data_type=a.bits+(a.last?64:0)+(12===a.mode?128:0)+(20===a.mode||15===a.mode?256:0),(0===v&&0===P||4===t)&&0===D&&(D=-5),D)},a.inflateEnd=function(e){if(!e||!e.state)return o;var t=e.state;return t.window&&(t.window=null),e.state=null,0},a.inflateGetHeader=function(e,t){var a;return e&&e.state?0==(2&(a=e.state).wrap)?o:((a.head=t).done=!1,0):o},a.inflateSetDictionary=function(e,t){var a,n=t.length;return e&&e.state?0!==(a=e.state).wrap&&11!==a.mode?o:11===a.mode&&s(1,t,n,0)!==a.check?-3:b(e,t,n,n)?(a.mode=31,-4):(a.havedict=1,0):o},a.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":5,"./inffast":7,"./inftrees":9}],9:[function(e,t,a){"use strict";var n=e("../utils/common"),s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],r=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],p=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,a,o,m,d,y,c){var l,g,u,h,f,_,b,v,P,w=c.bits,S=0,I=0,k=0,C=0,A=0,M=0,E=0,V=0,U=0,D=0,R=null,B=0,T=new n.Buf16(16),x=new n.Buf16(16),O=null,F=0;for(S=0;S<=15;S++)T[S]=0;for(I=0;I<o;I++)T[t[a+I]]++;for(A=w,C=15;1<=C&&0===T[C];C--);if(C<A&&(A=C),0===C)return m[d++]=20971520,m[d++]=20971520,c.bits=1,0;for(k=1;k<C&&0===T[k];k++);for(A<k&&(A=k),S=V=1;S<=15;S++)if(V<<=1,(V-=T[S])<0)return-1;if(0<V&&(0===e||1!==C))return-1;for(x[1]=0,S=1;S<15;S++)x[S+1]=x[S]+T[S];for(I=0;I<o;I++)0!==t[a+I]&&(y[x[t[a+I]]++]=I);if(0===e?(R=O=y,_=19):1===e?(R=s,B-=257,O=i,F-=257,_=256):(R=r,O=p,_=-1),S=k,f=d,E=I=D=0,u=-1,h=(U=1<<(M=A))-1,1===e&&852<U||2===e&&592<U)return 1;for(;;){for(b=S-E,y[I]<_?(v=0,P=y[I]):y[I]>_?(v=O[F+y[I]],P=R[B+y[I]]):(v=96,P=0),l=1<<S-E,k=g=1<<M;m[f+(D>>E)+(g-=l)]=b<<24|v<<16|P|0,0!==g;);for(l=1<<S-1;D&l;)l>>=1;if(0!==l?(D&=l-1,D+=l):D=0,I++,0==--T[S]){if(S===C)break;S=t[a+y[I]]}if(A<S&&(D&h)!==u){for(0===E&&(E=A),f+=k,V=1<<(M=S-E);M+E<C&&!((V-=T[M+E])<=0);)M++,V<<=1;if(U+=1<<M,1===e&&852<U||2===e&&592<U)return 1;m[u=D&h]=A<<24|M<<16|f-d|0}}return 0!==D&&(m[f+D]=S-E<<24|64<<16|0),c.bits=A,0}},{"../utils/common":1}],10:[function(e,t,a){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],11:[function(e,t,a){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],"/lib/inflate.js":[function(e,t,a){"use strict";var n=e("./zlib/inflate"),s=e("./utils/common"),i=e("./utils/strings"),r=e("./zlib/constants"),p=e("./zlib/messages"),o=e("./zlib/zstream"),m=e("./zlib/gzheader"),d=Object.prototype.toString;function y(e){if(!(this instanceof y))return new y(e);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var a=n.inflateInit2(this.strm,t.windowBits);if(a!==r.Z_OK)throw new Error(p[a]);if(this.header=new m,n.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=i.string2buf(t.dictionary):"[object ArrayBuffer]"===d.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(a=n.inflateSetDictionary(this.strm,t.dictionary))!==r.Z_OK))throw new Error(p[a])}function c(e,t){var a=new y(t);if(a.push(e,!0),a.err)throw a.msg||p[a.err];return a.result}y.prototype.push=function(e,t){var a,p,o,m,y,c=this.strm,l=this.options.chunkSize,g=this.options.dictionary,u=!1;if(this.ended)return!1;p=t===~~t?t:!0===t?r.Z_FINISH:r.Z_NO_FLUSH,"string"==typeof e?c.input=i.binstring2buf(e):"[object ArrayBuffer]"===d.call(e)?c.input=new Uint8Array(e):c.input=e,c.next_in=0,c.avail_in=c.input.length;do{if(0===c.avail_out&&(c.output=new s.Buf8(l),c.next_out=0,c.avail_out=l),(a=n.inflate(c,r.Z_NO_FLUSH))===r.Z_NEED_DICT&&g&&(a=n.inflateSetDictionary(this.strm,g)),a===r.Z_BUF_ERROR&&!0===u&&(a=r.Z_OK,u=!1),a!==r.Z_STREAM_END&&a!==r.Z_OK)return this.onEnd(a),!(this.ended=!0);c.next_out&&(0!==c.avail_out&&a!==r.Z_STREAM_END&&(0!==c.avail_in||p!==r.Z_FINISH&&p!==r.Z_SYNC_FLUSH)||("string"===this.options.to?(o=i.utf8border(c.output,c.next_out),m=c.next_out-o,y=i.buf2string(c.output,o),c.next_out=m,c.avail_out=l-m,m&&s.arraySet(c.output,c.output,o,m,0),this.onData(y)):this.onData(s.shrinkBuf(c.output,c.next_out)))),0===c.avail_in&&0===c.avail_out&&(u=!0)}while((0<c.avail_in||0===c.avail_out)&&a!==r.Z_STREAM_END);return a===r.Z_STREAM_END&&(p=r.Z_FINISH),p===r.Z_FINISH?(a=n.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===r.Z_OK):p!==r.Z_SYNC_FLUSH||(this.onEnd(r.Z_OK),!(c.avail_out=0))},y.prototype.onData=function(e){this.chunks.push(e)},y.prototype.onEnd=function(e){e===r.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},a.Inflate=y,a.inflate=c,a.inflateRaw=function(e,t){return(t=t||{}).raw=!0,c(e,t)},a.ungzip=c},{"./utils/common":1,"./utils/strings":2,"./zlib/constants":4,"./zlib/gzheader":6,"./zlib/inflate":8,"./zlib/messages":10,"./zlib/zstream":11}]},{},[])("/lib/inflate.js")},function(e,t,a){"use strict";a.r(t),a.d(t,"isWebpSupported",(function(){return fe}));var n=a(0),s=a(6);Object.defineProperty(Uint8Array.prototype,"hex",{get:function(){return Object(n.g)([...this])},set:function(e){this.set(Object(n.e)(e))},enumerable:!0,configurable:!0}),Uint8Array.prototype.randomize=function(){for(let e=0;e<this.length;++e)this[e]=Object(s.a)(255);return this},Uint8Array.prototype.concat=function(...e){return Object(n.b)(this,...e)},Uint8Array.prototype.toJSON=function(){return[...this]},Array.prototype.findAndSplice=function(e){let t=this.findIndex(e);return-1!==t?this.splice(t,1)[0]:void 0},String.prototype.toHHMMSS=function(e=!1){const t=parseInt(this+"",10),a=Math.floor(t/3600);let n=Math.floor((t-3600*a)/60),s=t-3600*a-60*n;return a&&(e=!0),n<10&&(n=e?"0"+n:n),s<10&&(s="0"+s),(a?a+":":"")+n+":"+s},Promise.prototype.finally=Promise.prototype.finally||function(e){const t=t=>Promise.resolve(e()).then(t);return this.then(e=>t(()=>e),e=>t(()=>Promise.reject(e)))};var i=a(2),r=a(5);var p={name:"tweb"+(r.a.test?"_test":""),version:5,stores:[{name:"session"},{name:"stickerSets"}]};function o(e,t=""){let a;const n=function(e){if(-1===["image/jpeg","image/png","image/gif","image/webp","image/bmp","video/mp4","video/webm","video/quicktime","audio/ogg","audio/mpeg","audio/mp4","application/json"].indexOf(e))return"application/octet-stream";return e}(t);try{a=new Blob(e,{type:n})}catch(t){let s=new BlobBuilder;e.forEach(e=>{s.append(e)}),a=s.getBlob(n)}return a}var m=a(4);class d{constructor(e){this.storageIsAvailable=!0,this.log=Object(m.b)("IDB"),this.name=p.name,this.version=p.version,this.stores=p.stores,function(e,t){if(t)for(let a in t)void 0!==t[a]&&(e[a]=t[a])}(this,e),this.openDatabase(!0)}isAvailable(){return this.storageIsAvailable}openDatabase(e=!1){if(this.openDbPromise&&!e)return this.openDbPromise;try{var t=indexedDB.open(this.name,this.version);if(!t)throw new Error}catch(e){return this.log.error("error opening db",e.message),this.storageIsAvailable=!1,Promise.reject(e)}let a=!1;return setTimeout(()=>{a||t.onerror({type:"IDB_CREATE_TIMEOUT"})},3e3),this.openDbPromise=new Promise((e,n)=>{t.onsuccess=s=>{a=!0;const i=t.result;let r=!1;this.log("Opened"),i.onerror=e=>{this.storageIsAvailable=!1,this.log.error("Error creating/accessing IndexedDB database",e),n(e)},i.onclose=e=>{this.log.error("closed:",e),!r&&this.openDatabase()},i.onabort=e=>{this.log.error("abort:",e);const t=e.target;this.openDatabase(r=!0),t.onerror&&t.onerror(e),i.close()},i.onversionchange=e=>{this.log.error("onversionchange, lol?")},e(i)},t.onerror=e=>{a=!0,this.storageIsAvailable=!1,this.log.error("Error creating/accessing IndexedDB database",e),n(e)},t.onupgradeneeded=e=>{a=!0,this.log.warn("performing idb upgrade from",e.oldVersion,"to",e.newVersion);var t=e.target.result;this.stores.forEach(e=>{t.objectStoreNames.contains(e.name)||((e,t)=>{var a;const n=e.createObjectStore(t.name);if(null===(a=t.indexes)||void 0===a?void 0:a.length)for(const e of t.indexes)n.createIndex(e.indexName,e.keyPath,e.objectParameters)})(t,e)})}})}delete(e){return this.openDatabase().then(t=>{try{var a=t.transaction([this.storeName],"readwrite").objectStore(this.storeName).delete(e)}catch(e){return Promise.reject(e)}return new Promise((t,n)=>{const s=setTimeout(()=>{this.log.error("delete: request not finished!",e,a),t()},3e3);a.onsuccess=e=>{t(),clearTimeout(s)},a.onerror=e=>{n(e),clearTimeout(s)}})})}deleteAll(){return this.openDatabase().then(e=>{try{const a=e.transaction([this.storeName],"readwrite");var t=a.objectStore(this.storeName).clear()}catch(e){return Promise.reject(e)}return new Promise((e,a)=>{const n=setTimeout(()=>{this.log.error("deleteAll: request not finished",t)},3e3);t.onsuccess=t=>{e(),clearTimeout(n)},t.onerror=e=>{a(e),clearTimeout(n)}})})}save(e,t){return this.openDatabase().then(a=>{const n=n=>{this.log.error("save: transaction error:",e,t,a,n,n&&n.name),n&&"InvalidStateError"!==n.name||setTimeout(()=>{this.save(e,t)},2e3)};try{const i=a.transaction([this.storeName],"readwrite");i.onerror=e=>{n(i.error)};var s=i.objectStore(this.storeName).put(t,e)}catch(e){return n(e),Promise.reject(e)}return new Promise((t,a)=>{const n=setTimeout(()=>{this.log.error("save: request not finished",e,s)},1e4);s.onsuccess=e=>{t(),clearTimeout(n)},s.onerror=e=>{a(e),clearTimeout(n)}})})}saveFile(e,t){return t instanceof Blob||(t=o([t])),this.save(e,t)}get(e){return this.openDatabase().then(t=>{try{const n=t.transaction([this.storeName],"readonly");var a=n.objectStore(this.storeName).get(e)}catch(t){this.log.error("get error:",t,e,a,a.error)}return new Promise((t,n)=>{const s=setTimeout(()=>{this.log.error("get request not finished!",e,a),n()},3e3);a.onsuccess=function(e){const i=a.result;void 0===i?n("NO_ENTRY_FOUND"):t(i),clearTimeout(s)},a.onerror=()=>{clearTimeout(s),n()}})})}}var y=function(e,t,a,n){return new(a||(a=Promise))((function(s,i){function r(e){try{o(n.next(e))}catch(e){i(e)}}function p(e){try{o(n.throw(e))}catch(e){i(e)}}function o(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,p)}o((n=n.apply(e,t||[])).next())}))};const c=new class{constructor(e){this.cache={},this.useStorage=!0,this.storage=new d(e)}getCache(){return this.cache}getFromCache(e){return this.cache[e]}setToCache(e,t){return this.cache[e]=t}get(e){return y(this,void 0,void 0,(function*(){if(this.cache.hasOwnProperty(e))return this.getFromCache(e);if(this.useStorage){let t;try{t=yield this.storage.get(e)}catch(a){"NO_ENTRY_FOUND"!==a&&(this.useStorage=!1,console.error("[AS]: get error:",a,e,t))}return this.cache[e]=t}throw"something went wrong"}))}set(e,t=!1){return y(this,void 0,void 0,(function*(){for(const a in e)if(e.hasOwnProperty(a)){const n=e[a];if(this.setToCache(a,n),this.useStorage&&!t)try{yield this.storage.save(a,n)}catch(e){console.error("[AS]: set error:",e,a)}}}))}remove(e,t=!1){return y(this,void 0,void 0,(function*(){if(t||delete this.cache[e],this.useStorage)try{yield this.storage.delete(e)}catch(e){this.useStorage=!1,console.error("[AS]: remove error:",e)}}))}clear(){return this.storage.deleteAll()}}({storeName:"session"});i.a.appStorage=c;var l=c,g=a(7),u=a(1),h={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<long>"}],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<future_salt>"}],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<long>"}],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<long>"}],type:"MsgResendReq"},{id:2249243371,predicate:"msg_resend_ans_req",params:[{name:"msg_ids",type:"Vector<long>"}],type:"MsgResendReq"},{id:3664378706,predicate:"msgs_state_req",params:[{name:"msg_ids",type:"Vector<long>"}],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<long>"},{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:3112732367,predicate:"inputUserEmpty",params:[],type:"InputUser"},{id:4156666175,predicate:"inputUserSelf",params:[],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:2523198847,predicate:"inputMediaEmpty",params:[],type:"InputMedia"},{id:"505969924",predicate:"inputMediaUploadedPhoto",params:[{name:"flags",type:"#"},{name:"file",type:"InputFile"},{name:"stickers",type:"flags.0?Vector<InputDocument>"},{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:"480546647",predicate:"inputChatPhotoEmpty",params:[],type:"InputChatPhoto"},{id:3326243406,predicate:"inputChatUploadedPhoto",params:[{name:"flags",type:"#"},{name:"file",type:"flags.0?InputFile"},{name:"video",type:"flags.1?InputFile"},{name:"video_start_ts",type:"flags.2?double"}],type:"InputChatPhoto"},{id:2303962423,predicate:"inputChatPhoto",params:[{name:"id",type:"InputPhoto"}],type:"InputChatPhoto"},{id:3837862870,predicate:"inputGeoPointEmpty",params:[],type:"InputGeoPoint"},{id:"1210199983",predicate:"inputGeoPoint",params:[{name:"flags",type:"#"},{name:"lat",type:"double"},{name:"long",type:"double"},{name:"accuracy_radius",type:"flags.0?int"}],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:2645671021,predicate:"peerUser",params:[{name:"user_id",type:"int"}],type:"Peer"},{id:3134252475,predicate:"peerChat",params:[{name:"chat_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:"1326562017",predicate:"userProfilePhotoEmpty",params:[],type:"UserProfilePhoto"},{id:"1775479590",predicate:"userProfilePhoto",params:[{name:"flags",type:"#"},{name:"has_video",type:"flags.0?true"},{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: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:"call_active",type:"flags.23?true"},{name:"call_not_empty",type:"flags.24?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:2317232515,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:"flags.13?ExportedChatInvite"},{name:"bot_info",type:"flags.3?Vector<BotInfo>"},{name:"pinned_msg_id",type:"flags.6?int"},{name:"folder_id",type:"flags.11?int"},{name:"call",type:"flags.12?InputGroupCall"},{name:"ttl_period",type:"flags.14?int"},{name:"groupcall_default_join_as",type:"flags.15?Peer"}],type:"ChatFull"},{id:3369552190,predicate:"chatParticipant",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<ChatParticipant>"},{name:"version",type:"int"}],type:"ChatParticipants"},{id:"935395612",predicate:"chatPhotoEmpty",params:[],type:"ChatPhoto"},{id:3523977020,predicate:"chatPhoto",params:[{name:"flags",type:"#"},{name:"has_video",type:"flags.0?true"},{name:"photo_small",type:"FileLocation"},{name:"photo_big",type:"FileLocation"},{name:"dc_id",type:"int"}],type:"ChatPhoto"},{id:2426849924,predicate:"messageEmpty",params:[{name:"flags",type:"#"},{name:"id",type:"int"},{name:"peer_id",type:"flags.0?Peer"}],type:"Message"},{id:3169027026,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:"pinned",type:"flags.24?true"},{name:"id",type:"int"},{name:"from_id",type:"flags.8?Peer"},{name:"peer_id",type:"Peer"},{name:"fwd_from",type:"flags.2?MessageFwdHeader"},{name:"via_bot_id",type:"flags.11?int"},{name:"reply_to",type:"flags.3?MessageReplyHeader"},{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<MessageEntity>"},{name:"views",type:"flags.10?int"},{name:"forwards",type:"flags.10?int"},{name:"replies",type:"flags.23?MessageReplies"},{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<RestrictionReason>"},{name:"ttl_period",type:"flags.25?int"}],type:"Message"},{id:"721967202",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?Peer"},{name:"peer_id",type:"Peer"},{name:"reply_to",type:"flags.3?MessageReplyHeader"},{name:"date",type:"int"},{name:"action",type:"MessageAction"},{name:"ttl_period",type:"flags.25?int"}],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:3064919984,predicate:"messageActionEmpty",params:[],type:"MessageAction"},{id:2791541658,predicate:"messageActionChatCreate",params:[{name:"title",type:"string"},{name:"users",type:"Vector<int>"}],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<int>"}],type:"MessageAction"},{id:2997787404,predicate:"messageActionChatDeleteUser",params:[{name:"user_id",type:"int"}],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:"590459437",predicate:"photoEmpty",params:[{name:"id",type:"long"}],type:"Photo"},{id:4212750949,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<PhotoSize>"},{name:"video_sizes",type:"flags.1?Vector<VideoSize>"},{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:"286776671",predicate:"geoPointEmpty",params:[],type:"GeoPoint"},{id:2997024355,predicate:"geoPoint",params:[{name:"flags",type:"#"},{name:"long",type:"double"},{name:"lat",type:"double"},{name:"access_hash",type:"long"},{name:"accuracy_radius",type:"flags.0?int"}],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: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: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:"1933519201",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"},{name:"autoarchived",type:"flags.7?true"},{name:"invite_members",type:"flags.8?true"},{name:"geo_distance",type:"flags.6?int"}],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:"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:3252986545,predicate:"inputReportReasonOther",params:[],type:"ReportReason"},{id:"328899191",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:"video_calls_available",type:"flags.13?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"},{name:"ttl_period",type:"flags.14?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: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<Contact>"},{name:"saved_count",type:"int"},{name:"users",type:"Vector<User>"}],type:"contacts.Contacts"},{id:"2010127419",predicate:"contacts.importedContacts",params:[{name:"imported",type:"Vector<ImportedContact>"},{name:"popular_invites",type:"Vector<PopularContact>"},{name:"retry_contacts",type:"Vector<long>"},{name:"users",type:"Vector<User>"}],type:"contacts.ImportedContacts"},{id:"182326673",predicate:"contacts.blocked",params:[{name:"blocked",type:"Vector<PeerBlocked>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"contacts.Blocked"},{id:3781575060,predicate:"contacts.blockedSlice",params:[{name:"count",type:"int"},{name:"blocked",type:"Vector<PeerBlocked>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"contacts.Blocked"},{id:"364538944",predicate:"messages.dialogs",params:[{name:"dialogs",type:"Vector<Dialog>"},{name:"messages",type:"Vector<Message>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"messages.Dialogs"},{id:"1910543603",predicate:"messages.dialogsSlice",params:[{name:"count",type:"int"},{name:"dialogs",type:"Vector<Dialog>"},{name:"messages",type:"Vector<Message>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"messages.Dialogs"},{id:2356252295,predicate:"messages.messages",params:[{name:"messages",type:"Vector<Message>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"messages.Messages"},{id:"978610270",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:"offset_id_offset",type:"flags.2?int"},{name:"messages",type:"Vector<Message>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"messages.Messages"},{id:"1694474197",predicate:"messages.chats",params:[{name:"chats",type:"Vector<Chat>"}],type:"messages.Chats"},{id:3856126364,predicate:"messages.chatFull",params:[{name:"full_chat",type:"ChatFull"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],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:"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<int>"},{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:2261441388,predicate:"updateChatUserTyping",params:[{name:"chat_id",type:"int"},{name:"from_id",type:"Peer"},{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: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<Message>"},{name:"new_encrypted_messages",type:"Vector<EncryptedMessage>"},{name:"other_updates",type:"Vector<Update>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"},{name:"state",type:"updates.State"}],type:"updates.Difference"},{id:2835028353,predicate:"updates.differenceSlice",params:[{name:"new_messages",type:"Vector<Message>"},{name:"new_encrypted_messages",type:"Vector<EncryptedMessage>"},{name:"other_updates",type:"Vector<Update>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"},{name:"intermediate_state",type:"updates.State"}],type:"updates.Difference"},{id:3809980286,predicate:"updatesTooLong",params:[],type:"Updates"},{id:4210030643,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",type:"flags.3?MessageReplyHeader"},{name:"entities",type:"flags.7?Vector<MessageEntity>"},{name:"ttl_period",type:"flags.25?int"}],type:"Updates"},{id:"290961496",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",type:"flags.3?MessageReplyHeader"},{name:"entities",type:"flags.7?Vector<MessageEntity>"},{name:"ttl_period",type:"flags.25?int"}],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<Update>"},{name:"users",type:"Vector<User>"},{name:"chats",type:"Vector<Chat>"},{name:"date",type:"int"},{name:"seq_start",type:"int"},{name:"seq",type:"int"}],type:"Updates"},{id:"1957577280",predicate:"updates",params:[{name:"updates",type:"Vector<Update>"},{name:"users",type:"Vector<User>"},{name:"chats",type:"Vector<Chat>"},{name:"date",type:"int"},{name:"seq",type:"int"}],type:"Updates"},{id:2378853029,predicate:"photos.photos",params:[{name:"photos",type:"Vector<Photo>"},{name:"users",type:"Vector<User>"}],type:"photos.Photos"},{id:"352657236",predicate:"photos.photosSlice",params:[{name:"count",type:"int"},{name:"photos",type:"Vector<Photo>"},{name:"users",type:"Vector<User>"}],type:"photos.Photos"},{id:"539045032",predicate:"photos.photo",params:[{name:"photo",type:"Photo"},{name:"users",type:"Vector<User>"}],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:"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<DcOption>"},{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<MessageEntity>"},{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:"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: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:"1651608194",predicate:"encryptedChatRequested",params:[{name:"flags",type:"#"},{name:"folder_id",type:"flags.0?int"},{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:"505183301",predicate:"encryptedChatDiscarded",params:[{name:"flags",type:"#"},{name:"history_deleted",type:"flags.0?true"},{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:4112735573,predicate:"inputEncryptedFileLocation",params:[{name:"id",type:"long"},{name:"access_hash",type:"long"}],type:"InputFileLocation"},{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:4199484341,predicate:"inputFileBig",params:[{name:"id",type:"long"},{name:"parts",type:"int"},{name:"name",type:"string"}],type:"InputFile"},{id:"767652808",predicate:"inputEncryptedFileBigUploaded",params:[{name:"id",type:"long"},{name:"parts",type:"int"},{name:"key_fingerprint",type:"int"}],type:"InputEncryptedFile"},{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<DcOption>"}],type:"Update"},{id:"1530447553",predicate:"inputMediaUploadedDocument",params:[{name:"flags",type:"#"},{name:"nosound_video",type:"flags.3?true"},{name:"force_file",type:"flags.4?true"},{name:"file",type:"InputFile"},{name:"thumb",type:"flags.2?InputFile"},{name:"mime_type",type:"string"},{name:"attributes",type:"Vector<DocumentAttribute>"},{name:"stickers",type:"flags.0?Vector<InputDocument>"},{name:"ttl_seconds",type:"flags.1?int"}],type:"InputMedia"},{id:"860303448",predicate:"inputMediaDocument",params:[{name:"flags",type:"#"},{name:"id",type:"InputDocument"},{name:"ttl_seconds",type:"flags.0?int"},{name:"query",type:"flags.1?string"}],type:"InputMedia"},{id:2628808919,predicate:"messageMediaDocument",params:[{name:"flags",type:"#"},{name:"document",type:"flags.0?Document"},{name:"ttl_seconds",type:"flags.2?int"}],type:"MessageMedia"},{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: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:"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<PhotoSize>"},{name:"video_thumbs",type:"flags.1?Vector<VideoSize>"},{name:"dc_id",type:"int"},{name:"attributes",type:"Vector<DocumentAttribute>"}],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:3200411887,predicate:"updateNotifySettings",params:[{name:"peer",type:"NotifyPeer"},{name:"notify_settings",type:"PeerNotifySettings"}],type:"Update"},{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:3004386717,predicate:"contacts.found",params:[{name:"my_results",type:"Vector<Peer>"},{name:"results",type:"Vector<Peer>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"contacts.Found"},{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<MessageEntity>"}],type:"Update"},{id:3798942449,predicate:"userStatusRecently",params:[],type:"UserStatus"},{id:"129960444",predicate:"userStatusLastWeek",params:[],type:"UserStatus"},{id:"2011940674",predicate:"userStatusLastMonth",params:[],type:"UserStatus"},{id:3996854058,predicate:"updatePrivacy",params:[{name:"key",type:"PrivacyKey"},{name:"rules",type:"Vector<PrivacyRule>"}],type:"Update"},{id:"1335282456",predicate:"inputPrivacyKeyStatusTimestamp",params:[],type:"InputPrivacyKey"},{id:3157175088,predicate:"privacyKeyStatusTimestamp",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<InputUser>"}],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<InputUser>"}],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<int>"}],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<int>"}],type:"PrivacyRule"},{id:"1352683077",predicate:"account.privacyRules",params:[{name:"rules",type:"Vector<PrivacyRule>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"account.PrivacyRules"},{id:3100684255,predicate:"accountDaysTTL",params:[{name:"days",type:"int"}],type:"AccountDaysTTL"},{id:"314130811",predicate:"updateUserPhone",params:[{name:"user_id",type:"int"},{name:"phone",type:"string"}],type:"Update"},{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:4050950690,predicate:"messages.stickersNotModified",params:[],type:"messages.Stickers"},{id:3831077821,predicate:"messages.stickers",params:[{name:"hash",type:"int"},{name:"stickers",type:"Vector<Document>"}],type:"messages.Stickers"},{id:"313694676",predicate:"stickerPack",params:[{name:"emoticon",type:"string"},{name:"documents",type:"Vector<long>"}],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<StickerSet>"}],type:"messages.AllStickers"},{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:2228326789,predicate:"messages.affectedMessages",params:[{name:"pts",type:"int"},{name:"pts_count",type:"int"}],type:"messages.AffectedMessages"},{id:"2139689491",predicate:"updateWebPage",params:[{name:"webpage",type:"WebPage"},{name:"pts",type:"int"},{name:"pts_count",type:"int"}],type:"Update"},{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<WebPageAttribute>"}],type:"WebPage"},{id:2737690112,predicate:"messageMediaWebPage",params:[{name:"webpage",type:"WebPage"}],type:"MessageMedia"},{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<Authorization>"}],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: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:"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:2743383929,predicate:"receivedNotifyMessage",params:[{name:"id",type:"int"},{name:"flags",type:"int"}],type:"ReceivedNotifyMessage"},{id:"1847917725",predicate:"chatInviteExported",params:[{name:"flags",type:"#"},{name:"revoked",type:"flags.0?true"},{name:"permanent",type:"flags.5?true"},{name:"link",type:"string"},{name:"admin_id",type:"int"},{name:"date",type:"int"},{name:"start_date",type:"flags.4?int"},{name:"expire_date",type:"flags.1?int"},{name:"usage_limit",type:"flags.2?int"},{name:"usage",type:"flags.3?int"}],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<User>"}],type:"ChatInvite"},{id:4171036136,predicate:"messageActionChatJoinedByLink",params:[{name:"inviter_id",type:"int"}],type:"MessageAction"},{id:"1757493555",predicate:"updateReadMessagesContents",params:[{name:"messages",type:"Vector<int>"},{name:"pts",type:"int"},{name:"pts_count",type:"int"}],type:"Update"},{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:"1088567208",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:"thumbs",type:"flags.4?Vector<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<StickerPack>"},{name:"documents",type:"Vector<Document>"}],type:"messages.StickerSet"},{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:"apply_min_photo",type:"flags.25?true"},{name:"fake",type:"flags.26?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<RestrictionReason>"},{name:"bot_inline_placeholder",type:"flags.19?string"},{name:"lang_code",type:"flags.22?string"}],type:"User"},{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<BotCommand>"}],type:"BotInfo"},{id:2734311552,predicate:"keyboardButton",params:[{name:"text",type:"string"}],type:"KeyboardButton"},{id:"2002815875",predicate:"keyboardButtonRow",params:[{name:"buttons",type:"Vector<KeyboardButton>"}],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<KeyboardButtonRow>"}],type:"ReplyMarkup"},{id:"2072935910",predicate:"inputPeerUser",params:[{name:"user_id",type:"int"},{name:"access_hash",type:"long"}],type:"InputPeer"},{id:3626575894,predicate:"inputUser",params:[{name:"user_id",type:"int"},{name:"access_hash",type:"long"}],type:"InputUser"},{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:2417352961,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<MessageEntity>"},{name:"ttl_period",type:"flags.25?int"}],type:"Updates"},{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:3185435954,predicate:"peerChannel",params:[{name:"channel_id",type:"int"}],type:"Peer"},{id:"548253432",predicate:"inputPeerChannel",params:[{name:"channel_id",type:"int"},{name:"access_hash",type:"long"}],type:"InputPeer"},{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:"call_active",type:"flags.23?true"},{name:"call_not_empty",type:"flags.24?true"},{name:"fake",type:"flags.25?true"},{name:"gigagroup",type:"flags.26?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<RestrictionReason>"},{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:"2131196633",predicate:"contacts.resolvedPeer",params:[{name:"peer",type:"Peer"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"contacts.ResolvedPeer"},{id:"1418477459",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_set_location",type:"flags.16?true"},{name:"has_scheduled",type:"flags.19?true"},{name:"can_view_stats",type:"flags.20?true"},{name:"blocked",type:"flags.22?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:"flags.23?ExportedChatInvite"},{name:"bot_info",type:"Vector<BotInfo>"},{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"},{name:"call",type:"flags.21?InputGroupCall"},{name:"ttl_period",type:"flags.24?int"},{name:"pending_suggestions",type:"flags.25?Vector<string>"},{name:"groupcall_default_join_as",type:"flags.26?Peer"}],type:"ChatFull"},{id:"182649427",predicate:"messageRange",params:[{name:"min_id",type:"int"},{name:"max_id",type:"int"}],type:"MessageRange"},{id:"1682413576",predicate:"messages.channelMessages",params:[{name:"flags",type:"#"},{name:"inexact",type:"flags.1?true"},{name:"pts",type:"int"},{name:"count",type:"int"},{name:"offset_id_offset",type:"flags.2?int"},{name:"messages",type:"Vector<Message>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"messages.Messages"},{id:2513611922,predicate:"messageActionChannelCreate",params:[{name:"title",type:"string"}],type:"MessageAction"},{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<int>"},{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:"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<Message>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],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<Message>"},{name:"other_updates",type:"Vector<Update>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],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<MessageRange>"}],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:"1149094475",predicate:"channelParticipantCreator",params:[{name:"flags",type:"#"},{name:"user_id",type:"int"},{name:"admin_rights",type:"ChatAdminRights"},{name:"rank",type:"flags.0?string"}],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:4117684904,predicate:"channels.channelParticipants",params:[{name:"count",type:"int"},{name:"participants",type:"Vector<ChannelParticipant>"},{name:"users",type:"Vector<User>"}],type:"channels.ChannelParticipants"},{id:3503927651,predicate:"channels.channelParticipant",params:[{name:"participant",type:"ChannelParticipant"},{name:"users",type:"Vector<User>"}],type:"channels.ChannelParticipant"},{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: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:"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:2966521435,predicate:"channelParticipantsBots",params:[],type:"ChannelParticipantsFilter"},{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<MessageEntity>"},{name:"min_age_confirm",type:"flags.1?int"}],type:"help.TermsOfService"},{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<long>"}],type:"Update"},{id:"1135492588",predicate:"updateStickerSets",params:[],type:"Update"},{id:3892468898,predicate:"messages.savedGifsNotModified",params:[],type:"messages.SavedGifs"},{id:"772213157",predicate:"messages.savedGifs",params:[{name:"hash",type:"int"},{name:"gifs",type:"Vector<Document>"}],type:"messages.SavedGifs"},{id:2473931806,predicate:"updateSavedGifs",params:[],type:"Update"},{id:"864077702",predicate:"inputBotInlineMessageMediaAuto",params:[{name:"flags",type:"#"},{name:"message",type:"string"},{name:"entities",type:"flags.1?Vector<MessageEntity>"},{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<MessageEntity>"},{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:"1984755728",predicate:"botInlineMessageMediaAuto",params:[{name:"flags",type:"#"},{name:"message",type:"string"},{name:"entities",type:"flags.1?Vector<MessageEntity>"},{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<MessageEntity>"},{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: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<BotInlineResult>"},{name:"cache_time",type:"int"},{name:"users",type:"Vector<User>"}],type:"messages.BotResults"},{id:"1059076315",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:"peer_type",type:"flags.1?InlineQueryPeerType"},{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:"1358283666",predicate:"inputMessagesFilterVoice",params:[],type:"MessagesFilter"},{id:"928101534",predicate:"inputMessagesFilterMusic",params:[],type:"MessagesFilter"},{id:3187344422,predicate:"inputPrivacyKeyChatInvite",params:[],type:"InputPrivacyKey"},{id:"1343122938",predicate:"privacyKeyChatInvite",params:[],type:"PrivacyKey"},{id:"1571494644",predicate:"exportedMessageLink",params:[{name:"link",type:"string"},{name:"html",type:"string"}],type:"ExportedMessageLink"},{id:"1601666510",predicate:"messageFwdHeader",params:[{name:"flags",type:"#"},{name:"imported",type:"flags.7?true"},{name:"from_id",type:"flags.0?Peer"},{name:"from_name",type:"flags.5?string"},{name:"date",type:"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:"457133559",predicate:"updateEditChannelMessage",params:[{name:"message",type:"Message"},{name:"pts",type:"int"},{name:"pts_count",type:"int"}],type:"Update"},{id:2495428845,predicate:"messageActionPinMessage",params:[],type:"MessageAction"},{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:"629866245",predicate:"keyboardButtonUrl",params:[{name:"text",type:"string"},{name:"url",type:"string"}],type:"KeyboardButton"},{id:"901503851",predicate:"keyboardButtonCallback",params:[{name:"flags",type:"#"},{name:"requires_password",type:"flags.0?true"},{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:"1218642516",predicate:"replyInlineMarkup",params:[{name:"rows",type:"Vector<KeyboardButtonRow>"}],type:"ReplyMarkup"},{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: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:"649453030",predicate:"messages.messageEditData",params:[{name:"flags",type:"#"},{name:"caption",type:"flags.0?true"}],type:"messages.MessageEditData"},{id:3825430691,predicate:"updateEditMessage",params:[{name:"message",type:"Message"},{name:"pts",type:"int"},{name:"pts_count",type:"int"}],type:"Update"},{id:2526190213,predicate:"inputBotInlineMessageMediaGeo",params:[{name:"flags",type:"#"},{name:"geo_point",type:"InputGeoPoint"},{name:"heading",type:"flags.0?int"},{name:"period",type:"flags.1?int"},{name:"proximity_notification_radius",type:"flags.3?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:"85477117",predicate:"botInlineMessageMediaGeo",params:[{name:"flags",type:"#"},{name:"geo",type:"GeoPoint"},{name:"heading",type:"flags.0?int"},{name:"period",type:"flags.1?int"},{name:"proximity_notification_radius",type:"flags.3?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: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:"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:2299280777,predicate:"inputBotInlineMessageID",params:[{name:"dc_id",type:"int"},{name:"id",type:"long"},{name:"access_hash",type:"long"}],type:"InputBotInlineMessageID"},{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:"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<Dialog>"},{name:"messages",type:"Vector<Message>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"},{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:4219683473,predicate:"topPeerCategoryPeers",params:[{name:"category",type:"TopPeerCategory"},{name:"count",type:"int"},{name:"peers",type:"Vector<TopPeer>"}],type:"TopPeerCategoryPeers"},{id:3727060725,predicate:"contacts.topPeersNotModified",params:[],type:"contacts.TopPeers"},{id:"1891070632",predicate:"contacts.topPeers",params:[{name:"categories",type:"Vector<TopPeerCategoryPeers>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"contacts.TopPeers"},{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:"975236280",predicate:"inputMessagesFilterChatPhotos",params:[],type:"MessagesFilter"},{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:"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<MessageEntity>"},{name:"date",type:"int"}],type:"DraftMessage"},{id:2679813636,predicate:"messageActionHistoryClear",params:[],type:"MessageAction"},{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<StickerSetCovered>"},{name:"unread",type:"Vector<long>"}],type:"messages.FeaturedStickers"},{id:"1461528386",predicate:"updateReadFeaturedStickers",params:[],type:"Update"},{id:"186120336",predicate:"messages.recentStickersNotModified",params:[],type:"messages.RecentStickers"},{id:"586395571",predicate:"messages.recentStickers",params:[{name:"hash",type:"int"},{name:"packs",type:"Vector<StickerPack>"},{name:"stickers",type:"Vector<Document>"},{name:"dates",type:"Vector<int>"}],type:"messages.RecentStickers"},{id:2588027936,predicate:"updateRecentStickers",params:[],type:"Update"},{id:"1338747336",predicate:"messages.archivedStickers",params:[{name:"count",type:"int"},{name:"sets",type:"Vector<StickerSetCovered>"}],type:"messages.ArchivedStickers"},{id:"946083368",predicate:"messages.stickerSetInstallResultSuccess",params:[],type:"messages.StickerSetInstallResult"},{id:"904138920",predicate:"messages.stickerSetInstallResultArchive",params:[{name:"sets",type:"Vector<StickerSetCovered>"}],type:"messages.StickerSetInstallResult"},{id:"1678812626",predicate:"stickerSetCovered",params:[{name:"set",type:"StickerSet"},{name:"cover",type:"Document"}],type:"StickerSetCovered"},{id:2720652550,predicate:"updateConfig",params:[],type:"Update"},{id:"861169551",predicate:"updatePtsChanged",params:[],type:"Update"},{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:"872932635",predicate:"stickerSetMultiCovered",params:[{name:"set",type:"StickerSet"},{name:"covers",type:"Vector<Document>"}],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:2550256375,predicate:"documentAttributeHasStickers",params:[],type:"DocumentAttribute"},{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:"1336154098",predicate:"inputBotInlineResultGame",params:[{name:"id",type:"string"},{name:"short_name",type:"string"},{name:"send_message",type:"InputBotInlineMessage"}],type:"InputBotInlineResult"},{id:"1262639204",predicate:"inputBotInlineMessageGame",params:[{name:"flags",type:"#"},{name:"reply_markup",type:"flags.2?ReplyMarkup"}],type:"InputBotInlineMessage"},{id:4256272392,predicate:"messageMediaGame",params:[{name:"game",type:"Game"}],type:"MessageMedia"},{id:3544138739,predicate:"inputMediaGame",params:[{name:"id",type:"InputGame"}],type:"InputMedia"},{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:"1358175439",predicate:"keyboardButtonGame",params:[{name:"text",type:"string"}],type:"KeyboardButton"},{id:2460428406,predicate:"messageActionGameScore",params:[{name:"game_id",type:"long"},{name:"score",type:"int"}],type:"MessageAction"},{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<HighScore>"},{name:"users",type:"Vector<User>"}],type:"messages.HighScores"},{id:"1258196845",predicate:"updates.differenceTooLong",params:[{name:"pts",type:"int"}],type:"updates.Difference"},{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:2631405892,predicate:"messages.chatsSlice",params:[{name:"count",type:"int"},{name:"chats",type:"Vector<Chat>"}],type:"messages.Chats"},{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<RichText>"}],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<PageListItem>"}],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<PageBlock>"},{name:"caption",type:"PageCaption"}],type:"PageBlock"},{id:"1705048653",predicate:"pageBlockCollage",params:[{name:"items",type:"Vector<PageBlock>"},{name:"caption",type:"PageCaption"}],type:"PageBlock"},{id:"52401552",predicate:"pageBlockSlideshow",params:[{name:"items",type:"Vector<PageBlock>"},{name:"caption",type:"PageCaption"}],type:"PageBlock"},{id:"1930545681",predicate:"webPageNotModified",params:[{name:"flags",type:"#"},{name:"cached_page_views",type:"flags.0?int"}],type:"WebPage"},{id:4206550111,predicate:"inputPrivacyKeyPhoneCall",params:[],type:"InputPrivacyKey"},{id:"1030105979",predicate:"privacyKeyPhoneCall",params:[],type:"PrivacyKey"},{id:3714748232,predicate:"sendMessageGamePlayAction",params:[],type:"SendMessageAction"},{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:"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<DialogPeer>"}],type:"Update"},{id:"2104790276",predicate:"dataJSON",params:[{name:"data",type:"string"}],type:"DataJSON"},{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: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<LabeledPrice>"}],type:"Invoice"},{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:3926049406,predicate:"paymentCharge",params:[{name:"id",type:"string"},{name:"provider_charge_id",type:"string"}],type:"PaymentCharge"},{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: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:"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:2950250427,predicate:"keyboardButtonBuy",params:[{name:"text",type:"string"}],type:"KeyboardButton"},{id:"1080663248",predicate:"messageActionPaymentSent",params:[{name:"currency",type:"string"},{name:"total_amount",type:"long"}],type:"MessageAction"},{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<DocumentAttribute>"}],type:"WebDocument"},{id:2616017741,predicate:"inputWebDocument",params:[{name:"url",type:"string"},{name:"size",type:"int"},{name:"mime_type",type:"string"},{name:"attributes",type:"Vector<DocumentAttribute>"}],type:"InputWebDocument"},{id:3258570374,predicate:"inputWebFileLocation",params:[{name:"url",type:"string"},{name:"access_hash",type:"long"}],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<User>"}],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<ShippingOption>"}],type:"payments.ValidatedRequestedInfo"},{id:"1314881805",predicate:"payments.paymentResult",params:[{name:"updates",type:"Updates"}],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<User>"}],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: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<LabeledPrice>"}],type:"ShippingOption"},{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: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:2869914398,predicate:"updatePhoneCall",params:[{name:"phone_call",type:"PhoneCall"}],type:"Update"},{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.6?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.6?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.6?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:"video",type:"flags.6?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<PhoneConnection>"},{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.6?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<string>"}],type:"PhoneCallProtocol"},{id:3968000320,predicate:"phone.phoneCall",params:[{name:"phone_call",type:"PhoneCall"},{name:"users",type:"Vector<User>"}],type:"phone.PhoneCall"},{id:2160695144,predicate:"inputMessagesFilterPhoneCalls",params:[{name:"flags",type:"#"},{name:"missed",type:"flags.0?true"}],type:"MessagesFilter"},{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:"2054952868",predicate:"inputMessagesFilterRoundVoice",params:[],type:"MessagesFilter"},{id:3041516115,predicate:"inputMessagesFilterRoundVideo",params:[],type:"MessagesFilter"},{id:2297593788,predicate:"sendMessageRecordRoundAction",params:[],type:"SendMessageAction"},{id:"608050278",predicate:"sendMessageUploadRoundAction",params:[{name:"progress",type:"int"}],type:"SendMessageAction"},{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<FileHash>"}],type:"upload.File"},{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<CdnPublicKey>"}],type:"CdnConfig"},{id:4011282869,predicate:"pageBlockChannel",params:[{name:"channel",type:"Chat"}],type:"PageBlock"},{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<LangPackString>"}],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:"1180041828",predicate:"updateLangPackTooLong",params:[{name:"lang_code",type:"string"}],type:"Update"},{id:"1442983757",predicate:"updateLangPack",params:[{name:"difference",type:"LangPackDifference"}],type:"Update"},{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:"338142689",predicate:"channelParticipantsBanned",params:[{name:"q",type:"string"}],type:"ChannelParticipantsFilter"},{id:"106343499",predicate:"channelParticipantsSearch",params:[{name:"q",type:"string"}],type:"ChannelParticipantsFilter"},{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:"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<ChannelAdminLogEvent>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],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"},{name:"group_call",type:"flags.14?true"},{name:"invites",type:"flags.15?true"}],type:"ChannelAdminLogEventsFilter"},{id:"511092620",predicate:"topPeerCategoryPhoneCalls",params:[],type:"TopPeerCategory"},{id:2151899626,predicate:"pageBlockAudio",params:[{name:"audio_id",type:"long"},{name:"caption",type:"PageCaption"}],type:"PageBlock"},{id:"1558266229",predicate:"popularContact",params:[{name:"client_id",type:"long"},{name:"importers",type:"int"}],type:"PopularContact"},{id:"1200788123",predicate:"messageActionScreenshotTaken",params:[],type:"MessageAction"},{id:2660214483,predicate:"messages.favedStickersNotModified",params:[],type:"messages.FavedStickers"},{id:4085198614,predicate:"messages.favedStickers",params:[{name:"hash",type:"int"},{name:"packs",type:"Vector<StickerPack>"},{name:"stickers",type:"Vector<Document>"}],type:"messages.FavedStickers"},{id:3843135853,predicate:"updateFavedStickers",params:[],type:"Update"},{id:2307472197,predicate:"updateChannelReadMessagesContents",params:[{name:"channel_id",type:"int"},{name:"messages",type:"Vector<int>"}],type:"Update"},{id:3254314650,predicate:"inputMessagesFilterMyMentions",params:[],type:"MessagesFilter"},{id:"1887741886",predicate:"updateContactsReset",params:[],type:"Update"},{id:2982398631,predicate:"channelAdminLogEventActionChangeStickerSet",params:[{name:"prev_stickerset",type:"InputStickerSet"},{name:"new_stickerset",type:"InputStickerSet"}],type:"ChannelAdminLogEventAction"},{id:4209418070,predicate:"messageActionCustomAction",params:[{name:"message",type:"string"}],type:"MessageAction"},{id:"178373535",predicate:"inputPaymentCredentialsApplePay",params:[{name:"payment_data",type:"DataJSON"}],type:"InputPaymentCredentials"},{id:3875695885,predicate:"inputMessagesFilterGeo",params:[],type:"MessagesFilter"},{id:3764575107,predicate:"inputMessagesFilterContacts",params:[],type:"MessagesFilter"},{id:"1893427255",predicate:"updateChannelAvailableMessages",params:[{name:"channel_id",type:"int"},{name:"available_min_id",type:"int"}],type:"Update"},{id:"1599903217",predicate:"channelAdminLogEventActionTogglePreHistoryHidden",params:[{name:"new_value",type:"Bool"}],type:"ChannelAdminLogEventAction"},{id:2535434307,predicate:"inputMediaGeoLive",params:[{name:"flags",type:"#"},{name:"stopped",type:"flags.0?true"},{name:"geo_point",type:"InputGeoPoint"},{name:"heading",type:"flags.2?int"},{name:"period",type:"flags.1?int"},{name:"proximity_notification_radius",type:"flags.3?int"}],type:"InputMedia"},{id:3108030054,predicate:"messageMediaGeoLive",params:[{name:"flags",type:"#"},{name:"geo",type:"GeoPoint"},{name:"heading",type:"flags.0?int"},{name:"period",type:"int"},{name:"proximity_notification_radius",type:"flags.1?int"}],type:"MessageMedia"},{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<RecentMeUrl>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"help.RecentMeUrls"},{id:4028055529,predicate:"channels.channelParticipantsNotModified",params:[],type:"channels.ChannelParticipants"},{id:"1951620897",predicate:"messages.messagesNotModified",params:[{name:"count",type:"int"}],type:"messages.Messages"},{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<MessageEntity>"}],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<WebAuthorization>"},{name:"users",type:"Vector<User>"}],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: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:2884218878,predicate:"messageActionBotAllowed",params:[{name:"domain",type:"string"}],type:"MessageAction"},{id:4239064759,predicate:"inputDialogPeer",params:[{name:"peer",type:"InputPeer"}],type:"InputDialogPeer"},{id:3849174789,predicate:"dialogPeer",params:[{name:"peer",type:"Peer"}],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<StickerSetCovered>"}],type:"messages.FoundStickerSets"},{id:"1648543603",predicate:"fileHash",params:[{name:"offset",type:"int"},{name:"limit",type:"int"},{name:"hash",type:"bytes"}],type:"FileHash"},{id:4190682310,predicate:"webDocumentNoProxy",params:[{name:"url",type:"string"},{name:"size",type:"int"},{name:"mime_type",type:"string"},{name:"attributes",type:"Vector<DocumentAttribute>"}],type:"WebDocument"},{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:3418877480,predicate:"inputSecureFileLocation",params:[{name:"id",type:"long"},{name:"access_hash",type:"long"}],type:"InputFileLocation"},{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<SecureFile>"},{name:"files",type:"flags.4?Vector<SecureFile>"},{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<InputSecureFile>"},{name:"files",type:"flags.4?Vector<InputSecureFile>"},{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<bytes>"},{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<SecureRequiredType>"},{name:"values",type:"Vector<SecureValue>"},{name:"errors",type:"Vector<SecureValueError>"},{name:"users",type:"Vector<User>"},{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:"455635795",predicate:"messageActionSecureValuesSentMe",params:[{name:"values",type:"Vector<SecureValue>"},{name:"credentials",type:"SecureCredentialsEncrypted"}],type:"MessageAction"},{id:3646710100,predicate:"messageActionSecureValuesSent",params:[{name:"types",type:"Vector<SecureValueType>"}],type:"MessageAction"},{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<MessageEntity>"}],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:"700340377",predicate:"inputTakeoutFileLocation",params:[],type:"InputFileLocation"},{id:3781450179,predicate:"updateDialogUnreadMark",params:[{name:"flags",type:"#"},{name:"unread",type:"flags.0?true"},{name:"peer",type:"DialogPeer"}],type:"Update"},{id:4041467286,predicate:"messages.dialogsNotModified",params:[{name:"count",type:"int"}],type:"messages.Dialogs"},{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:3039597469,predicate:"contacts.topPeersDisabled",params:[],type:"contacts.TopPeers"},{id:2609510714,predicate:"inputReportReasonCopyright",params:[],type:"ReportReason"},{id:3562713238,predicate:"passwordKdfAlgoUnknown",params:[],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:"982592842",predicate:"passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow",params:[{name:"salt1",type:"bytes"},{name:"salt2",type:"bytes"},{name:"g",type:"int"},{name:"p",type:"bytes"}],type:"PasswordKdfAlgo"},{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: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<bytes>"},{name:"text",type:"string"}],type:"SecureValueError"},{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<SecureRequiredType>"}],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<JSONValue>"}],type:"JSONValue"},{id:2579616925,predicate:"jsonObject",params:[{name:"value",type:"Vector<JSONObjectValue>"}],type:"JSONValue"},{id:2983951486,predicate:"inputNotifyBroadcasts",params:[],type:"InputNotifyPeer"},{id:3591563503,predicate:"notifyBroadcasts",params:[],type:"NotifyPeer"},{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:"504660880",predicate:"pageBlockKicker",params:[{name:"text",type:"RichText"}],type:"PageBlock"},{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<PageTableCell>"}],type:"PageTableRow"},{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<PageTableRow>"}],type:"PageBlock"},{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<PageBlock>"}],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<PageBlock>"}],type:"PageListOrderedItem"},{id:2592793057,predicate:"pageBlockOrderedList",params:[{name:"items",type:"Vector<PageListOrderedItem>"}],type:"PageBlock"},{id:"1987480557",predicate:"pageBlockDetails",params:[{name:"flags",type:"#"},{name:"open",type:"flags.0?true"},{name:"blocks",type:"Vector<PageBlock>"},{name:"title",type:"RichText"}],type:"PageBlock"},{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:"370236054",predicate:"pageBlockRelatedArticles",params:[{name:"title",type:"RichText"},{name:"articles",type:"Vector<PageRelatedArticle>"}],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: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<PageBlock>"},{name:"photos",type:"Vector<Photo>"},{name:"documents",type:"Vector<Document>"},{name:"views",type:"flags.3?int"}],type:"Page"},{id:3684593874,predicate:"inputPrivacyKeyPhoneP2P",params:[],type:"InputPrivacyKey"},{id:"961092808",predicate:"privacyKeyPhoneP2P",params:[],type:"PrivacyKey"},{id:"894777186",predicate:"textAnchor",params:[{name:"text",type:"RichText"},{name:"name",type:"string"}],type:"RichText"},{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<MessageEntity>"},{name:"author",type:"string"},{name:"date",type:"int"}],type:"help.UserInfo"},{id:4092747638,predicate:"messageActionContactSignUp",params:[],type:"MessageAction"},{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:"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<PollAnswer>"},{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<PollAnswerVoters>"},{name:"total_voters",type:"flags.2?int"},{name:"recent_voters",type:"flags.3?Vector<int>"},{name:"solution",type:"flags.4?string"},{name:"solution_entities",type:"flags.4?Vector<MessageEntity>"}],type:"PollResults"},{id:"261416433",predicate:"inputMediaPoll",params:[{name:"flags",type:"#"},{name:"poll",type:"Poll"},{name:"correct_answers",type:"flags.0?Vector<bytes>"},{name:"solution",type:"flags.1?string"},{name:"solution_entities",type:"flags.1?Vector<MessageEntity>"}],type:"InputMedia"},{id:"1272375192",predicate:"messageMediaPoll",params:[{name:"poll",type:"Poll"},{name:"results",type:"PollResults"}],type:"MessageMedia"},{id:4030849616,predicate:"chatOnlines",params:[{name:"onlines",type:"int"}],type:"ChatOnlines"},{id:"1202287072",predicate:"statsURL",params:[{name:"url",type:"string"}],type:"StatsURL"},{id:3769678894,predicate:"photoStrippedSize",params:[{name:"type",type:"string"},{name:"bytes",type:"bytes"}],type:"PhotoSize"},{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"},{name:"anonymous",type:"flags.10?true"},{name:"manage_call",type:"flags.11?true"},{name:"other",type:"flags.12?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:"1421875280",predicate:"updateChatDefaultBannedRights",params:[{name:"peer",type:"Peer"},{name:"default_banned_rights",type:"ChatBannedRights"},{name:"version",type:"int"}],type:"Update"},{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:3144345741,predicate:"channelParticipantsContacts",params:[{name:"q",type:"string"}],type:"ChannelParticipantsFilter"},{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:"471437699",predicate:"account.wallPapersNotModified",params:[],type:"account.WallPapers"},{id:"1881892265",predicate:"account.wallPapers",params:[{name:"hash",type:"int"},{name:"wallpapers",type:"Vector<WallPaper>"}],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<string>"}],type:"EmojiKeyword"},{id:"594408994",predicate:"emojiKeywordDeleted",params:[{name:"keyword",type:"string"},{name:"emoticons",type:"Vector<string>"}],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<EmojiKeyword>"}],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:2765966344,predicate:"inputPrivacyKeyForwards",params:[],type:"InputPrivacyKey"},{id:"1777096355",predicate:"privacyKeyForwards",params:[],type:"PrivacyKey"},{id:"1461304012",predicate:"inputPrivacyKeyProfilePhoto",params:[],type:"InputPrivacyKey"},{id:2517966829,predicate:"privacyKeyProfilePhoto",params:[],type:"PrivacyKey"},{id:3162490573,predicate:"fileLocationToBeDeprecated",params:[{name:"volume_id",type:"long"},{name:"local_id",type:"int"}],type:"FileLocation"},{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: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:"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:"1684014375",predicate:"inputDialogPeerFolder",params:[{name:"folder_id",type:"int"}],type:"InputDialogPeer"},{id:"1363483106",predicate:"dialogPeerFolder",params:[{name:"folder_id",type:"int"}],type:"DialogPeer"},{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:"422972864",predicate:"updateFolderPeers",params:[{name:"folder_peers",type:"Vector<FolderPeer>"},{name:"pts",type:"int"},{name:"pts_count",type:"int"}],type:"Update"},{id:"756118935",predicate:"inputUserFromMessage",params:[{name:"peer",type:"InputPeer"},{name:"msg_id",type:"int"},{name:"user_id",type:"int"}],type:"InputUser"},{id:"707290417",predicate:"inputChannelFromMessage",params:[{name:"peer",type:"InputPeer"},{name:"msg_id",type:"int"},{name:"channel_id",type:"int"}],type:"InputChannel"},{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:"55761658",predicate:"inputPrivacyKeyPhoneNumber",params:[],type:"InputPrivacyKey"},{id:3516589165,predicate:"privacyKeyPhoneNumber",params:[],type:"PrivacyKey"},{id:2822794409,predicate:"topPeerCategoryForwardUsers",params:[],type:"TopPeerCategory"},{id:4226728176,predicate:"topPeerCategoryForwardChats",params:[],type:"TopPeerCategory"},{id:2725218331,predicate:"channelAdminLogEventActionChangeLinkedChat",params:[{name:"prev_value",type:"int"},{name:"new_value",type:"int"}],type:"ChannelAdminLogEventAction"},{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:"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: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:"1283572154",predicate:"inputPrivacyValueAllowChatParticipants",params:[{name:"chats",type:"Vector<int>"}],type:"InputPrivacyRule"},{id:3626197935,predicate:"inputPrivacyValueDisallowChatParticipants",params:[{name:"chats",type:"Vector<int>"}],type:"InputPrivacyRule"},{id:"415136107",predicate:"privacyValueAllowChatParticipants",params:[{name:"chats",type:"Vector<int>"}],type:"PrivacyRule"},{id:2897086096,predicate:"privacyValueDisallowChatParticipants",params:[{name:"chats",type:"Vector<int>"}],type:"PrivacyRule"},{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:"1786671974",predicate:"updatePeerSettings",params:[{name:"peer",type:"Peer"},{name:"settings",type:"PeerSettings"}],type:"Update"},{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:3031420848,predicate:"updatePeerLocated",params:[{name:"peers",type:"Vector<PeerLocated>"}],type:"Update"},{id:"241923758",predicate:"channelAdminLogEventActionChangeLocation",params:[{name:"prev_value",type:"ChannelLocation"},{name:"new_value",type:"ChannelLocation"}],type:"ChannelAdminLogEventAction"},{id:3688169197,predicate:"inputReportReasonGeoIrrelevant",params:[],type:"ReportReason"},{id:"1401984889",predicate:"channelAdminLogEventActionToggleSlowMode",params:[{name:"prev_value",type:"int"},{name:"new_value",type:"int"}],type:"ChannelAdminLogEventAction"},{id:"1148485274",predicate:"auth.authorizationSignUpRequired",params:[{name:"flags",type:"#"},{name:"terms_of_service",type:"flags.0?help.TermsOfService"}],type:"auth.Authorization"},{id:3628142905,predicate:"payments.paymentVerificationNeeded",params:[{name:"url",type:"string"}],type:"payments.PaymentResult"},{id:"42402760",predicate:"inputStickerSetAnimatedEmoji",params:[],type:"InputStickerSet"},{id:"967122427",predicate:"updateNewScheduledMessage",params:[{name:"message",type:"Message"}],type:"Update"},{id:2424728814,predicate:"updateDeleteScheduledMessages",params:[{name:"peer",type:"Peer"},{name:"messages",type:"Vector<int>"}],type:"Update"},{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<Theme>"}],type:"account.Themes"},{id:2182544291,predicate:"updateTheme",params:[{name:"theme",type:"Theme"}],type:"Update"},{id:3508640733,predicate:"inputPrivacyKeyAddedByPhone",params:[],type:"InputPrivacyKey"},{id:"1124062251",predicate:"privacyKeyAddedByPhone",params:[],type:"PrivacyKey"},{id:2267003193,predicate:"updateGeoLiveViewed",params:[{name:"peer",type:"Peer"},{name:"msg_id",type:"int"}],type:"Update"},{id:"1448076945",predicate:"updateLoginToken",params:[],type:"Update"},{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<int>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],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:2217196460,predicate:"inputWallPaperNoFile",params:[],type:"InputWallPaper"},{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: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<Document>"},{name:"settings",type:"flags.1?ThemeSettings"}],type:"WebPageAttribute"},{id:"1123585836",predicate:"updateMessagePollVote",params:[{name:"poll_id",type:"long"},{name:"user_id",type:"int"},{name:"options",type:"Vector<bytes>"}],type:"Update"},{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<bytes>"},{name:"date",type:"int"}],type:"MessageUserVote"},{id:"136574537",predicate:"messages.votesList",params:[{name:"flags",type:"#"},{name:"count",type:"int"},{name:"votes",type:"Vector<MessageUserVote>"},{name:"users",type:"Vector<User>"},{name:"next_offset",type:"flags.0?string"}],type:"messages.VotesList"},{id:3150401885,predicate:"keyboardButtonRequestPoll",params:[{name:"flags",type:"#"},{name:"quiz",type:"flags.0?Bool"},{name:"text",type:"string"}],type:"KeyboardButton"},{id:"1981704948",predicate:"messageEntityBankCard",params:[{name:"offset",type:"int"},{name:"length",type:"int"}],type:"MessageEntity"},{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<BankCardOpenUrl>"}],type:"payments.BankCardData"},{id:4176226379,predicate:"peerSelfLocated",params:[{name:"expires",type:"int"}],type:"PeerLocated"},{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<InputPeer>"},{name:"include_peers",type:"Vector<InputPeer>"},{name:"exclude_peers",type:"Vector<InputPeer>"}],type:"DialogFilter"},{id:"2004110666",predicate:"dialogFilterSuggested",params:[{name:"filter",type:"DialogFilter"},{name:"description",type:"string"}],type:"DialogFilterSuggested"},{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<int>"}],type:"Update"},{id:"889491791",predicate:"updateDialogFilters",params:[],type:"Update"},{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<MessageInteractionCounters>"}],type:"stats.BroadcastStats"},{id:3866083195,predicate:"inputMediaDice",params:[{name:"emoticon",type:"string"}],type:"InputMedia"},{id:"1065280907",predicate:"messageMediaDice",params:[{name:"value",type:"int"},{name:"emoticon",type:"string"}],type:"MessageMedia"},{id:3867103758,predicate:"inputStickerSetDice",params:[{name:"emoticon",type:"string"}],type:"InputStickerSet"},{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<Chat>"},{name:"users",type:"Vector<User>"},{name:"psa_type",type:"flags.1?string"},{name:"psa_message",type:"flags.2?string"}],type:"help.PromoData"},{id:3895575894,predicate:"videoSize",params:[{name:"flags",type:"#"},{name:"type",type:"string"},{name:"location",type:"FileLocation"},{name:"w",type:"int"},{name:"h",type:"int"},{name:"size",type:"int"},{name:"video_start_ts",type:"flags.0?double"}],type:"VideoSize"},{id:"643940105",predicate:"updatePhoneCallSignalingData",params:[{name:"phone_call_id",type:"long"},{name:"data",type:"bytes"}],type:"Update"},{id:"1634294960",predicate:"chatInvitePeek",params:[{name:"chat",type:"Chat"},{name:"expires",type:"int"}],type:"ChatInvite"},{id:"418631927",predicate:"statsGroupTopPoster",params:[{name:"user_id",type:"int"},{name:"messages",type:"int"},{name:"avg_chars",type:"int"}],type:"StatsGroupTopPoster"},{id:"1611985938",predicate:"statsGroupTopAdmin",params:[{name:"user_id",type:"int"},{name:"deleted",type:"int"},{name:"kicked",type:"int"},{name:"banned",type:"int"}],type:"StatsGroupTopAdmin"},{id:"831924812",predicate:"statsGroupTopInviter",params:[{name:"user_id",type:"int"},{name:"invitations",type:"int"}],type:"StatsGroupTopInviter"},{id:4018141462,predicate:"stats.megagroupStats",params:[{name:"period",type:"StatsDateRangeDays"},{name:"members",type:"StatsAbsValueAndPrev"},{name:"messages",type:"StatsAbsValueAndPrev"},{name:"viewers",type:"StatsAbsValueAndPrev"},{name:"posters",type:"StatsAbsValueAndPrev"},{name:"growth_graph",type:"StatsGraph"},{name:"members_graph",type:"StatsGraph"},{name:"new_members_by_source_graph",type:"StatsGraph"},{name:"languages_graph",type:"StatsGraph"},{name:"messages_graph",type:"StatsGraph"},{name:"actions_graph",type:"StatsGraph"},{name:"top_hours_graph",type:"StatsGraph"},{name:"weekdays_graph",type:"StatsGraph"},{name:"top_posters",type:"Vector<StatsGroupTopPoster>"},{name:"top_admins",type:"Vector<StatsGroupTopAdmin>"},{name:"top_inviters",type:"Vector<StatsGroupTopInviter>"},{name:"users",type:"Vector<User>"}],type:"stats.MegagroupStats"},{id:3198350372,predicate:"globalPrivacySettings",params:[{name:"flags",type:"#"},{name:"archive_and_mute_new_noncontact_peers",type:"flags.0?Bool"}],type:"GlobalPrivacySettings"},{id:"1667228533",predicate:"phoneConnectionWebrtc",params:[{name:"flags",type:"#"},{name:"turn",type:"flags.0?true"},{name:"stun",type:"flags.1?true"},{name:"id",type:"long"},{name:"ip",type:"string"},{name:"ipv6",type:"string"},{name:"port",type:"int"},{name:"username",type:"string"},{name:"password",type:"string"}],type:"PhoneConnection"},{id:"1107543535",predicate:"help.countryCode",params:[{name:"flags",type:"#"},{name:"country_code",type:"string"},{name:"prefixes",type:"flags.0?Vector<string>"},{name:"patterns",type:"flags.1?Vector<string>"}],type:"help.CountryCode"},{id:3280440867,predicate:"help.country",params:[{name:"flags",type:"#"},{name:"hidden",type:"flags.0?true"},{name:"iso2",type:"string"},{name:"default_name",type:"string"},{name:"name",type:"flags.1?string"},{name:"country_codes",type:"Vector<help.CountryCode>"}],type:"help.Country"},{id:2479628082,predicate:"help.countriesListNotModified",params:[],type:"help.CountriesList"},{id:2278585758,predicate:"help.countriesList",params:[{name:"countries",type:"Vector<help.Country>"},{name:"hash",type:"int"}],type:"help.CountriesList"},{id:"1163625789",predicate:"messageViews",params:[{name:"flags",type:"#"},{name:"views",type:"flags.0?int"},{name:"forwards",type:"flags.1?int"},{name:"replies",type:"flags.2?MessageReplies"}],type:"MessageViews"},{id:"1854571743",predicate:"updateChannelMessageForwards",params:[{name:"channel_id",type:"int"},{name:"id",type:"int"},{name:"forwards",type:"int"}],type:"Update"},{id:"1520986705",predicate:"photoSizeProgressive",params:[{name:"type",type:"string"},{name:"location",type:"FileLocation"},{name:"w",type:"int"},{name:"h",type:"int"},{name:"sizes",type:"Vector<int>"}],type:"PhotoSize"},{id:3066361155,predicate:"messages.messageViews",params:[{name:"views",type:"Vector<MessageViews>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"messages.MessageViews"},{id:"482860628",predicate:"updateReadChannelDiscussionInbox",params:[{name:"flags",type:"#"},{name:"channel_id",type:"int"},{name:"top_msg_id",type:"int"},{name:"read_max_id",type:"int"},{name:"broadcast_id",type:"flags.0?int"},{name:"broadcast_post",type:"flags.0?int"}],type:"Update"},{id:"1178116716",predicate:"updateReadChannelDiscussionOutbox",params:[{name:"channel_id",type:"int"},{name:"top_msg_id",type:"int"},{name:"read_max_id",type:"int"}],type:"Update"},{id:4124938141,predicate:"messages.discussionMessage",params:[{name:"flags",type:"#"},{name:"messages",type:"Vector<Message>"},{name:"max_id",type:"flags.0?int"},{name:"read_inbox_max_id",type:"flags.1?int"},{name:"read_outbox_max_id",type:"flags.2?int"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"messages.DiscussionMessage"},{id:2799007587,predicate:"messageReplyHeader",params:[{name:"flags",type:"#"},{name:"reply_to_msg_id",type:"int"},{name:"reply_to_peer_id",type:"flags.0?Peer"},{name:"reply_to_top_id",type:"flags.1?int"}],type:"MessageReplyHeader"},{id:"1093204652",predicate:"messageReplies",params:[{name:"flags",type:"#"},{name:"comments",type:"flags.0?true"},{name:"replies",type:"int"},{name:"replies_pts",type:"int"},{name:"recent_repliers",type:"flags.1?Vector<Peer>"},{name:"channel_id",type:"flags.0?int"},{name:"max_id",type:"flags.2?int"},{name:"read_max_id",type:"flags.3?int"}],type:"MessageReplies"},{id:"610945826",predicate:"updatePeerBlocked",params:[{name:"peer_id",type:"Peer"},{name:"blocked",type:"Bool"}],type:"Update"},{id:3908927508,predicate:"peerBlocked",params:[{name:"peer_id",type:"Peer"},{name:"date",type:"int"}],type:"PeerBlocked"},{id:"1796675352",predicate:"updateChannelUserTyping",params:[{name:"flags",type:"#"},{name:"channel_id",type:"int"},{name:"top_msg_id",type:"flags.0?int"},{name:"from_id",type:"Peer"},{name:"action",type:"SendMessageAction"}],type:"Update"},{id:2902071934,predicate:"inputMessageCallbackQuery",params:[{name:"id",type:"int"},{name:"query_id",type:"long"}],type:"InputMessage"},{id:3284564331,predicate:"channelParticipantLeft",params:[{name:"user_id",type:"int"}],type:"ChannelParticipant"},{id:3763035371,predicate:"channelParticipantsMentions",params:[{name:"flags",type:"#"},{name:"q",type:"flags.0?string"},{name:"top_msg_id",type:"flags.1?int"}],type:"ChannelParticipantsFilter"},{id:3984976565,predicate:"updatePinnedMessages",params:[{name:"flags",type:"#"},{name:"pinned",type:"flags.0?true"},{name:"peer",type:"Peer"},{name:"messages",type:"Vector<int>"},{name:"pts",type:"int"},{name:"pts_count",type:"int"}],type:"Update"},{id:2240317323,predicate:"updatePinnedChannelMessages",params:[{name:"flags",type:"#"},{name:"pinned",type:"flags.0?true"},{name:"channel_id",type:"int"},{name:"messages",type:"Vector<int>"},{name:"pts",type:"int"},{name:"pts_count",type:"int"}],type:"Update"},{id:"464520273",predicate:"inputMessagesFilterPinned",params:[],type:"MessagesFilter"},{id:2308567701,predicate:"stats.messageStats",params:[{name:"views_graph",type:"StatsGraph"}],type:"stats.MessageStats"},{id:2564871831,predicate:"messageActionGeoProximityReached",params:[{name:"from_id",type:"Peer"},{name:"to_id",type:"Peer"},{name:"distance",type:"int"}],type:"MessageAction"},{id:3626061121,predicate:"photoPathSize",params:[{name:"type",type:"string"},{name:"bytes",type:"bytes"}],type:"PhotoSize"},{id:3643548293,predicate:"speakingInGroupCallAction",params:[],type:"SendMessageAction"},{id:"2004925620",predicate:"groupCallDiscarded",params:[{name:"id",type:"long"},{name:"access_hash",type:"long"},{name:"duration",type:"int"}],type:"GroupCall"},{id:3233940782,predicate:"groupCall",params:[{name:"flags",type:"#"},{name:"join_muted",type:"flags.1?true"},{name:"can_change_join_muted",type:"flags.2?true"},{name:"join_date_asc",type:"flags.6?true"},{name:"id",type:"long"},{name:"access_hash",type:"long"},{name:"participants_count",type:"int"},{name:"params",type:"flags.0?DataJSON"},{name:"title",type:"flags.3?string"},{name:"stream_dc_id",type:"flags.4?int"},{name:"record_start_date",type:"flags.5?int"},{name:"version",type:"int"}],type:"GroupCall"},{id:3635053583,predicate:"inputGroupCall",params:[{name:"id",type:"long"},{name:"access_hash",type:"long"}],type:"InputGroupCall"},{id:"2047704898",predicate:"messageActionGroupCall",params:[{name:"flags",type:"#"},{name:"call",type:"InputGroupCall"},{name:"duration",type:"flags.0?int"}],type:"MessageAction"},{id:"1991897370",predicate:"messageActionInviteToGroupCall",params:[{name:"call",type:"InputGroupCall"},{name:"users",type:"Vector<int>"}],type:"MessageAction"},{id:"430815881",predicate:"groupCallParticipant",params:[{name:"flags",type:"#"},{name:"muted",type:"flags.0?true"},{name:"left",type:"flags.1?true"},{name:"can_self_unmute",type:"flags.2?true"},{name:"just_joined",type:"flags.4?true"},{name:"versioned",type:"flags.5?true"},{name:"min",type:"flags.8?true"},{name:"muted_by_you",type:"flags.9?true"},{name:"volume_by_admin",type:"flags.10?true"},{name:"self",type:"flags.12?true"},{name:"peer",type:"Peer"},{name:"date",type:"int"},{name:"active_date",type:"flags.3?int"},{name:"source",type:"int"},{name:"volume",type:"flags.7?int"},{name:"about",type:"flags.11?string"},{name:"raise_hand_rating",type:"flags.13?long"}],type:"GroupCallParticipant"},{id:"321954198",predicate:"updateChat",params:[{name:"chat_id",type:"int"}],type:"Update"},{id:4075543374,predicate:"updateGroupCallParticipants",params:[{name:"call",type:"InputGroupCall"},{name:"participants",type:"Vector<GroupCallParticipant>"},{name:"version",type:"int"}],type:"Update"},{id:2757671323,predicate:"updateGroupCall",params:[{name:"chat_id",type:"int"},{name:"call",type:"GroupCall"}],type:"Update"},{id:2658302637,predicate:"phone.groupCall",params:[{name:"call",type:"GroupCall"},{name:"participants",type:"Vector<GroupCallParticipant>"},{name:"participants_next_offset",type:"string"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"phone.GroupCall"},{id:4101460406,predicate:"phone.groupParticipants",params:[{name:"count",type:"int"},{name:"participants",type:"Vector<GroupCallParticipant>"},{name:"next_offset",type:"string"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"},{name:"version",type:"int"}],type:"phone.GroupParticipants"},{id:"813821341",predicate:"inlineQueryPeerTypeSameBotPM",params:[],type:"InlineQueryPeerType"},{id:2201751468,predicate:"inlineQueryPeerTypePM",params:[],type:"InlineQueryPeerType"},{id:3613836554,predicate:"inlineQueryPeerTypeChat",params:[],type:"InlineQueryPeerType"},{id:"1589952067",predicate:"inlineQueryPeerTypeMegagroup",params:[],type:"InlineQueryPeerType"},{id:"1664413338",predicate:"inlineQueryPeerTypeBroadcast",params:[],type:"InlineQueryPeerType"},{id:"589338437",predicate:"channelAdminLogEventActionStartGroupCall",params:[{name:"call",type:"InputGroupCall"}],type:"ChannelAdminLogEventAction"},{id:3684667712,predicate:"channelAdminLogEventActionDiscardGroupCall",params:[{name:"call",type:"InputGroupCall"}],type:"ChannelAdminLogEventAction"},{id:4179895506,predicate:"channelAdminLogEventActionParticipantMute",params:[{name:"participant",type:"GroupCallParticipant"}],type:"ChannelAdminLogEventAction"},{id:3863226816,predicate:"channelAdminLogEventActionParticipantUnmute",params:[{name:"participant",type:"GroupCallParticipant"}],type:"ChannelAdminLogEventAction"},{id:"1456906823",predicate:"channelAdminLogEventActionToggleGroupCallSetting",params:[{name:"join_muted",type:"Bool"}],type:"ChannelAdminLogEventAction"},{id:2328045569,predicate:"inputPaymentCredentialsGooglePay",params:[{name:"payment_token",type:"DataJSON"}],type:"InputPaymentCredentials"},{id:"375566091",predicate:"messages.historyImport",params:[{name:"id",type:"long"}],type:"messages.HistoryImport"},{id:3688534598,predicate:"sendMessageHistoryImportAction",params:[{name:"progress",type:"int"}],type:"SendMessageAction"},{id:"1578088377",predicate:"messages.historyImportParsed",params:[{name:"flags",type:"#"},{name:"pm",type:"flags.0?true"},{name:"group",type:"flags.1?true"},{name:"title",type:"flags.2?string"}],type:"messages.HistoryImportParsed"},{id:4124956391,predicate:"inputReportReasonFake",params:[],type:"ReportReason"},{id:4019011180,predicate:"messages.affectedFoundMessages",params:[{name:"pts",type:"int"},{name:"pts_count",type:"int"},{name:"offset",type:"int"},{name:"messages",type:"Vector<int>"}],type:"messages.AffectedFoundMessages"},{id:2853895165,predicate:"messageActionSetMessagesTTL",params:[{name:"period",type:"int"}],type:"MessageAction"},{id:3147544997,predicate:"updatePeerHistoryTTL",params:[{name:"flags",type:"#"},{name:"peer",type:"Peer"},{name:"ttl_period",type:"flags.0?int"}],type:"Update"},{id:4088625183,predicate:"updateChatParticipant",params:[{name:"flags",type:"#"},{name:"chat_id",type:"int"},{name:"date",type:"int"},{name:"actor_id",type:"int"},{name:"user_id",type:"int"},{name:"prev_participant",type:"flags.0?ChatParticipant"},{name:"new_participant",type:"flags.1?ChatParticipant"},{name:"invite",type:"flags.2?ExportedChatInvite"},{name:"qts",type:"int"}],type:"Update"},{id:"2146218476",predicate:"updateChannelParticipant",params:[{name:"flags",type:"#"},{name:"channel_id",type:"int"},{name:"date",type:"int"},{name:"actor_id",type:"int"},{name:"user_id",type:"int"},{name:"prev_participant",type:"flags.0?ChannelParticipant"},{name:"new_participant",type:"flags.1?ChannelParticipant"},{name:"invite",type:"flags.2?ExportedChatInvite"},{name:"qts",type:"int"}],type:"Update"},{id:"133777546",predicate:"updateBotStopped",params:[{name:"user_id",type:"int"},{name:"date",type:"int"},{name:"stopped",type:"Bool"},{name:"qts",type:"int"}],type:"Update"},{id:"507405952",predicate:"chatInviteImporter",params:[{name:"user_id",type:"int"},{name:"date",type:"int"}],type:"ChatInviteImporter"},{id:3183881676,predicate:"messages.exportedChatInvites",params:[{name:"count",type:"int"},{name:"invites",type:"Vector<ExportedChatInvite>"},{name:"users",type:"Vector<User>"}],type:"messages.ExportedChatInvites"},{id:"410107472",predicate:"messages.exportedChatInvite",params:[{name:"invite",type:"ExportedChatInvite"},{name:"users",type:"Vector<User>"}],type:"messages.ExportedChatInvite"},{id:"572915951",predicate:"messages.exportedChatInviteReplaced",params:[{name:"invite",type:"ExportedChatInvite"},{name:"new_invite",type:"ExportedChatInvite"},{name:"users",type:"Vector<User>"}],type:"messages.ExportedChatInvite"},{id:2176233482,predicate:"messages.chatInviteImporters",params:[{name:"count",type:"int"},{name:"importers",type:"Vector<ChatInviteImporter>"},{name:"users",type:"Vector<User>"}],type:"messages.ChatInviteImporters"},{id:3755094799,predicate:"chatAdminWithInvites",params:[{name:"admin_id",type:"int"},{name:"invites_count",type:"int"},{name:"revoked_invites_count",type:"int"}],type:"ChatAdminWithInvites"},{id:3063640791,predicate:"messages.chatAdminsWithInvites",params:[{name:"admins",type:"Vector<ChatAdminWithInvites>"},{name:"users",type:"Vector<User>"}],type:"messages.ChatAdminsWithInvites"},{id:"1557846647",predicate:"channelAdminLogEventActionParticipantJoinByInvite",params:[{name:"invite",type:"ExportedChatInvite"}],type:"ChannelAdminLogEventAction"},{id:"1515256996",predicate:"channelAdminLogEventActionExportedInviteDelete",params:[{name:"invite",type:"ExportedChatInvite"}],type:"ChannelAdminLogEventAction"},{id:"1091179342",predicate:"channelAdminLogEventActionExportedInviteRevoke",params:[{name:"invite",type:"ExportedChatInvite"}],type:"ChannelAdminLogEventAction"},{id:3910056793,predicate:"channelAdminLogEventActionExportedInviteEdit",params:[{name:"prev_invite",type:"ExportedChatInvite"},{name:"new_invite",type:"ExportedChatInvite"}],type:"ChannelAdminLogEventAction"},{id:"1048537159",predicate:"channelAdminLogEventActionParticipantVolume",params:[{name:"participant",type:"GroupCallParticipant"}],type:"ChannelAdminLogEventAction"},{id:"1855199800",predicate:"channelAdminLogEventActionChangeHistoryTTL",params:[{name:"prev_value",type:"int"},{name:"new_value",type:"int"}],type:"ChannelAdminLogEventAction"},{id:2723014423,predicate:"messages.checkedHistoryImportPeer",params:[{name:"confirm_text",type:"string"}],type:"messages.CheckedHistoryImportPeer"},{id:3148158521,predicate:"inputGroupCallStream",params:[{name:"call",type:"InputGroupCall"},{name:"time_ms",type:"long"},{name:"scale",type:"int"}],type:"InputFileLocation"},{id:2951045695,predicate:"phone.joinAsPeers",params:[{name:"peers",type:"Vector<Peer>"},{name:"chats",type:"Vector<Chat>"},{name:"users",type:"Vector<User>"}],type:"phone.JoinAsPeers"},{id:"541839704",predicate:"phone.exportedGroupCallInvite",params:[{name:"link",type:"string"}],type:"phone.ExportedGroupCallInvite"}],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<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:"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<int>"}],type:"Bool"},{id:"813089983",method:"account.unregisterDevice",params:[{name:"token_type",type:"int"},{name:"token",type:"string"},{name:"other_uids",type:"Vector<int>"}],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:3317316998,method:"account.reportPeer",params:[{name:"peer",type:"InputPeer"},{name:"reason",type:"ReportReason"},{name:"message",type:"string"}],type:"Bool"},{id:"227648840",method:"users.getUsers",params:[{name:"id",type:"Vector<InputUser>"}],type:"Vector<User>"},{id:3392185777,method:"users.getFullUser",params:[{name:"id",type:"InputUser"}],type:"UserFull"},{id:"749357634",method:"contacts.getContactIDs",params:[{name:"hash",type:"int"}],type:"Vector<int>"},{id:3299038190,method:"contacts.getStatuses",params:[],type:"Vector<ContactStatus>"},{id:3223553183,method:"contacts.getContacts",params:[{name:"hash",type:"int"}],type:"contacts.Contacts"},{id:"746589157",method:"contacts.importContacts",params:[{name:"contacts",type:"Vector<InputContact>"}],type:"contacts.ImportedContacts"},{id:"157945344",method:"contacts.deleteContacts",params:[{name:"id",type:"Vector<InputUser>"}],type:"Updates"},{id:"269745566",method:"contacts.deleteByPhones",params:[{name:"phones",type:"Vector<string>"}],type:"Bool"},{id:"1758204945",method:"contacts.block",params:[{name:"id",type:"InputPeer"}],type:"Bool"},{id:3198573904,method:"contacts.unblock",params:[{name:"id",type:"InputPeer"}],type:"Bool"},{id:4118557967,method:"contacts.getBlocked",params:[{name:"offset",type:"int"},{name:"limit",type:"int"}],type:"contacts.Blocked"},{id:"1673946374",method:"messages.getMessages",params:[{name:"id",type:"Vector<InputMessage>"}],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:"204812012",method:"messages.search",params:[{name:"flags",type:"#"},{name:"peer",type:"InputPeer"},{name:"q",type:"string"},{name:"from_id",type:"flags.0?InputPeer"},{name:"top_msg_id",type:"flags.1?int"},{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<int>"}],type:"messages.AffectedMessages"},{id:"94983360",method:"messages.receivedMessages",params:[{name:"max_id",type:"int"}],type:"Vector<ReceivedNotifyMessage>"},{id:"1486110434",method:"messages.setTyping",params:[{name:"flags",type:"#"},{name:"peer",type:"InputPeer"},{name:"top_msg_id",type:"flags.0?int"},{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<MessageEntity>"},{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<MessageEntity>"},{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:"from_peer",type:"InputPeer"},{name:"id",type:"Vector<int>"},{name:"random_id",type:"Vector<long>"},{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:2303961934,method:"messages.report",params:[{name:"peer",type:"InputPeer"},{name:"id",type:"Vector<int>"},{name:"reason",type:"ReportReason"},{name:"message",type:"string"}],type:"Bool"},{id:"1013621127",method:"messages.getChats",params:[{name:"id",type:"Vector<int>"}],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:3308537242,method:"messages.deleteChatUser",params:[{name:"flags",type:"#"},{name:"revoke_history",type:"flags.0?true"},{name:"chat_id",type:"int"},{name:"user_id",type:"InputUser"}],type:"Updates"},{id:"164303470",method:"messages.createChat",params:[{name:"users",type:"Vector<InputUser>"},{name:"title",type:"string"}],type:"Updates"},{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:"1926525996",method:"photos.updateProfilePhoto",params:[{name:"id",type:"InputPhoto"}],type:"photos.Photo"},{id:2314407785,method:"photos.uploadProfilePhoto",params:[{name:"flags",type:"#"},{name:"file",type:"flags.0?InputFile"},{name:"video",type:"flags.1?InputFile"},{name:"video_start_ts",type:"flags.2?double"}],type:"photos.Photo"},{id:2278522671,method:"photos.deletePhotos",params:[{name:"id",type:"Vector<InputPhoto>"}],type:"Vector<long>"},{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: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: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:"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:4086541984,method:"messages.discardEncryption",params:[{name:"flags",type:"#"},{name:"delete_history",type:"flags.0?true"},{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:"1157265941",method:"messages.sendEncrypted",params:[{name:"flags",type:"#"},{name:"silent",type:"flags.0?true"},{name:"peer",type:"InputEncryptedChat"},{name:"random_id",type:"long"},{name:"data",type:"bytes"}],type:"messages.SentEncryptedMessage"},{id:"1431914525",method:"messages.sendEncryptedFile",params:[{name:"flags",type:"#"},{name:"silent",type:"flags.0?true"},{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<long>"},{id:"1259113487",method:"messages.reportEncryptedSpam",params:[{name:"peer",type:"InputEncryptedChat"}],type:"Bool"},{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: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:2631862477,method:"help.getSupport",params:[],type:"help.Support"},{id:"916930423",method:"messages.readMessageContents",params:[{name:"id",type:"Vector<int>"}],type:"messages.AffectedMessages"},{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:"301470424",method:"contacts.search",params:[{name:"q",type:"string"},{name:"limit",type:"int"}],type:"contacts.Found"},{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<InputPrivacyRule>"}],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:3667594509,method:"invokeWithLayer",params:[{name:"layer",type:"int"},{name:"query",type:"!X"}],type:"X"},{id:4181511075,method:"contacts.resolveUsername",params:[{name:"username",type:"string"}],type:"contacts.ResolvedPeer"},{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:"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:"954152242",method:"account.updateDeviceLocked",params:[{name:"period",type:"int"}],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:2338894028,method:"messages.getWebPagePreview",params:[{name:"flags",type:"#"},{name:"message",type:"string"},{name:"entities",type:"flags.3?Vector<MessageEntity>"}],type:"MessageMedia"},{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: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:3214170551,method:"invokeWithoutUpdates",params:[{name:"query",type:"!X"}],type:"X"},{id:"347716823",method:"messages.exportChatInvite",params:[{name:"flags",type:"#"},{name:"legacy_revoke_permanent",type:"flags.2?true"},{name:"peer",type:"InputPeer"},{name:"expire_date",type:"flags.0?int"},{name:"usage_limit",type:"flags.1?int"}],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:2417028975,method:"help.getAppChangelog",params:[{name:"prev_app_version",type:"string"}],type:"Updates"},{id:"1468322785",method:"messages.getMessagesViews",params:[{name:"peer",type:"InputPeer"},{name:"id",type:"Vector<int>"},{name:"increment",type:"Bool"}],type:"messages.MessageViews"},{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<int>"}],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<int>"}],type:"Bool"},{id:2911672867,method:"channels.getMessages",params:[{name:"channel",type:"InputChannel"},{name:"id",type:"Vector<InputMessage>"}],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<InputChannel>"}],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:"for_import",type:"flags.3?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<InputUser>"}],type:"Updates"},{id:3222347747,method:"channels.deleteChannel",params:[{name:"channel",type:"InputChannel"}],type:"Updates"},{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: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:"1271290010",method:"messages.searchGlobal",params:[{name:"flags",type:"#"},{name:"folder_id",type:"flags.0?int"},{name:"q",type:"string"},{name:"filter",type:"MessagesFilter"},{name:"min_date",type:"int"},{name:"max_date",type:"int"},{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<long>"}],type:"Bool"},{id:"864953444",method:"messages.getDocumentByHash",params:[{name:"sha256",type:"bytes"},{name:"size",type:"int"},{name:"mime_type",type:"string"}],type:"Document"},{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<InputBotInlineResult>"},{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:3862932971,method:"channels.exportMessageLink",params:[{name:"flags",type:"#"},{name:"grouped",type:"flags.0?true"},{name:"thread",type:"flags.1?true"},{name:"channel",type:"InputChannel"},{name:"id",type:"int"}],type:"ExportedMessageLink"},{id:"527021574",method:"channels.toggleSignatures",params:[{name:"channel",type:"InputChannel"},{name:"enabled",type:"Bool"}],type:"Updates"},{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: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<MessageEntity>"},{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<MessageEntity>"}],type:"Bool"},{id:2470627847,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"},{name:"password",type:"flags.2?InputCheckPasswordSRP"}],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: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:3832593661,method:"messages.getPeerDialogs",params:[{name:"peers",type:"Vector<InputDialogPeer>"}],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<MessageEntity>"}],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<long>"}],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:"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: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:"1706608543",method:"messages.getMaskStickers",params:[{name:"hash",type:"int"}],type:"messages.AllStickers"},{id:3428542412,method:"messages.getAttachedStickers",params:[{name:"media",type:"InputStickeredMedia"}],type:"Vector<StickerSetCovered>"},{id:2387124616,method:"auth.dropTempAuthKeys",params:[{name:"except_auth_keys",type:"Vector<long>"}],type:"Bool"},{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<int>"}],type:"messages.Chats"},{id:3961704397,method:"help.setBotUpdatesStatus",params:[{name:"pending_updates_count",type:"int"},{name:"message",type:"string"}],type:"Bool"},{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<InputDialogPeer>"}],type:"Bool"},{id:3602468338,method:"messages.getPinnedDialogs",params:[{name:"folder_id",type:"int"}],type:"messages.PeerDialogs"},{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:"619086221",method:"upload.getWebFile",params:[{name:"location",type:"InputWebFileLocation"},{name:"offset",type:"int"},{name:"limit",type:"int"}],type:"upload.WebFile"},{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:"1151208273",method:"account.getTmpPassword",params:[{name:"password",type:"InputCheckPasswordSRP"},{name:"period",type:"int"}],type:"account.TmpPassword"},{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: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<ShippingOption>"}],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: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<InputStickerSetItem>"}],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:"1369162417",method:"messages.uploadMedia",params:[{name:"peer",type:"InputPeer"},{name:"media",type:"InputMedia"}],type:"MessageMedia"},{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:"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<FileHash>"},{id:"1375900482",method:"help.getCdnConfig",params:[],type:"CdnConfig"},{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<string>"}],type:"Vector<LangPackString>"},{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<LangPackLanguage>"},{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<InputUser>"},{name:"max_id",type:"long"},{name:"min_id",type:"long"},{name:"limit",type:"int"}],type:"channels.AdminLogResults"},{id:"1302676017",method:"upload.getCdnFileHashes",params:[{name:"file_token",type:"bytes"},{name:"offset",type:"int"}],type:"Vector<FileHash>"},{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:3935085817,method:"channels.setStickers",params:[{name:"channel",type:"InputChannel"},{name:"stickerset",type:"InputStickerSet"}],type:"Bool"},{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:3937786936,method:"channels.readMessageContents",params:[{name:"channel",type:"InputChannel"},{name:"id",type:"Vector<int>"}],type:"Bool"},{id:2274703345,method:"contacts.resetSaved",params:[],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:2939592002,method:"channels.deleteHistory",params:[{name:"channel",type:"InputChannel"},{name:"max_id",type:"int"}],type:"Bool"},{id:"1036054804",method:"help.getRecentMeUrls",params:[{name:"referer",type:"string"}],type:"help.RecentMeUrls"},{id:3938171212,method:"channels.togglePreHistoryHidden",params:[{name:"channel",type:"InputChannel"},{name:"enabled",type:"Bool"}],type:"Updates"},{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<InputSingleMedia>"},{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:"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: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:3338819889,method:"upload.getFileHashes",params:[{name:"location",type:"InputFileLocation"},{name:"offset",type:"int"}],type:"Vector<FileHash>"},{id:"749019089",method:"help.getTermsOfServiceUpdate",params:[],type:"help.TermsOfServiceUpdate"},{id:4000511898,method:"help.acceptTermsOfService",params:[{name:"id",type:"DataJSON"}],type:"Bool"},{id:2995305597,method:"account.getAllSecureValues",params:[],type:"Vector<SecureValue>"},{id:"1936088002",method:"account.getSecureValue",params:[{name:"types",type:"Vector<SecureValueType>"}],type:"Vector<SecureValue>"},{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<SecureValueType>"}],type:"Bool"},{id:2429064373,method:"users.setSecureValueErrors",params:[{name:"id",type:"InputUser"},{name:"errors",type:"Vector<SecureValueError>"}],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<SecureValueHash>"},{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:"1072547679",method:"help.getDeepLinkInfo",params:[{name:"path",type:"string"}],type:"help.DeepLinkInfo"},{id:2196890527,method:"contacts.getSaved",params:[],type:"Vector<SavedContact>"},{id:2202135744,method:"channels.getLeftChannels",params:[{name:"offset",type:"int"}],type:"messages.Chats"},{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:"486505992",method:"messages.getSplitRanges",params:[],type:"Vector<MessageRange>"},{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: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<DialogPeer>"},{id:2232729050,method:"contacts.toggleTopPeers",params:[{name:"enabled",type:"Bool"}],type:"Bool"},{id:"2119757468",method:"messages.clearAllDrafts",params:[],type:"Bool"},{id:2559656208,method:"help.getAppConfig",params:[],type:"JSONValue"},{id:"1862465352",method:"help.saveAppLog",params:[{name:"events",type:"Vector<InputAppEvent>"}],type:"Bool"},{id:3328290056,method:"help.getPassportConfig",params:[{name:"hash",type:"int"}],type:"help.PassportConfig"},{id:"1784243458",method:"langpack.getLanguage",params:[{name:"lang_pack",type:"string"},{name:"lang_code",type:"string"}],type:"LangPackLanguage"},{id:3534419948,method:"messages.updatePinnedMessage",params:[{name:"flags",type:"#"},{name:"silent",type:"flags.0?true"},{name:"unpin",type:"flags.1?true"},{name:"pm_oneside",type:"flags.2?true"},{name:"peer",type:"InputPeer"},{name:"id",type:"int"}],type:"Updates"},{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: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<MessageEntity>"}],type:"help.UserInfo"},{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:"283795844",method:"messages.sendVote",params:[{name:"peer",type:"InputPeer"},{name:"msg_id",type:"int"},{name:"options",type:"Vector<bytes>"}],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: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:"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<string>"}],type:"Vector<EmojiLanguage>"},{id:3585149990,method:"messages.getEmojiURL",params:[{name:"lang_code",type:"string"}],type:"EmojiURL"},{id:"1749536939",method:"folders.editPeerFolders",params:[{name:"folder_peers",type:"Vector<InputFolderPeer>"}],type:"Updates"},{id:"472471681",method:"folders.deleteFolder",params:[{name:"folder_id",type:"int"}],type:"Updates"},{id:"1932455680",method:"messages.getSearchCounters",params:[{name:"peer",type:"InputPeer"},{name:"filters",type:"Vector<MessagesFilter>"}],type:"Vector<messages.SearchCounter>"},{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:"428848198",method:"messages.requestUrlAuth",params:[{name:"flags",type:"#"},{name:"peer",type:"flags.1?InputPeer"},{name:"msg_id",type:"flags.1?int"},{name:"button_id",type:"flags.1?int"},{name:"url",type:"flags.2?string"}],type:"UrlAuthResult"},{id:2972479781,method:"messages.acceptUrlAuth",params:[{name:"flags",type:"#"},{name:"write_allowed",type:"flags.0?true"},{name:"peer",type:"flags.1?InputPeer"},{name:"msg_id",type:"flags.1?int"},{name:"button_id",type:"flags.1?int"},{name:"url",type:"flags.2?string"}],type:"UrlAuthResult"},{id:"1336717624",method:"messages.hidePeerSettingsBar",params:[{name:"peer",type:"InputPeer"}],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:2402864415,method:"channels.editCreator",params:[{name:"channel",type:"InputChannel"},{name:"user_id",type:"InputUser"},{name:"password",type:"InputCheckPasswordSRP"}],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:"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: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<int>"}],type:"messages.Messages"},{id:3174597898,method:"messages.sendScheduledMessages",params:[{name:"peer",type:"InputPeer"},{name:"id",type:"Vector<int>"}],type:"Updates"},{id:"1504586518",method:"messages.deleteScheduledMessages",params:[{name:"peer",type:"InputPeer"},{name:"id",type:"Vector<int>"}],type:"Updates"},{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:2981369111,method:"auth.exportLoginToken",params:[{name:"api_id",type:"int"},{name:"api_hash",type:"string"},{name:"except_ids",type:"Vector<int>"}],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: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:"300429806",method:"channels.getInactiveChannels",params:[],type:"messages.InactiveChats"},{id:"1705865692",method:"account.getMultiWallPapers",params:[{name:"wallpapers",type:"Vector<InputWallPaper>"}],type:"Vector<WallPaper>"},{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<InputStickerSet>"}],type:"Bool"},{id:"779736953",method:"payments.getBankCardData",params:[{name:"number",type:"string"}],type:"payments.BankCardData"},{id:4053719405,method:"messages.getDialogFilters",params:[],type:"Vector<DialogFilter>"},{id:2728186924,method:"messages.getSuggestedDialogFilters",params:[],type:"Vector<DialogFilterSuggested>"},{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<int>"}],type:"Bool"},{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"},{id:2587250224,method:"stickers.setStickerSetThumb",params:[{name:"stickerset",type:"InputStickerSet"},{name:"thumb",type:"InputDocument"}],type:"messages.StickerSet"},{id:2153596662,method:"bots.setBotCommands",params:[{name:"commands",type:"Vector<BotCommand>"}],type:"Bool"},{id:"1608974939",method:"messages.getOldFeaturedStickers",params:[{name:"offset",type:"int"},{name:"limit",type:"int"},{name:"hash",type:"int"}],type:"messages.FeaturedStickers"},{id:3231151137,method:"help.getPromoData",params:[],type:"help.PromoData"},{id:"505748629",method:"help.hidePromoData",params:[{name:"peer",type:"InputPeer"}],type:"Bool"},{id:4286223235,method:"phone.sendSignalingData",params:[{name:"peer",type:"InputPhoneCall"},{name:"data",type:"bytes"}],type:"Bool"},{id:3705636359,method:"stats.getMegagroupStats",params:[{name:"flags",type:"#"},{name:"dark",type:"flags.0?true"},{name:"channel",type:"InputChannel"}],type:"stats.MegagroupStats"},{id:3945483510,method:"account.getGlobalPrivacySettings",params:[],type:"GlobalPrivacySettings"},{id:"517647042",method:"account.setGlobalPrivacySettings",params:[{name:"settings",type:"GlobalPrivacySettings"}],type:"GlobalPrivacySettings"},{id:4111317665,method:"help.dismissSuggestion",params:[{name:"peer",type:"InputPeer"},{name:"suggestion",type:"string"}],type:"Bool"},{id:"1935116200",method:"help.getCountriesList",params:[{name:"lang_code",type:"string"},{name:"hash",type:"int"}],type:"help.CountriesList"},{id:"615875002",method:"messages.getReplies",params:[{name:"peer",type:"InputPeer"},{name:"msg_id",type:"int"},{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:"1147761405",method:"messages.getDiscussionMessage",params:[{name:"peer",type:"InputPeer"},{name:"msg_id",type:"int"}],type:"messages.DiscussionMessage"},{id:4147227124,method:"messages.readDiscussion",params:[{name:"peer",type:"InputPeer"},{name:"msg_id",type:"int"},{name:"read_max_id",type:"int"}],type:"Bool"},{id:"698914348",method:"contacts.blockFromReplies",params:[{name:"flags",type:"#"},{name:"delete_message",type:"flags.0?true"},{name:"delete_history",type:"flags.1?true"},{name:"report_spam",type:"flags.2?true"},{name:"msg_id",type:"int"}],type:"Updates"},{id:"1445996571",method:"stats.getMessagePublicForwards",params:[{name:"channel",type:"InputChannel"},{name:"msg_id",type:"int"},{name:"offset_rate",type:"int"},{name:"offset_peer",type:"InputPeer"},{name:"offset_id",type:"int"},{name:"limit",type:"int"}],type:"messages.Messages"},{id:3068175349,method:"stats.getMessageStats",params:[{name:"flags",type:"#"},{name:"dark",type:"flags.0?true"},{name:"channel",type:"InputChannel"},{name:"msg_id",type:"int"}],type:"stats.MessageStats"},{id:4029004939,method:"messages.unpinAllMessages",params:[{name:"peer",type:"InputPeer"}],type:"messages.AffectedHistory"},{id:3174935520,method:"phone.createGroupCall",params:[{name:"peer",type:"InputPeer"},{name:"random_id",type:"int"}],type:"Updates"},{id:2972909435,method:"phone.joinGroupCall",params:[{name:"flags",type:"#"},{name:"muted",type:"flags.0?true"},{name:"call",type:"InputGroupCall"},{name:"join_as",type:"InputPeer"},{name:"invite_hash",type:"flags.1?string"},{name:"params",type:"DataJSON"}],type:"Updates"},{id:"1342404601",method:"phone.leaveGroupCall",params:[{name:"call",type:"InputGroupCall"},{name:"source",type:"int"}],type:"Updates"},{id:"2067345760",method:"phone.inviteToGroupCall",params:[{name:"call",type:"InputGroupCall"},{name:"users",type:"Vector<InputUser>"}],type:"Updates"},{id:"2054648117",method:"phone.discardGroupCall",params:[{name:"call",type:"InputGroupCall"}],type:"Updates"},{id:"1958458429",method:"phone.toggleGroupCallSettings",params:[{name:"flags",type:"#"},{name:"reset_invite_hash",type:"flags.1?true"},{name:"call",type:"InputGroupCall"},{name:"join_muted",type:"flags.0?Bool"}],type:"Updates"},{id:"209498135",method:"phone.getGroupCall",params:[{name:"call",type:"InputGroupCall"}],type:"phone.GroupCall"},{id:3310934187,method:"phone.getGroupParticipants",params:[{name:"call",type:"InputGroupCall"},{name:"ids",type:"Vector<InputPeer>"},{name:"sources",type:"Vector<int>"},{name:"offset",type:"string"},{name:"limit",type:"int"}],type:"phone.GroupParticipants"},{id:3075111914,method:"phone.checkGroupCall",params:[{name:"call",type:"InputGroupCall"},{name:"source",type:"int"}],type:"Bool"},{id:2200206609,method:"messages.deleteChat",params:[{name:"chat_id",type:"int"}],type:"Bool"},{id:4190888969,method:"messages.deletePhoneCallHistory",params:[{name:"flags",type:"#"},{name:"revoke",type:"flags.0?true"}],type:"messages.AffectedFoundMessages"},{id:"1140726259",method:"messages.checkHistoryImport",params:[{name:"import_head",type:"string"}],type:"messages.HistoryImportParsed"},{id:"873008187",method:"messages.initHistoryImport",params:[{name:"peer",type:"InputPeer"},{name:"file",type:"InputFile"},{name:"media_count",type:"int"}],type:"messages.HistoryImport"},{id:"713433234",method:"messages.uploadImportedMedia",params:[{name:"peer",type:"InputPeer"},{name:"import_id",type:"long"},{name:"file_name",type:"string"},{name:"media",type:"InputMedia"}],type:"MessageMedia"},{id:3023958852,method:"messages.startHistoryImport",params:[{name:"peer",type:"InputPeer"},{name:"import_id",type:"long"}],type:"Bool"},{id:2729812982,method:"messages.getExportedChatInvites",params:[{name:"flags",type:"#"},{name:"revoked",type:"flags.3?true"},{name:"peer",type:"InputPeer"},{name:"admin_id",type:"InputUser"},{name:"offset_date",type:"flags.2?int"},{name:"offset_link",type:"flags.2?string"},{name:"limit",type:"int"}],type:"messages.ExportedChatInvites"},{id:"1937010524",method:"messages.getExportedChatInvite",params:[{name:"peer",type:"InputPeer"},{name:"link",type:"string"}],type:"messages.ExportedChatInvite"},{id:"48562110",method:"messages.editExportedChatInvite",params:[{name:"flags",type:"#"},{name:"revoked",type:"flags.2?true"},{name:"peer",type:"InputPeer"},{name:"link",type:"string"},{name:"expire_date",type:"flags.0?int"},{name:"usage_limit",type:"flags.1?int"}],type:"messages.ExportedChatInvite"},{id:"1452833749",method:"messages.deleteRevokedExportedChatInvites",params:[{name:"peer",type:"InputPeer"},{name:"admin_id",type:"InputUser"}],type:"Bool"},{id:3563365419,method:"messages.deleteExportedChatInvite",params:[{name:"peer",type:"InputPeer"},{name:"link",type:"string"}],type:"Bool"},{id:"958457583",method:"messages.getAdminsWithInvites",params:[{name:"peer",type:"InputPeer"}],type:"messages.ChatAdminsWithInvites"},{id:"654013065",method:"messages.getChatInviteImporters",params:[{name:"peer",type:"InputPeer"},{name:"link",type:"string"},{name:"offset_date",type:"int"},{name:"offset_user",type:"InputUser"},{name:"limit",type:"int"}],type:"messages.ChatInviteImporters"},{id:3087949796,method:"messages.setHistoryTTL",params:[{name:"peer",type:"InputPeer"},{name:"period",type:"int"}],type:"Updates"},{id:4203529973,method:"account.reportProfilePhoto",params:[{name:"peer",type:"InputPeer"},{name:"photo_id",type:"InputPhoto"},{name:"reason",type:"ReportReason"},{name:"message",type:"string"}],type:"Bool"},{id:"187239529",method:"channels.convertToGigagroup",params:[{name:"channel",type:"InputChannel"}],type:"Updates"},{id:"1573261059",method:"messages.checkHistoryImportPeer",params:[{name:"peer",type:"InputPeer"}],type:"messages.CheckedHistoryImportPeer"},{id:3224004311,method:"phone.toggleGroupCallRecord",params:[{name:"flags",type:"#"},{name:"start",type:"flags.0?true"},{name:"call",type:"InputGroupCall"},{name:"title",type:"flags.1?string"}],type:"Updates"},{id:3648383872,method:"phone.editGroupCallParticipant",params:[{name:"flags",type:"#"},{name:"muted",type:"flags.0?true"},{name:"call",type:"InputGroupCall"},{name:"participant",type:"InputPeer"},{name:"volume",type:"flags.1?int"},{name:"raise_hand",type:"flags.2?Bool"}],type:"Updates"},{id:"480685066",method:"phone.editGroupCallTitle",params:[{name:"call",type:"InputGroupCall"},{name:"title",type:"string"}],type:"Updates"},{id:4017889594,method:"phone.getGroupCallJoinAs",params:[{name:"peer",type:"InputPeer"}],type:"phone.JoinAsPeers"},{id:3869926527,method:"phone.exportGroupCallInvite",params:[{name:"flags",type:"#"},{name:"can_self_unmute",type:"flags.0?true"},{name:"call",type:"InputGroupCall"}],type:"phone.ExportedGroupCallInvite"}]},layer:125},f=a(9);const _=+h.API.constructors.find(e=>"boolFalse"===e.predicate).id>>>0,b=+h.API.constructors.find(e=>"boolTrue"===e.predicate).id>>>0,v=+h.API.constructors.find(e=>"vector"===e.predicate).id>>>0,P=+h.MTProto.constructors.find(e=>"gzip_packed"===e.predicate).id>>>0;class w{constructor(e={}){this.maxLength=2048,this.offset=0,this.mtproto=!1,this.debug=!1,this.maxLength=e.startMaxLength||2048,this.mtproto=e.mtproto||!1,this.createBuffer()}createBuffer(){this.buffer=new ArrayBuffer(this.maxLength),this.intView=new Int32Array(this.buffer),this.byteView=new Uint8Array(this.buffer)}getArray(){const e=new ArrayBuffer(this.offset),t=new Int32Array(e);return t.set(this.intView.subarray(0,this.offset/4)),t}getBuffer(){return this.getArray().buffer}getBytes(e){if(e){const e=new ArrayBuffer(this.offset),t=new Uint8Array(e);return t.set(this.byteView.subarray(0,this.offset)),t}const t=[];for(let e=0;e<this.offset;e++)t.push(this.byteView[e]);return t}checkLength(e){if(this.offset+e<this.maxLength)return;this.maxLength=4*Math.ceil(Math.max(2*this.maxLength,this.offset+e+16)/4);const t=this.buffer,a=new Int32Array(t);this.createBuffer(),new Int32Array(this.buffer).set(a)}writeInt(e,t){this.debug&&console.log(">>>",e.toString(16),e,t);const a=this.offset/4;return this.checkLength(4),this.intView[a]=e,this.offset+=4,a}storeInt(e,t){return this.writeInt(e,(t||"")+":int")}storeBool(e,t){e?this.writeInt(b,(t||"")+":bool"):this.writeInt(_,(t||"")+":bool")}storeLongP(e,t,a){this.writeInt(t,(a||"")+":long[low]"),this.writeInt(e,(a||"")+":long[high]")}storeLong(e,t){if(Array.isArray(e))return 2===e.length?this.storeLongP(e[0],e[1],t):this.storeIntBytes(e,64,t);"string"!=typeof e&&(e=e?e.toString():"0");const a=4294967296,n=Object(u.y)(e,10,64),s=Object(u.k)(n),i=Object(u.k)(n);Object(u.j)(n,Object(u.y)(a.toString(16),16,64),s,i);const r=+Object(u.d)(s,10);let p=+Object(u.d)(i,10);r<p&&(p-=a),this.writeInt(p,(t||"")+":long[low]"),this.writeInt(r,(t||"")+":long[high]")}storeDouble(e,t){const a=new ArrayBuffer(8),n=new Int32Array(a);new Float64Array(a)[0]=e,this.writeInt(n[0],(t||"")+":double[low]"),this.writeInt(n[1],(t||"")+":double[high]")}storeString(e,t){this.debug&&console.log(">>>",e,(t||"")+":string"),void 0===e&&(e="");const a=unescape(encodeURIComponent(e));this.checkLength(a.length+8);const n=a.length;n<=253?this.byteView[this.offset++]=n:(this.byteView[this.offset++]=254,this.byteView[this.offset++]=255&n,this.byteView[this.offset++]=(65280&n)>>8,this.byteView[this.offset++]=(16711680&n)>>16);for(let e=0;e<n;e++)this.byteView[this.offset++]=a.charCodeAt(e);for(;this.offset%4;)this.byteView[this.offset++]=0}storeBytes(e,t){e instanceof ArrayBuffer?e=new Uint8Array(e):void 0===e&&(e=[]),this.debug&&console.log(">>>",Object(n.g)(e),(t||"")+":bytes");const a=e.byteLength||e.length;for(this.checkLength(a+8),a<=253?this.byteView[this.offset++]=a:(this.byteView[this.offset++]=254,this.byteView[this.offset++]=255&a,this.byteView[this.offset++]=(65280&a)>>8,this.byteView[this.offset++]=(16711680&a)>>16),this.byteView.set(e,this.offset),this.offset+=a;this.offset%4;)this.byteView[this.offset++]=0}storeIntBytes(e,t,a){e instanceof ArrayBuffer&&(e=new Uint8Array(e));const s=e.length;if(t%32||8*s!==t){const n=new Error("Invalid bits: "+t+", "+e.length);throw console.error(n,e,a),n}this.debug&&console.log(">>>",Object(n.g)(e),(a||"")+":int"+t),this.checkLength(s),this.byteView.set(e,this.offset),this.offset+=s}storeRawBytes(e,t){e instanceof ArrayBuffer&&(e=new Uint8Array(e));const a=e.length;this.debug&&console.log(">>>",Object(n.g)(e),t||""),this.checkLength(a),this.byteView.set(e,this.offset),this.offset+=a}storeMethod(e,t){const a=(this.mtproto?h.MTProto:h.API).methods.find(t=>t.method===e);if(!a)throw new Error("No method "+e+" found");this.storeInt(a.id,e+"[id]");const n=t.pFlags||t,s={};for(const i of a.params){let a=i.type;if(-1!==a.indexOf("?")){const e=a.split("?"),s=e[0].split(".");if(!(t[s[0]]&1<<+s[1])){if(!("true"===e[1]?n[i.name]:void 0!==t[i.name]))continue;t[s[0]]|=1<<+s[1]}a=e[1]}const r=this.storeObject(t[i.name],a,e+"["+i.name+"]");"#"===a&&(t[i.name]=t[i.name]||0,s[i.name]=r)}for(let e in s)this.intView[s[e]]=t[e];return a.type}storeObject(e,t,a){switch(t){case"#":e=e||0;case"int":return this.storeInt(e,a);case"long":return this.storeLong(e,a);case"int128":return this.storeIntBytes(e,128,a);case"int256":return this.storeIntBytes(e,256,a);case"int512":return this.storeIntBytes(e,512,a);case"string":return this.storeString(e,a);case"bytes":return this.storeBytes(e,a);case"double":return this.storeDouble(e,a);case"Bool":return this.storeBool(e,a);case"true":return}if(Array.isArray(e)){if("Vector"===t.substr(0,6))this.writeInt(v,a+"[id]");else if("vector"!==t.substr(0,6))throw new Error("Invalid vector type "+t);const n=t.substr(7,t.length-8);this.writeInt(e.length,a+"[count]");for(let t=0;t<e.length;t++)this.storeObject(e[t],n,a+"["+t+"]");return!0}if("vector"===t.substr(0,6).toLowerCase())throw new Error("Invalid vector object");if(!Object(g.b)(e))throw new Error("Invalid object for type "+t);const n=this.mtproto?h.MTProto:h.API,s=e._;let i=!1;const r=n.constructors.find(e=>e.predicate===s);if((i="%"===t.charAt(0))&&(t=t.substr(1)),!r)throw new Error("No predicate "+s+" found");s===t&&(i=!0),i||this.writeInt(r.id,a+"["+s+"][id]");const p=e.pFlags,o={};for(const t of r.params){let n=t.type;if(-1!==n.indexOf("?")){const a=n.split("?"),s=a[0].split(".");if(!(e[s[0]]&1<<+s[1])){if(!("true"===a[1]?p&&p[t.name]:void 0!==e[t.name]))continue;e[s[0]]|=1<<+s[1]}n=a[1]}const i=this.storeObject(e[t.name],n,a+"["+s+"]["+t.name+"]");"#"===n&&(e[t.name]=e[t.name]||0,o[t.name]=i)}for(let t in o)this.intView[o[t]]=e[t];return r.type}}class S{constructor(e,t={}){this.offset=0,this.mtproto=!1,e instanceof ArrayBuffer?(this.buffer=e,this.byteView=new Uint8Array(this.buffer)):(this.buffer=e.buffer,this.byteView=e),this.override="override"in t?t.override:{},this.mtproto="mtproto"in t&&t.mtproto,this.debug=void 0!==t.debug&&t.debug}readInt(e){if(this.byteView.length-this.offset<4)throw console.error(this.byteView,this.offset),new Error("Nothing to fetch: "+e);const t=new Uint32Array(this.byteView.buffer.slice(this.offset,this.offset+4))[0];return this.debug&&console.log("<<<",t.toString(16),t,e,this.byteView.slice(this.offset-16,this.offset+16),this.byteView.slice(this.offset-16,this.offset+16).hex),this.offset+=4,t}fetchInt(e){return this.readInt((e||"")+":int")}fetchDouble(e){const t=new ArrayBuffer(8),a=new Int32Array(t),n=new Float64Array(t);return a[0]=this.readInt((e||"")+":double[low]"),a[1]=this.readInt((e||"")+":double[high]"),n[0]}fetchLong(e){const t=this.readInt((e||"")+":long[low]"),a=this.readInt((e||"")+":long[high]");return Object(g.c)(a,t)}fetchBool(e){const t=this.readInt((e||"")+":bool");return t===b||t!==_&&(this.offset-=4,this.fetchObject("Object",e))}fetchString(e){let t=this.byteView[this.offset++];254===t&&(t=this.byteView[this.offset++]|this.byteView[this.offset++]<<8|this.byteView[this.offset++]<<16);let a,n="";for(let e=0;e<t;e++)n+=String.fromCharCode(this.byteView[this.offset++]);for(;this.offset%4;)this.offset++;try{a=decodeURIComponent(escape(n))}catch(e){a=n}return this.debug&&console.log("<<<",a,(e||"")+":string"),a}fetchBytes(e){let t=this.byteView[this.offset++];254===t&&(t=this.byteView[this.offset++]|this.byteView[this.offset++]<<8|this.byteView[this.offset++]<<16);const a=this.byteView.subarray(this.offset,this.offset+t);for(this.offset+=t;this.offset%4;)this.offset++;return this.debug&&console.log("<<<",Object(n.g)(a),(e||"")+":bytes"),a}fetchIntBytes(e,t,a){if(e%32)throw new Error("Invalid bits: "+e);const s=e/8;if(t){const e=this.byteView.subarray(this.offset,this.offset+s);return this.offset+=s,e}const i=[];for(let e=0;e<s;e++)i.push(this.byteView[this.offset++]);return this.debug&&console.log("<<<",Object(n.g)(i),(a||"")+":int"+e),i}fetchRawBytes(e,t,a){if(!1===e&&(e=this.readInt((a||"")+"_length"))>this.byteView.byteLength)throw new Error("Invalid raw bytes length: "+e+", buffer len: "+this.byteView.byteLength);if(t){const t=new Uint8Array(e);return t.set(this.byteView.subarray(this.offset,this.offset+e)),this.offset+=e,t}const s=[];for(let t=0;t<e;t++)s.push(this.byteView[this.offset++]);return this.debug&&console.log("<<<",Object(n.g)(s),a||""),s}fetchObject(e,t){switch(e){case"#":case"int":return this.fetchInt(t);case"long":return this.fetchLong(t);case"int128":return this.fetchIntBytes(128,!1,t);case"int256":return this.fetchIntBytes(256,!1,t);case"int512":return this.fetchIntBytes(512,!1,t);case"string":return this.fetchString(t);case"bytes":return this.fetchBytes(t);case"double":return this.fetchDouble(t);case"Bool":return this.fetchBool(t);case"true":return!0}if(t=t||e||"Object","Vector"===e.substr(0,6)||"vector"===e.substr(0,6)){if("V"===e.charAt(0)){const a=this.readInt(t+"[id]"),n=a;if(n===P){const a=this.fetchBytes(t+"[packed_string]"),n=Object(f.gzipUncompress)(a);return new S(n).fetchObject(e,t)}if(n!==v)throw new Error("Invalid vector constructor "+a)}const a=this.readInt(t+"[count]"),n=[];if(a>0){const s=e.substr(7,e.length-8);for(let e=0;e<a;e++)n.push(this.fetchObject(s,t+"["+e+"]"))}return n}const a=this.mtproto?h.MTProto:h.API;let n=null,s=!1;if("%"===e.charAt(0)){const t=e.substr(1);if(n=a.constructors.find(e=>e.type===t),!n)throw new Error("Constructor not found for type: "+e)}else if(e.charAt(0)>=97&&e.charAt(0)<=122){if(n=a.constructors.find(t=>t.predicate===e),!n)throw new Error("Constructor not found for predicate: "+e)}else{const i=this.readInt(t+"[id]"),r=i;if(r===P){const a=this.fetchBytes(t+"[packed_string]"),n=Object(f.gzipUncompress)(a);return new S(n).fetchObject(e,t)}let p=a.constructorsIndex;if(!p){a.constructorsIndex=p={};for(let e=0,t=a.constructors.length;e<t;e++)p[a.constructors[e].id]=e}const o=p[r];if(o&&(n=a.constructors[o]),!n&&this.mtproto){const e=h.API;for(let t=0,a=e.constructors.length;t<a;t++)if(+e.constructors[t].id===r){n=e.constructors[t],delete this.mtproto,s=!0;break}}if(!n){let e,a;console.error("Constructor not found:",i);try{e=this.fetchInt(t),a=this.fetchInt(t)}catch(e){}throw new Error("Constructor not found: "+i+" "+e+" "+a+" "+t)}}const i=n.predicate,r={_:i},p=(this.mtproto?"mt_":"")+i;if(this.override[p])this.override[p](r,t+"["+i+"]");else for(let e=0,a=n.params.length;e<a;e++){const a=n.params[e];let s=a.type;"#"===s&&void 0===r.pFlags&&(r.pFlags={});const p=-1!==s.indexOf("?");if(p){const e=s.split("?"),t=e[0].split(".");if(!(r[t[0]]&1<<+t[1]))continue;s=e[1]}const o=this.fetchObject(s,t+"["+i+"]["+a.name+"]");p&&"true"===s?r.pFlags[a.name]=o:r[a.name]=o}return s&&(this.mtproto=!0),r}getOffset(){return this.offset}fetchEnd(){if(this.offset!==this.byteView.length)throw new Error("Fetch end with non-empty buffer");return!0}}i.a.TLDeserialization=S,i.a.TLSerialization=w;var I=a(3);const k=new class{constructor(){this.lastMessageId=[0,0],this.timeOffset=0,l.get("server_time_offset").then(e=>{e&&(this.timeOffset=e)})}generateId(){const e=Date.now();let t=[Math.floor(e/1e3)+this.timeOffset,e%1e3<<21|Object(s.a)(65535)<<3|4];(this.lastMessageId[0]>t[0]||this.lastMessageId[0]===t[0]&&this.lastMessageId[1]>=t[1])&&(t=[this.lastMessageId[0],this.lastMessageId[1]+4]),this.lastMessageId=t;return Object(g.c)(t[0],t[1])}applyServerTime(e,t){const a=e-(t=(t||Date.now())/1e3|0),n=Math.abs(this.timeOffset-a)>10;return l.set({server_time_offset:a}),this.lastMessageId=[0,0],this.timeOffset=a,n}};i.a.timeManager=k;var C=k;var A={id:1025907,hash:"452b0359b988148995f22ff0f4229750",version:"0.4.1",langPackVersion:"0.1.3",langPack:"macos",langPackCode:"en",domains:[],baseDcId:2};var M=function(e,t,a,n){return new(a||(a=Promise))((function(s,i){function r(e){try{o(n.next(e))}catch(e){i(e)}}function p(e){try{o(n.throw(e))}catch(e){i(e)}}function o(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,p)}o((n=n.apply(e,t||[])).next())}))};class E{constructor(e,t,a,s,p,o={}){this.dcId=e,this.authKey=t,this.authKeyId=a,this.transport=p,this.lastServerMessages=[],this.sentMessages={},this.pendingMessages={},this.pendingAcks=[],this.pendingResends=[],this.connectionInited=!1,this.seqNo=0,this.lastResendReq=null,this.isOnline=!1,this.lastResponseTime=0,this.debug=i.b||r.a.debug,this.authKeyUint8=Object(n.k)(this.authKey),this.serverSalt=Object(n.k)(s),this.isFileUpload=!!o.fileUpload,this.isFileDownload=!!o.fileDownload,this.isFileNetworker=this.isFileUpload||this.isFileDownload;const d=this.isFileUpload?"-U":this.isFileDownload?"-D":"";this.name="NET-"+e+d,this.log=Object(m.b)(this.name,m.a.log|m.a.error|m.a.debug|m.a.warn),this.log("constructor"),this.updateSession(),this.transport.networker=this,this.transport.connected&&this.setConnectionStatus(!0)}updateSession(){this.seqNo=0,this.prevSessionId=this.sessionId,this.sessionId=new Uint8Array(8).randomize()}updateSentMessage(e){const t=this.sentMessages[e];return!!t&&(t.container&&function(e,t){for(let a=e.length-1;a>=0;--a)t(e[a],a,e)}(t.inner,(e,a)=>{const n=this.updateSentMessage(e);n?t.inner[a]=n.msg_id:t.inner.splice(a,1)}),t.msg_id=C.generateId(),t.seq_no=this.generateSeqNo(t.notContentRelated||t.container),this.sentMessages[t.msg_id]=t,delete this.sentMessages[e],t)}generateSeqNo(e){let t=2*this.seqNo;return e||(t++,this.seqNo++),t}wrapMtpCall(e,t,a){const n=new w({mtproto:!0});n.storeMethod(e,t);const s=C.generateId(),i=this.generateSeqNo(),p={msg_id:s,seq_no:i,body:n.getBytes(!0)};return r.a.debug&&this.log("MT call",e,t,s,i),this.pushMessage(p,a)}wrapMtpMessage(e,t){const a=new w({mtproto:!0});a.storeObject(e,"Object");const n=C.generateId(),s=this.generateSeqNo(t.notContentRelated),i={msg_id:n,seq_no:s,body:a.getBytes(!0)};return r.a.debug&&this.log("MT message",e,n,s),this.pushMessage(i,t)}wrapApiCall(e,t={},a={}){const n=new w(a);if(!this.connectionInited){const e=h.API.methods.find(e=>"invokeWithLayer"===e.method);if(!e)throw new Error("no invokeWithLayer!");n.storeInt(+e.id>>>0,"invokeWithLayer"),n.storeInt(h.layer,"layer");const t=h.API.methods.find(e=>"initConnection"===e.method);if(!t)throw new Error("no initConnection!");n.storeInt(+t.id>>>0,"initConnection"),n.storeInt(0,"flags"),n.storeInt(A.id,"api_id"),n.storeString(navigator.userAgent||"Unknown UserAgent","device_model"),n.storeString(navigator.platform||"Unknown Platform","system_version"),n.storeString(A.version,"app_version"),n.storeString(navigator.language||"en","system_lang_code"),n.storeString(A.langPack,"lang_pack"),n.storeString(navigator.language||"en","lang_code")}if(a.afterMessageId){const e=h.API.methods.find(e=>"invokeAfterMsg"===e.method);if(!e)throw new Error("no invokeAfterMsg!");this.debug&&this.log("Api call options.afterMessageId!"),n.storeInt(+e.id>>>0,"invokeAfterMsg"),n.storeLong(a.afterMessageId,"msg_id")}a.resultType=n.storeMethod(e,t);const s={msg_id:C.generateId(),seq_no:this.generateSeqNo(),body:n.getBytes(!0),isAPI:!0};return r.a.debug?this.log("Api call",e,s,t,a):this.debug&&this.log("Api call",e,t,a),this.pushMessage(s,a)}pushMessage(e,t){const a=new Promise((a,n)=>{this.sentMessages[e.msg_id]=Object.assign(e,t,t.notContentRelated?void 0:{deferred:{resolve:a,reject:n}}),this.pendingMessages[e.msg_id]=0,t.noSchedule||this.scheduleRequest(),Object(g.b)(t)&&(t.messageId=e.msg_id)});if(!t.notContentRelated&&!t.noResponse){const t=setTimeout(()=>{this.lastResponseTime&&Date.now()-this.lastResponseTime<5e3||(this.log.error("timeout",e),this.setConnectionStatus(!1))},5e3);a.finally(()=>{clearTimeout(t),this.setConnectionStatus(!0)})}return a}setConnectionStatus(e){const t=this.isOnline!==e;this.isOnline=e,t&&V.onConnectionStatusChange&&V.onConnectionStatusChange({_:"networkerStatus",online:this.isOnline,dcId:this.dcId,name:this.name,isFileNetworker:this.isFileNetworker,isFileDownload:this.isFileDownload,isFileUpload:this.isFileUpload})}pushResend(e,t=100){const a=t?Date.now()+t:0,n=this.sentMessages[e];if(n.container)for(const e of n.inner)this.pendingMessages[e]=a;else this.pendingMessages[e]=a;n.acked&&this.log.error("pushResend: acked message?",n),this.debug&&this.log("pushResend:",e,n,this.pendingMessages,t),this.scheduleRequest(t)}getMsgKey(e,t){return M(this,void 0,void 0,(function*(){const a=t?0:8,s=Object(n.a)(this.authKeyUint8.subarray(88+a,88+a+32),e),i=yield I.a.sha256Hash(s);return new Uint8Array(i).subarray(8,24)}))}getAesKeyIv(e,t){const a=t?0:8,n=new Uint8Array(52),s=new Uint8Array(52),i=[];return n.set(e,0),n.set(this.authKeyUint8.subarray(a,a+36),16),i.push(I.a.sha256Hash(n)),s.set(this.authKeyUint8.subarray(40+a,40+a+36),0),s.set(e,36),i.push(I.a.sha256Hash(s)),Promise.all(i).then(e=>{const t=new Uint8Array(32),a=new Uint8Array(32),n=new Uint8Array(e[0]),s=new Uint8Array(e[1]);return t.set(n.subarray(0,8)),t.set(s.subarray(8,24),8),t.set(n.subarray(24,32),24),a.set(s.subarray(0,8)),a.set(n.subarray(8,24),8),a.set(s.subarray(24,32),24),[t,a]})}performScheduledRequest(){if(this.pendingAcks.length){const e=this.pendingAcks.slice();this.wrapMtpMessage({_:"msgs_ack",msg_ids:e},{notContentRelated:!0,noSchedule:!0})}if(this.pendingResends.length){const e=this.pendingResends.slice(),t={noSchedule:!0,notContentRelated:!0,messageId:""};this.wrapMtpMessage({_:"msg_resend_req",msg_ids:e},t),this.lastResendReq={req_msg_id:t.messageId,resend_msg_ids:e}}let e;const t=[];let a=0,n=!1;const s=Object(g.d)(Object.keys(this.pendingMessages));for(const i of s){const s=this.sentMessages[i];if(s){const i=s.body.length+32;if(a+i>655360&&(this.log.warn("lengthOverflow",s,t),n=!0,e))break;t.push(s),a+=i,e=s}delete this.pendingMessages[i]}if(!t.length)return;if(t.length>1){const n=this.generateContainerMessage(a,t);e=n.messageWithBody,this.sentMessages[e.msg_id]=n.message}else this.sentMessages[e.msg_id]=e;this.pendingAcks=[];this.sendEncryptedRequest(e);this.cleanupSent(),n&&this.scheduleRequest()}generateContainerMessage(e,t){const a=new w({mtproto:!0,startMaxLength:e+64});a.storeInt(1945237724,"CONTAINER[id]"),a.storeInt(t.length,"CONTAINER[count]");const n=[];t.forEach((e,t)=>{n.push(e.msg_id),a.storeLong(e.msg_id,"CONTAINER["+t+"][msg_id]"),a.storeInt(e.seq_no,"CONTAINER["+t+"][seq_no]"),a.storeInt(e.body.length,"CONTAINER["+t+"][bytes]"),a.storeRawBytes(e.body,"CONTAINER["+t+"][body]")});const s={msg_id:C.generateId(),seq_no:this.generateSeqNo(!0),container:!0,inner:n};return r.a.debug&&this.log.warn("Container",n,s.msg_id,s.seq_no),{message:s,messageWithBody:Object.assign({body:a.getBytes(!0)},s)}}getEncryptedMessage(e){return M(this,void 0,void 0,(function*(){const t=yield this.getMsgKey(e,!0),a=yield this.getAesKeyIv(t,!0);return{bytes:yield I.a.aesEncrypt(e,a[0],a[1]),msgKey:t}}))}getDecryptedMessage(e,t){return this.getAesKeyIv(e,!1).then(e=>I.a.aesDecrypt(t,e[0],e[1]))}getEncryptedOutput(e){const t=new w({startMaxLength:e.body.length+2048});t.storeIntBytes(this.serverSalt,64,"salt"),t.storeIntBytes(this.sessionId,64,"session_id"),t.storeLong(e.msg_id,"message_id"),t.storeInt(e.seq_no,"seq_no"),t.storeInt(e.body.length,"message_data_length"),t.storeRawBytes(e.body,"message_data");const a=t.getBuffer(),i=16-t.offset%16+16*(1+Object(s.a)(5)),r=new Uint8Array(i).randomize(),p=Object(n.a)(a,r);return this.getEncryptedMessage(p).then(e=>{const t=new w({startMaxLength:e.bytes.length+256});t.storeIntBytes(this.authKeyId,64,"auth_key_id"),t.storeIntBytes(e.msgKey,128,"msg_key"),t.storeRawBytes(e.bytes,"encrypted_data");return t.getBytes(!0)})}sendEncryptedRequest(e){return this.getEncryptedOutput(e).then(t=>{this.debug&&this.log("sendEncryptedRequest: launching message into space:",e,[e.msg_id].concat(e.inner||[]));return this.transport.send(t)})}parseResponse(e){this.lastResponseTime=Date.now();const t=new S(e),a=t.fetchIntBytes(64,!0,"auth_key_id");if(!Object(n.c)(a,this.authKeyId))throw new Error("[MT] Invalid server auth_key_id: "+a.hex);const s=t.fetchIntBytes(128,!0,"msg_key"),i=t.fetchRawBytes(e.byteLength-t.getOffset(),!0,"encrypted_data");return this.getDecryptedMessage(s,i).then(e=>this.getMsgKey(e,!1).then(t=>{if(!Object(n.c)(s,t))throw this.log.warn("[MT] msg_keys",s,t),this.updateSession(),new Error("[MT] server msgKey mismatch, updating session");let a=new S(e,{mtproto:!0});a.fetchIntBytes(64,!1,"salt");const i=a.fetchIntBytes(64,!1,"session_id"),r=a.fetchLong("message_id");if(!(Object(n.c)(i,this.sessionId)||this.prevSessionId&&Object(n.c)(i,this.prevSessionId)))throw this.log.warn("Sessions",i,this.sessionId,this.prevSessionId,e),new Error("[MT] Invalid server session_id: "+Object(n.g)(i));const p=a.fetchInt("seq_no"),o=e.byteLength,m=a.fetchInt("message_data[length]");let d=a.getOffset();if(m%4||m>o-d)throw new Error("[MT] Invalid body length: "+m);const y=a.fetchRawBytes(m,!0,"message_data");d=a.getOffset();const c=o-d;if(c<12||c>1024)throw new Error("[MT] Invalid padding length: "+c);a=new S(y,{mtproto:!0,override:{mt_message:(e,t)=>{e.msg_id=a.fetchLong(t+"[msg_id]"),e.seqno=a.fetchInt(t+"[seqno]"),e.bytes=a.fetchInt(t+"[bytes]");const n=a.getOffset();try{e.body=a.fetchObject("Object",t+"[body]")}catch(t){this.log.error("parse error",t.message,t.stack),e.body={_:"parse_error",error:t}}a.offset!==n+e.bytes&&(a.offset=n+e.bytes)},mt_rpc_result:(e,t)=>{e.req_msg_id=a.fetchLong(t+"[req_msg_id]");const n=this.sentMessages[e.req_msg_id],s=n&&n.resultType||"Object";e.req_msg_id&&!n||(e.result=a.fetchObject(s,t+"[result]"))}}});return{response:a.fetchObject("","INPUT"),messageId:r,sessionId:i,seqNo:p}}))}applyServerSalt(e){const t=Object(f.longToBytes)(e);l.set({["dc"+this.dcId+"_server_salt"]:Object(n.g)(t)}),this.serverSalt=new Uint8Array(t)}scheduleRequest(e){const t=Date.now()+(e||0);if(this.nextReq&&(void 0===e||this.nextReq<=t))return;this.nextReqTimeout&&clearTimeout(this.nextReqTimeout);const a=()=>{this.nextReqTimeout=0,this.nextReq=0,this.performScheduledRequest()};this.nextReq=t,e?this.nextReqTimeout=self.setTimeout(a,e):a()}ackMessage(e){this.pendingAcks.push(e),this.scheduleRequest()}reqResendMessage(e){this.debug&&this.log("Req resend",e),this.pendingResends.push(e),this.scheduleRequest(100)}cleanupSent(){let e=!1;return Object.keys(this.sentMessages).forEach(t=>{const a=this.sentMessages[t];if(a.notContentRelated&&void 0===this.pendingMessages[t])delete this.sentMessages[t];else if(a.container){for(const t of a.inner)if(void 0!==this.sentMessages[t])return void(e=!0);delete this.sentMessages[t]}else e=!0}),!e}processMessageAck(e){const t=this.sentMessages[e];t&&!t.acked&&(delete t.body,t.acked=!0)}processError(e){const t=(e.error_message||"").match(/^([A-Z_0-9]+\b)(: (.+))?/)||[];return e.error_code=e.error_code,{code:!e.error_code||e.error_code<=0?500:e.error_code,type:t[1]||"UNKNOWN",description:t[3]||"CODE#"+e.error_code+" "+e.error_message,originalError:e}}resend(){for(const e in this.sentMessages){const t=this.sentMessages[e];(t.body||t.container)&&this.pushResend(e)}}processMessage(e,t,a){if("messageEmpty"===e._)return void this.log.warn("processMessage: messageEmpty",e,t);if(parseInt(t.substr(0,-10),10)%2)this.log.warn("Server even message id: ",t,e);else switch(e._){case"msg_container":for(const t of e.messages)this.processMessage(t,t.msg_id,a);break;case"bad_server_salt":this.log("Bad server salt",e),this.applyServerSalt(e.new_server_salt),this.sentMessages[e.bad_msg_id]&&this.pushResend(e.bad_msg_id),this.ackMessage(t);break;case"bad_msg_notification":switch(this.log.error("Bad msg notification",e),e.error_code){case 16:case 17:case 32:case 33:case 64:{const a=Object(u.y)(t,10);Object(u.x)(a,32);const n=C.applyServerTime(+Object(u.d)(a,10));(17===e.error_code||n)&&(this.log("Update session"),this.updateSession());const s=this.updateSentMessage(e.bad_msg_id);s&&this.pushResend(s.msg_id)}}break;case"message":if(-1!==this.lastServerMessages.indexOf(t))return void this.ackMessage(t);this.lastServerMessages.push(t),this.lastServerMessages.length>100&&this.lastServerMessages.shift(),this.processMessage(e.body,e.msg_id,a);break;case"new_session_created":this.ackMessage(t),this.debug&&this.log.debug("new_session_created",e),this.processMessageAck(e.first_msg_id),this.applyServerSalt(e.server_salt),l.get("dc").then(t=>{t===this.dcId&&!this.isFileNetworker&&V.updatesProcessor&&V.updatesProcessor(e)});break;case"msgs_ack":for(const t of e.msg_ids)this.processMessageAck(t);break;case"msg_detailed_info":if(!this.sentMessages[e.msg_id]){this.ackMessage(e.answer_msg_id);break}case"msg_new_detailed_info":if(this.pendingAcks.indexOf(e.answer_msg_id))break;this.reqResendMessage(e.answer_msg_id);break;case"msgs_state_info":if(this.ackMessage(e.answer_msg_id),this.lastResendReq&&this.lastResendReq.req_msg_id===e.req_msg_id&&this.pendingResends.length)for(const e of this.lastResendReq.resend_msg_ids){const t=this.pendingResends.indexOf(e);-1!==t&&this.pendingResends.splice(t,1)}break;case"rpc_result":{this.ackMessage(t);const a=e.req_msg_id,n=this.sentMessages[a];if(this.processMessageAck(a),n){const t=n.deferred;if("rpc_error"===e.result._){const a=this.processError(e.result);this.log("Rpc error",a),t&&t.reject(a)}else t&&n.deferred.resolve(e.result),n.isAPI&&!this.connectionInited&&(this.connectionInited=!0);delete this.sentMessages[a]}else this.debug&&this.log("Rpc result for unknown message:",a,e);break}case"pong":if(this.transport.networker){const t=e.msg_id,a=this.sentMessages[t];a&&(a.deferred.resolve(e),delete this.sentMessages[t])}break;default:this.ackMessage(t),null!==V.updatesProcessor&&V.updatesProcessor(e)}}}var V=new class{constructor(){this.updatesProcessor=null,this.onConnectionStatusChange=null}setUpdatesProcessor(e){this.updatesProcessor=e}getNetworker(e,t,a,n,s,i){return new E(e,t,a,n,s,i)}};class U{constructor(e){this._constructor(e)}_constructor(e=!1){this.reuseResults=e,this.listeners={},this.listenerResults={}}addEventListener(e,t,a){var n;this.listenerResults.hasOwnProperty(e)&&(t(...this.listenerResults[e]),a)||(null!==(n=this.listeners[e])&&void 0!==n?n:this.listeners[e]=[]).push({callback:t,once:a})}removeEventListener(e,t){this.listeners[e]&&this.listeners[e].findAndSplice(e=>e.callback===t)}dispatchEvent(e,...t){this.reuseResults&&(this.listenerResults[e]=t);const a=[],n=this.listeners[e];if(n){n.slice().forEach(s=>{-1!==n.findIndex(e=>e.callback===s.callback)&&(a.push(s.callback(...t)),s.once&&this.removeEventListener(e,s.callback))})}return a}cleanup(){this.listeners={},this.listenerResults={}}}class D extends U{constructor(e,t,a){super(),this.dcId=e,this.url=t,this.debug=r.a.debug&&!1,this.handleOpen=()=>{this.log("opened"),this.debug&&this.log.debug("sending init packet"),this.dispatchEvent("open")},this.handleError=e=>{this.log.error("handleError",e),this.close()},this.handleClose=()=>{this.log("closed"),this.removeListeners(),this.dispatchEvent("close")},this.handleMessage=e=>{this.debug&&this.log.debug("<-","handleMessage",e.data.byteLength),this.dispatchEvent("message",e.data)},this.send=e=>{this.debug&&this.log.debug("-> body length to send:",e.length),this.ws.send(e)};let n=m.a.error|m.a.log;return this.debug&&(n|=m.a.debug),this.log=Object(m.b)("WS-"+e+a,n),this.log("constructor"),this.connect(),this}removeListeners(){this.ws&&(this.ws.removeEventListener("open",this.handleOpen),this.ws.removeEventListener("close",this.handleClose),this.ws.removeEventListener("error",this.handleError),this.ws.removeEventListener("message",this.handleMessage),this.ws=void 0)}connect(){this.ws=new WebSocket(this.url,"binary"),this.ws.binaryType="arraybuffer",this.ws.addEventListener("open",this.handleOpen),this.ws.addEventListener("close",this.handleClose),this.ws.addEventListener("error",this.handleError),this.ws.addEventListener("message",this.handleMessage)}close(){if(this.ws){this.log.error("close execution");try{this.ws.close()}catch(e){}this.handleClose()}}}var R=a(8);class B{constructor(e){this._counter=e}increment(){for(let e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}}}class T{constructor(e,t){this._remainingCounter=null,this._remainingCounterIndex=16,this._counter=new B(t),this._aes=new R.b(e)}update(e){const t=e.slice();for(let e=0;e<t.length;e++)16===this._remainingCounterIndex&&(this._remainingCounter=new Uint8Array(Object(n.f)(this._aes.encrypt(this._counter._counter))),this._remainingCounterIndex=0,this._counter.increment()),t[e]^=this._remainingCounter[this._remainingCounterIndex++];return t}}class x{init(e){const t=new Uint8Array(64);for(t.randomize();;){let e=t[3]<<24|t[2]<<16|t[1]<<8|t[0],a=t[7]<<24|t[6]<<16|t[5]<<8|t[4];if(239!==t[0]&&1145128264!==e&&1414745936!==e&&542393671!==e&&1230262351!==e&&4008636142!==e&&3722304989!==e&&0!==a)break;t.randomize()}const a=t.slice().reverse(),n=t.slice(8,40),s=t.slice(40,56),i=a.slice(8,40),r=a.slice(40,56);this.encNew=new T(n,s),this.decNew=new T(i,r),t.set(e.obfuscateTag,56);const p=this.encode(t);return t.set(p.slice(56,64),56),t}encode(e){return this.encNew.update(e)}decode(e){return this.decNew.update(e)}}var O=new class{constructor(){this.tag=238,this.obfuscateTag=new Uint8Array([this.tag,this.tag,this.tag,this.tag])}encodePacket(e){e.length%4!=0&&console.error("Encode error!",e.length,e);const t=e.length;return new Uint8Array(new Int32Array([t]).buffer).concat(e)}readPacket(e){const t=e[0]|e[1]<<8|e[2]<<16|e[3]<<24;return e.slice(4,4+t)}};class F{constructor(e,t,a,n,s){this.Connection=e,this.dcId=t,this.url=a,this.logSuffix=n,this.retryTimeout=s,this.codec=O,this.obfuscation=new x,this.pending=[],this.debug=r.a.debug&&!1,this.connected=!1,this.onOpen=()=>{this.connected=!0;const e=this.obfuscation.init(this.codec);if(this.connection.send(e),this.networker)this.pending.length=0,this.networker.setConnectionStatus(!0),this.networker.cleanupSent(),this.networker.resend();else for(const e of this.pending)e.encoded&&e.body&&(e.encoded=this.encodeBody(e.body));setTimeout(()=>{this.releasePending()},0)},this.onMessage=e=>{let t=this.obfuscation.decode(new Uint8Array(e));if(t=this.codec.readPacket(t),this.networker)return this.debug&&this.log.debug("redirecting to networker",t.length),void this.networker.parseResponse(t).then(e=>{this.debug&&this.log.debug("redirecting to networker response:",e);try{this.networker.processMessage(e.response,e.messageId,e.sessionId)}catch(e){this.log.error("handleMessage networker processMessage error",e)}}).catch(e=>{this.log.error("handleMessage networker parseResponse error",e)});const a=this.pending.shift();a?a.resolve(t):this.debug&&this.log.debug("no pending for res:",t.hex)},this.onClose=()=>{this.connected=!1,this.connection.removeEventListener("open",this.onOpen),this.connection.removeEventListener("close",this.onClose),this.connection.removeEventListener("message",this.onMessage),this.connection=void 0;const e=Date.now()-this.lastCloseTime,t=!isNaN(e)&&e<this.retryTimeout?this.retryTimeout-e:0;this.networker&&(this.networker.setConnectionStatus(!1),this.pending.length=0),this.log("will try to reconnect after timeout:",t/1e3),setTimeout(()=>{if(this.log("trying to reconnect..."),this.lastCloseTime=Date.now(),!this.networker)for(const e of this.pending)e.bodySent&&(e.bodySent=!1);this.connect()},t)};let i=m.a.error|m.a.log;this.debug&&(i|=m.a.debug),this.log=Object(m.b)("TCP-"+t+n,i),this.log("constructor"),this.connect()}connect(){this.connection=new this.Connection(this.dcId,this.url,this.logSuffix),this.connection.addEventListener("open",this.onOpen),this.connection.addEventListener("close",this.onClose),this.connection.addEventListener("message",this.onMessage)}encodeBody(e){const t=this.codec.encodePacket(e);return this.obfuscation.encode(t)}send(e){this.debug&&this.log.debug("-> body length to pending:",e.length);const t=this.connected?this.encodeBody(e):void 0;if(!this.networker){const a=new Promise((a,n)=>{this.pending.push({resolve:a,reject:n,body:e,encoded:t})});return this.releasePending(),a}this.pending.push({body:e,encoded:t}),this.releasePending()}releasePending(){if(!this.connected)return;let e=this.pending.length;for(let t=0;t<e;++t){const a=this.pending[t],{body:n,bodySent:s}=a;let i=a.encoded;n&&!s&&(this.debug&&this.log.debug("-> body length to send:",n.length),i||(i=a.encoded=this.encodeBody(n)),this.connection.send(i),a.resolve?a.bodySent=!0:(this.pending.splice(t--,1),e--))}}}const L=navigator?navigator.userAgent:null,j=(navigator.userAgent.search(/OS X|iPhone|iPad|iOS/i),navigator.userAgent.toLowerCase().indexOf("android"),/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor),"undefined"!=typeof window?window:self),N=((/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&j.MSStream,!!("safari"in j)||!(!L||!(/\b(iPad|iPhone|iPod)\b/.test(L)||L.match("Safari")&&!L.match("Chrome")))),q=(navigator.userAgent.search(/iOS|iPhone OS|Android|BlackBerry|BB10|Series ?[64]0|J2ME|MIDP|opera mini|opera mobi|mobi.+Gecko|Windows Phone/i),"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope),G="undefined"!=typeof ServiceWorkerGlobalScope&&self instanceof ServiceWorkerGlobalScope,z=(e,...t)=>{self.clients.matchAll({includeUncontrolled:!1,type:"window"}).then(a=>{a.length&&a.slice(e?0:-1).forEach(e=>{e.postMessage(...t)})})},K=(...e)=>{self.postMessage(...e)},H=()=>{},W=G?z.bind(null,!1):q?K:H,Z=G?z.bind(null,!0):q?K:H;let J=0;const Q=r.a.test?"_test":"";class X extends U{constructor(e,t,a){super(),this.dcId=e,this.url=t,this.id=++J,Y.set(this.id,this),Z({type:"socketProxy",payload:{type:"setup",payload:{dcId:e,url:t,logSuffix:a},id:this.id}})}send(e){const t={type:"socketProxy",payload:{type:"send",payload:e,id:this.id}};Z(t)}close(){const e={type:"socketProxy",payload:{type:"close",id:this.id}};Z(e)}}const Y=new Map;var $=new class{constructor(){this.sslSubdomains=["pluto","venus","aurora","vesta","flora"],this.dcOptions=r.a.test?[{id:1,host:"149.154.175.10",port:80},{id:2,host:"149.154.167.40",port:80},{id:3,host:"149.154.175.117",port:80}]:[{id:1,host:"149.154.175.50",port:80},{id:2,host:"149.154.167.50",port:80},{id:3,host:"149.154.175.100",port:80},{id:4,host:"149.154.167.91",port:80},{id:5,host:"149.154.171.5",port:80}],this.chosenServers={},this.transportSocket=(e,t)=>{const a=this.sslSubdomains[e-1];return new F(N&&q&&void 0!==X?X:D,e,"wss://"+a+".web.telegram.org/"+("apiws"+Q),"upload"===t?"-U":"download"===t?"-D":"",1e4)}}chooseServer(e,t="client",a="websocket",n=!0){this.chosenServers.hasOwnProperty(a)||(this.chosenServers[a]={client:{},download:{},upload:{}});const s=this.chosenServers[a][t];e in s||(s[e]=[]);const i=s[e];if(!i.length||!n){let a;return a=this.transportSocket(e,t),a?(n&&i.push(a),a):(console.error("No chosenServer!",e),null)}return i[0]}},ee=function(e,t,a,n){return new(a||(a=Promise))((function(s,i){function r(e){try{o(n.next(e))}catch(e){i(e)}}function p(e){try{o(n.throw(e))}catch(e){i(e)}}function o(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,p)}o((n=n.apply(e,t||[])).next())}))};var te=new class{constructor(){this.publisKeysHex=[{modulus:"c150023e2f70db7985ded064759cfecf0af328e69a41daf4d6f01b538135a6f91f8f8b2a0ec9ba9720ce352efcf6c5680ffc424bd634864902de0b4bd6d49f4e580230e3ae97d95c8b19442b3c0a10d8f5633fecedd6926a7f6dab0ddb7d457f9ea81b8465fcd6fffeed114011df91c059caedaf97625f6c96ecc74725556934ef781d866b34f011fce4d835a090196e9a5f0e4449af7eb697ddb9076494ca5f81104a305b6dd27665722c46b60e5df680fb16b210607ef217652e60236c255f6a28315f4083a96791d7214bf64c1df4fd0db1944fb26a2a57031b32eee64ad15a8ba68885cde74a5bfc920f6abf59ba5c75506373e7130f9042da922179251f",exponent:"010001"},{modulus:"aeec36c8ffc109cb099624685b97815415657bd76d8c9c3e398103d7ad16c9bba6f525ed0412d7ae2c2de2b44e77d72cbf4b7438709a4e646a05c43427c7f184debf72947519680e651500890c6832796dd11f772c25ff8f576755afe055b0a3752c696eb7d8da0d8be1faf38c9bdd97ce0a77d3916230c4032167100edd0f9e7a3a9b602d04367b689536af0d64b613ccba7962939d3b57682beb6dae5b608130b2e52aca78ba023cf6ce806b1dc49c72cf928a7199d22e3d7ac84e47bc9427d0236945d10dbd15177bab413fbf0edfda09f014c7a7da088dde9759702ca760af2b8e4e97cc055c617bd74c3d97008635b98dc4d621b4891da9fb0473047927",exponent:"010001"},{modulus:"bdf2c77d81f6afd47bd30f29ac76e55adfe70e487e5e48297e5a9055c9c07d2b93b4ed3994d3eca5098bf18d978d54f8b7c713eb10247607e69af9ef44f38e28f8b439f257a11572945cc0406fe3f37bb92b79112db69eedf2dc71584a661638ea5becb9e23585074b80d57d9f5710dd30d2da940e0ada2f1b878397dc1a72b5ce2531b6f7dd158e09c828d03450ca0ff8a174deacebcaa22dde84ef66ad370f259d18af806638012da0ca4a70baa83d9c158f3552bc9158e69bf332a45809e1c36905a5caa12348dd57941a482131be7b2355a5f4635374f3bd3ddf5ff925bf4809ee27c1e67d9120c5fe08a9de458b1b4a3c5d0a428437f2beca81f4e2d5ff",exponent:"010001"},{modulus:"b3f762b739be98f343eb1921cf0148cfa27ff7af02b6471213fed9daa0098976e667750324f1abcea4c31e43b7d11f1579133f2b3d9fe27474e462058884e5e1b123be9cbbc6a443b2925c08520e7325e6f1a6d50e117eb61ea49d2534c8bb4d2ae4153fabe832b9edf4c5755fdd8b19940b81d1d96cf433d19e6a22968a85dc80f0312f596bd2530c1cfb28b5fe019ac9bc25cd9c2a5d8a0f3a1c0c79bcca524d315b5e21b5c26b46babe3d75d06d1cd33329ec782a0f22891ed1db42a1d6c0dea431428bc4d7aabdcf3e0eb6fda4e23eb7733e7727e9a1915580796c55188d2596d2665ad1182ba7abf15aaa5a8b779ea996317a20ae044b820bff35b6e8a1",exponent:"010001"},{modulus:"be6a71558ee577ff03023cfa17aab4e6c86383cff8a7ad38edb9fafe6f323f2d5106cbc8cafb83b869cffd1ccf121cd743d509e589e68765c96601e813dc5b9dfc4be415c7a6526132d0035ca33d6d6075d4f535122a1cdfe017041f1088d1419f65c8e5490ee613e16dbf662698c0f54870f0475fa893fc41eb55b08ff1ac211bc045ded31be27d12c96d8d3cfc6a7ae8aa50bf2ee0f30ed507cc2581e3dec56de94f5dc0a7abee0be990b893f2887bd2c6310a1e0a9e3e38bd34fded2541508dc102a9c9b4c95effd9dd2dfe96c29be647d6c69d66ca500843cfaed6e440196f1dbe0e2e22163c61ca48c79116fa77216726749a976a1c4b0944b5121e8c01",exponent:"010001"}],this.publicKeysParsed={},this.prepared=!1,this.preparePromise=null}prepare(){return this.preparePromise?this.preparePromise:this.prepared?Promise.resolve():this.preparePromise=Promise.all(this.publisKeysHex.map(e=>{let t=new w;t.storeBytes(Object(n.e)(e.modulus),"n"),t.storeBytes(Object(n.e)(e.exponent),"e");let a=t.getBuffer();return I.a.sha1Hash(a).then(t=>{let a=Object(n.d)(t).slice(-8);a.reverse(),this.publicKeysParsed[Object(n.g)(a).toLowerCase()]={modulus:e.modulus,exponent:e.exponent}})})).then(()=>{this.prepared=!0,this.preparePromise=null})}select(e){return ee(this,void 0,void 0,(function*(){var t,a,n;for(yield this.prepare(),n=0;n<e.length;n++)if((t=Object(u.d)(Object(u.y)(e[n],10),16).toLowerCase()).length<16&&(t=new Array(16-t.length).fill("0").join("")+t),a=this.publicKeysParsed[t])return Object.assign({fingerprint:e[n]},a);return!1}))}},ae=function(e,t,a,n){return new(a||(a=Promise))((function(s,i){function r(e){try{o(n.next(e))}catch(e){i(e)}}function p(e){try{o(n.throw(e))}catch(e){i(e)}}function o(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,p)}o((n=n.apply(e,t||[])).next())}))};var ne=new class{constructor(){this.cached={},this.log=Object(m.b)("AUTHORIZER",m.a.error|m.a.log)}mtpSendPlainRequest(e,t){const a=t.byteLength,n=new w;n.storeLongP(0,0,"auth_key_id"),n.storeLong(C.generateId(),"msg_id"),n.storeInt(a,"request_length");const s=n.getBytes(!0),r=new Uint8Array(s.byteLength+a);r.set(s),r.set(t,s.length);const p=$.chooseServer(e),o={code:406,type:"NETWORK_BAD_RESPONSE",transport:p};i.b&&this.log("mtpSendPlainRequest: creating requestPromise");return p.send(r).then(e=>{if(i.b&&this.log("mtpSendPlainRequest: in good sector",e),!e||!e.byteLength)return Promise.reject(o);try{const t=new S(e,{mtproto:!0}),a=t.fetchLong("auth_key_id");"0"!==a&&this.log.error("auth_key_id !== 0",a);const n=t.fetchLong("msg_id");"0"===n&&this.log.error("msg_id === 0",n);const s=t.fetchInt("msg_len");return s||this.log.error("no msg_len",s),t}catch(e){this.log.error("mtpSendPlainRequest: deserialization went bad",e);throw Object.assign(o,{originalError:e})}},e=>(e.message||e.type||(e=Object.assign(o,{originalError:e})),Promise.reject(e)))}mtpSendReqPQ(e){return ae(this,void 0,void 0,(function*(){var t=new w({mtproto:!0});t.storeMethod("req_pq_multi",{nonce:e.nonce}),te.prepare().then(()=>{}),i.b&&this.log("Send req_pq",e.nonce.hex);try{var a=yield this.mtpSendPlainRequest(e.dcId,t.getBytes(!0))}catch(e){throw this.log.error("req_pq error",e.message),e}var s=a.fetchObject("ResPQ");if("resPQ"!==s._)throw new Error("[MT] resPQ response invalid: "+s._);if(!Object(n.c)(e.nonce,s.nonce))throw this.log.error(e.nonce,s.nonce),new Error("[MT] resPQ nonce mismatch");e.serverNonce=new Uint8Array(s.server_nonce),e.pq=s.pq,e.fingerprints=s.server_public_key_fingerprints,i.b&&this.log("Got ResPQ",Object(n.g)(e.serverNonce),Object(n.g)(e.pq),e.fingerprints);let r=yield te.select(e.fingerprints);if(!r)throw new Error("[MT] No public key found");e.publicKey=r,i.b&&this.log("PQ factorization start",e.pq);try{var p=yield I.a.factorize(e.pq)}catch(e){throw this.log.error("worker error factorize",e),e}return e.p=p[0],e.q=p[1],i.b&&this.log("PQ factorization done",p),this.mtpSendReqDhParams(e)}))}mtpSendReqDhParams(e){return ae(this,void 0,void 0,(function*(){e.newNonce=new Uint8Array(32).randomize();let t={_:"p_q_inner_data",pq:e.pq,p:e.p,q:e.q,nonce:e.nonce,server_nonce:e.serverNonce,new_nonce:e.newNonce},a=new w({mtproto:!0});a.storeObject(t,"P_Q_inner_data","DECRYPTED_DATA");let s=a.getBytes(!0),r=(yield I.a.sha1Hash(s)).concat(s),p=yield I.a.rsaEncrypt(e.publicKey,r),o={nonce:e.nonce,server_nonce:e.serverNonce,p:e.p,q:e.q,public_key_fingerprint:e.publicKey.fingerprint,encrypted_data:p};var m=new w({mtproto:!0});m.storeMethod("req_DH_params",o);let d=m.getBytes(!0);i.b&&this.log("Send req_DH_params",o);try{var y=yield this.mtpSendPlainRequest(e.dcId,d)}catch(e){throw this.log.error("Send req_DH_params FAIL!",e),e}var c=y.fetchObject("Server_DH_Params","RESPONSE");if(i.b&&this.log("Sent req_DH_params, response:",c),"server_DH_params_fail"!==c._&&"server_DH_params_ok"!==c._)throw new Error("[MT] Server_DH_Params response invalid: "+c._);if(!Object(n.c)(e.nonce,c.nonce))throw new Error("[MT] Server_DH_Params nonce mismatch");if(!Object(n.c)(e.serverNonce,c.server_nonce))throw new Error("[MT] Server_DH_Params server_nonce mismatch");if("server_DH_params_fail"===c._){var l=(yield I.a.sha1Hash(e.newNonce)).slice(-16);if(!Object(n.c)(l,c.new_nonce_hash))throw new Error("[MT] server_DH_params_fail new_nonce_hash mismatch");throw new Error("[MT] server_DH_params_fail")}try{yield this.mtpDecryptServerDhDataAnswer(e,c.encrypted_answer)}catch(e){throw this.log.error("mtpDecryptServerDhDataAnswer FAILED!",e),e}return this.mtpSendSetClientDhParams(e)}))}mtpDecryptServerDhDataAnswer(e,t){return ae(this,void 0,void 0,(function*(){e.localTime=Date.now(),e.tmpAesKey=(yield I.a.sha1Hash(e.newNonce.concat(e.serverNonce))).concat((yield I.a.sha1Hash(e.serverNonce.concat(e.newNonce))).slice(0,12)),e.tmpAesIv=(yield I.a.sha1Hash(e.serverNonce.concat(e.newNonce))).slice(12).concat(yield I.a.sha1Hash(e.newNonce.concat(e.newNonce)),e.newNonce.slice(0,4));var a=new Uint8Array(yield I.a.aesDecrypt(t,e.tmpAesKey,e.tmpAesIv)),s=a.slice(0,20),r=a.slice(20),p=new S(r,{mtproto:!0}),o=p.fetchObject("Server_DH_inner_data");if("server_DH_inner_data"!==o._)throw new Error("[MT] server_DH_inner_data response invalid: "+o);if(!Object(n.c)(e.nonce,o.nonce))throw new Error("[MT] server_DH_inner_data nonce mismatch");if(!Object(n.c)(e.serverNonce,o.server_nonce))throw new Error("[MT] server_DH_inner_data serverNonce mismatch");i.b&&this.log("Done decrypting answer"),e.g=o.g,e.dhPrime=o.dh_prime,e.gA=o.g_a,e.serverTime=o.server_time,e.retry=0,this.mtpVerifyDhParams(e.g,e.dhPrime,e.gA);var m=p.getOffset();if(!Object(n.c)(s,yield I.a.sha1Hash(r.slice(0,m))))throw new Error("[MT] server_DH_inner_data SHA1-hash mismatch");C.applyServerTime(e.serverTime,e.localTime)}))}mtpVerifyDhParams(e,t,a){i.b&&this.log("Verifying DH params",e,t,a);var s=Object(n.g)(t);if(3!==e||"c71caeb9c6b1c9048e6c522f70f13f73980d40238e3e21c14934d037563d930f48198a0aa7c14058229493d22530f4dbfa336f6e0ac925139543aed44cce7c3720fd51f69458705ac68cd4fe6b6b13abdc9746512969328454f18faf8c595f642477fe96bb2a941d5bcd1d4ac8cc49880708fa9b378e3c4f3a9060bee67cf9a4a4a695811051907e162753b56b0f6b410dba74d8a84b2a14b3144e0ef1284754fd17ed950d5965b4b9dd46582db1178d169c6bc465b0d6ff9ca3928fef5b9ae4e418fc15e83ebea0f87fa9ff5eed70050ded2849f47bf959d956850ce929851f0d8115f635b105ee2e4e15d04b2454bf6f4fadf034b10403119cd8e3b92fcc5b"!==s)throw new Error("[MT] DH params are not verified: unknown dhPrime");i.b&&this.log("dhPrime cmp OK");const r=Object(u.y)(Object(n.g)(a),16),p=Object(u.y)(s,16);if(Object(u.g)(r,u.u)<=0)throw new Error("[MT] DH params are not verified: gA <= 1");if(Object(u.g)(r,Object(u.z)(p,u.u))>=0)throw new Error("[MT] DH params are not verified: gA >= dhPrime - 1");i.b&&this.log("1 < gA < dhPrime-1 OK");const o=Object(u.o)(2,32,0);let m=performance.now();m=performance.now();const d=Object(u.v)(o,1984);if(Object(u.g)(r,d)<0)throw new Error("[MT] DH params are not verified: gA < 2^{2048-64}");if(Object(u.g)(r,Object(u.z)(p,d))>=0)throw new Error("[MT] DH params are not verified: gA > dhPrime - 2^{2048-64}");return i.b&&this.log("2^{2048-64} < gA < dhPrime-2^{2048-64} OK"),!0}mtpSendSetClientDhParams(e){return ae(this,void 0,void 0,(function*(){var t=Object(n.e)(e.g.toString(16));e.b=new Array(256),e.b=[...new Uint8Array(e.b.length).randomize()];try{var a=yield I.a.modPow(t,e.b,e.dhPrime)}catch(e){throw e}var s=new w({mtproto:!0});s.storeObject({_:"client_DH_inner_data",nonce:e.nonce,server_nonce:e.serverNonce,retry_id:[0,e.retry++],g_b:a},"Client_DH_Inner_Data");var r=(yield I.a.sha1Hash(s.getBuffer())).concat(s.getBytes()),p=yield I.a.aesEncrypt(r,e.tmpAesKey,e.tmpAesIv),o=new w({mtproto:!0});o.storeMethod("set_client_DH_params",{nonce:e.nonce,server_nonce:e.serverNonce,encrypted_data:p}),i.b&&this.log("Send set_client_DH_params");try{var m=yield this.mtpSendPlainRequest(e.dcId,o.getBytes(!0))}catch(e){throw e}let d=m.fetchObject("Set_client_DH_params_answer");if("dh_gen_ok"!==d._&&"dh_gen_retry"!==d._&&"dh_gen_fail"!==d._)throw new Error("[MT] Set_client_DH_params_answer response invalid: "+d._);if(!Object(n.c)(e.nonce,d.nonce))throw new Error("[MT] Set_client_DH_params_answer nonce mismatch");if(!Object(n.c)(e.serverNonce,d.server_nonce))throw new Error("[MT] Set_client_DH_params_answer server_nonce mismatch");try{var y=yield I.a.modPow(e.gA,e.b,e.dhPrime)}catch(e){throw y}let c=yield I.a.sha1Hash(y),l=c.slice(0,8),g=c.slice(-8);switch(i.b&&this.log("Got Set_client_DH_params_answer",d._,y),d._){case"dh_gen_ok":var u=(yield I.a.sha1Hash(e.newNonce.concat([1],l))).slice(-16);if(!Object(n.c)(u,d.new_nonce_hash1))throw new Error("[MT] Set_client_DH_params_answer new_nonce_hash1 mismatch");var h=Object(n.i)(e.newNonce.slice(0,8),e.serverNonce.slice(0,8));return i.b&&this.log("Auth successfull!",g,y,h),e.authKeyId=g,e.authKey=y,e.serverSalt=h,e;case"dh_gen_retry":var f=(yield I.a.sha1Hash(e.newNonce.concat([2],l))).slice(-16);if(!Object(n.c)(f,d.new_nonce_hash2))throw new Error("[MT] Set_client_DH_params_answer new_nonce_hash2 mismatch");return this.mtpSendSetClientDhParams(e);case"dh_gen_fail":var _=(yield I.a.sha1Hash(e.newNonce.concat([3],l))).slice(-16);if(!Object(n.c)(_,d.new_nonce_hash3))throw new Error("[MT] Set_client_DH_params_answer new_nonce_hash3 mismatch");throw new Error("[MT] Set_client_DH_params_answer fail")}}))}auth(e){return ae(this,void 0,void 0,(function*(){if(e in this.cached)return this.cached[e];let t=new Uint8Array(16).randomize();if(!$.chooseServer(e))return Promise.reject(new Error("[MT] No server found for dc "+e));try{let a=this.mtpSendReqPQ({dcId:e,nonce:t});return this.cached[e]=a,yield a}catch(t){throw delete this.cached[e],t}}))}};function se(){let e={isFulfilled:!1,isRejected:!1,notify:()=>{},notifyAll:(...t)=>{e.lastNotify=t,e.listeners.forEach(e=>e(...t))},lastNotify:void 0,listeners:[],addNotifyListener:t=>{e.lastNotify&&t(...e.lastNotify),e.listeners.push(t)}},t=new Promise((a,n)=>{e.resolve=e=>{t.isFulfilled||(t.isFulfilled=!0,a(e))},e.reject=(...e)=>{t.isRejected||(t.isRejected=!0,n(...e))}});return t.finally(()=>{t.notify=null,t.listeners.length=0,t.lastNotify=null,t.cancel&&(t.cancel=()=>{})}),Object.assign(t,e),t}var ie=function(e,t,a,n){return new(a||(a=Promise))((function(s,i){function r(e){try{o(n.next(e))}catch(e){i(e)}}function p(e){try{o(n.throw(e))}catch(e){i(e)}}function o(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,p)}o((n=n.apply(e,t||[])).next())}))};const re=new class{constructor(){this.cachedNetworkers={},this.cachedExportPromise={},this.gettingNetworkers={},this.baseDcId=0,this.log=Object(m.b)("API"),this.afterMessageTempIds={}}setUserAuth(e){l.set({user_auth:e})}setBaseDcId(e){this.baseDcId=e,l.set({dc:this.baseDcId})}logOut(){return ie(this,void 0,void 0,(function*(){const e=[];for(let t=1;t<=5;t++)e.push("dc"+t+"_auth_key");const t=yield Promise.all(e.map(e=>l.get(e))),a=[];for(let e=0;e<t.length;e++)t[e]&&a.push(this.invokeApi("auth.logOut",{},{dcId:e+1,ignoreErrors:!0}));const n=()=>{this.baseDcId=0;l.clear().finally(()=>{self.postMessage({type:"reload"})})};return setTimeout(n,1e3),Promise.all(a).then(()=>{},e=>{e.handled=!0}).finally(n)}))}getNetworker(e,t={}){const a=t.fileDownload?"download":t.fileUpload?"upload":"client",s="websocket";this.cachedNetworkers.hasOwnProperty(s)||(this.cachedNetworkers[s]={client:{},download:{},upload:{}});const i=this.cachedNetworkers[s][a];e in i||(i[e]=[]);const r=i[e];if(r.length>=("client"===a||"https"===s?1:3)){let e=r.length-1,t=!1;for(;e>=0;--e)if(r[e].isOnline){t=!0;break}const a=t?r.splice(e,1)[0]:r.pop();return r.unshift(a),Promise.resolve(a)}const p=[e,s,a].join("-");if(this.gettingNetworkers[p])return this.gettingNetworkers[p];const o="dc"+e+"_auth_key",m="dc"+e+"_auth_keyId",d="dc"+e+"_server_salt";return this.gettingNetworkers[p]=Promise.all([o,m,d].map(e=>l.get(e))).then(([i,y,c])=>ie(this,void 0,void 0,(function*(){const g=$.chooseServer(e,a,s,!1);let u;if(i&&512===i.length){c&&16===c.length||(c="AAAAAAAAAAAAAAAA");const a=Object(n.e)(i),s=new Uint8Array(Object(n.e)(y)),r=Object(n.e)(c);u=V.getNetworker(e,a,s,r,g,t)}else try{const a=yield ne.auth(e),s={[o]:Object(n.g)(a.authKey),[m]:a.authKeyId.hex,[d]:Object(n.g)(a.serverSalt)};l.set(s),u=V.getNetworker(e,a.authKey,a.authKeyId,a.serverSalt,g,t)}catch(e){throw this.log("Get networker error",e,e.stack),delete this.gettingNetworkers[p],e}return delete this.gettingNetworkers[p],r.unshift(u),u})))}invokeApi(e,t={},a={}){const n=se();let s=a.afterMessageId;if(s&&n.finally(()=>{delete this.afterMessageTempIds[s]}),i.a){n.finally(()=>{clearInterval(i)});const s=Date.now(),i=j.setInterval(()=>{this.log.error("Request is still processing:",e,t,a,"time:",(Date.now()-s)/1e3)},5e3)}const r=t=>{t?Object(g.b)(t)||(t={message:t}):t={type:"ERROR_EMPTY"},n.reject(t),401===t.code&&"SESSION_REVOKED"===t.type&&this.logOut(),a.ignoreErrors||(406===t.code&&(t.handled=!0),a.noErrorBox||(t.input=e,t.stack=m||t.originalError&&t.originalError.stack||t.stack||(new Error).stack,setTimeout(()=>{t.handled||(401===t.code&&this.logOut(),t.handled=!0)},100)))};let p,o,m=(new Error).stack||"empty stack";const d=i=>{s&&(a.afterMessageId=this.afterMessageTempIds[s]);const m=(o=i).wrapApiCall(e,t,a);return a.prepareTempMessageId&&(this.afterMessageTempIds[a.prepareTempMessageId]=a.messageId),m.then(n.resolve,i=>{if("FILE_REFERENCE_EXPIRED"!==i.type&&"MSG_WAIT_FAILED"!==i.type&&this.log.error("Error",i.code,i.type,this.baseDcId,p,e,t),401===i.code&&this.baseDcId===p)"SESSION_PASSWORD_NEEDED"!==i.type&&(l.remove("dc"),l.remove("user_auth")),r(i);else if(401===i.code&&this.baseDcId&&p!==this.baseDcId){if(void 0===this.cachedExportPromise[p]){const e=new Promise((e,t)=>{this.invokeApi("auth.exportAuthorization",{dc_id:p},{noErrorBox:!0}).then(a=>{this.invokeApi("auth.importAuthorization",{id:a.id,bytes:a.bytes},{dcId:p,noErrorBox:!0}).then(e,t)},t)});this.cachedExportPromise[p]=e}this.cachedExportPromise[p].then(()=>{this.invokeApi(e,t,a).then(n.resolve,r)},r)}else if(303===i.code){const s=+i.type.match(/^(PHONE_MIGRATE_|NETWORK_MIGRATE_|USER_MIGRATE_|FILE_MIGRATE_)(\d+)/)[2];s!==p&&(a.dcId?a.dcId=s:this.setBaseDcId(s),this.getNetworker(s,a).then(s=>{s.wrapApiCall(e,t,a).then(n.resolve,r)},r))}else if(a.rawError||420!==i.code)if(a.rawError||500!==i.code)r(i);else{if("MSG_WAIT_FAILED"===i.type)return s=void 0,delete a.afterMessageId,delete this.afterMessageTempIds[a.prepareTempMessageId],void d(o);const e=Date.now();if(a.stopTime&&e>=a.stopTime)return r(i);a.waitTime=a.waitTime?Math.min(60,1.5*a.waitTime):1,setTimeout(()=>{d(o)},1e3*a.waitTime)}else{const e=+i.type.match(/^FLOOD_WAIT_(\d+)/)[1]||10;if(e>(void 0!==a.floodMaxTimeout?a.floodMaxTimeout:60))return r(i);setTimeout(()=>{d(o)},1e3*e)}})};return(p=a.dcId||this.baseDcId)?this.getNetworker(p,a).then(d,r):l.get("dc").then(e=>{this.getNetworker(this.baseDcId=p=e||A.baseDcId,a).then(d,r)}),n}};i.a.apiManager=re;var pe=re;var oe=function(e,t,a,n){return new(a||(a=Promise))((function(s,i){function r(e){try{o(n.next(e))}catch(e){i(e)}}function p(e){try{o(n.throw(e))}catch(e){i(e)}}function o(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,p)}o((n=n.apply(e,t||[])).next())}))};var me=new class{constructor(){this.blobSupported=!0;try{o([],"")}catch(e){this.blobSupported=!1}}isAvailable(){return this.blobSupported}write(e,t){return t instanceof Blob?new Promise((a,n)=>{let s=new FileReader;s.onload=function(t){let s=t.target.result,i=new Uint8Array(s);e.write(i).then(a,n)},s.readAsArrayBuffer(t)}):e.write(t)}getFakeFileWriter(e,t){const a=[];return{write:e=>oe(this,void 0,void 0,(function*(){if(!this.blobSupported)throw!1;a.push(e)})),truncate:()=>{a.length=0},finalize:(n=!0)=>{const s=o(a,e);return n&&t&&t(s),s}}}},de=function(e,t,a,n){return new(a||(a=Promise))((function(s,i){function r(e){try{o(n.next(e))}catch(e){i(e)}}function p(e){try{o(n.throw(e))}catch(e){i(e)}}function o(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,p)}o((n=n.apply(e,t||[])).next())}))};class ye{constructor(e){this.dbName=e,r.a.test&&(this.dbName+="_test"),this.openDatabase()}openDatabase(){return this.openDbPromise?this.openDbPromise:this.openDbPromise=caches.open(this.dbName)}delete(e){return this.timeoutOperation(t=>de(this,void 0,void 0,(function*(){yield t.delete("/"+e)})))}deleteAll(){return caches.delete(this.dbName)}save(e,t){return this.timeoutOperation(a=>a.put("/"+e,t))}saveFile(e,t){return t instanceof Blob||(t=o(t)),this.save(e,new Response(t)).then(()=>t)}getFile(e,t="blob"){return this.timeoutOperation(a=>de(this,void 0,void 0,(function*(){const n=yield a.match("/"+e);if(!n||!a)throw"NO_ENTRY_FOUND";return n[t]()})))}timeoutOperation(e){return new Promise((t,a)=>de(this,void 0,void 0,(function*(){let n=!1;const s=setTimeout(()=>{a(),n=!0},15e3);try{const a=yield this.openDatabase();if(!a)throw"no cache?";const s=yield e(a);if(n)return;t(s)}catch(e){a(e)}clearTimeout(s)})))}getFileWriter(e,t){const a=me.getFakeFileWriter(t,t=>this.saveFile(e,t));return Promise.resolve(a)}}var ce=function(e,t,a,n){return new(a||(a=Promise))((function(s,i){function r(e){try{o(n.next(e))}catch(e){i(e)}}function p(e){try{o(n.throw(e))}catch(e){i(e)}}function o(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,p)}o((n=n.apply(e,t||[])).next())}))};const le=new class{constructor(){this.cacheStorage=new ye("cachedFiles"),this.cachedDownloadPromises={},this.uploadPromises={},this.downloadPulls={},this.downloadActives={},this.webpConvertPromises={},this.log=Object(m.b)("AFM",m.a.error|m.a.log),this.tempId=0,this.queueId=0,this.debug=r.a.debug,this.uncompressTGS=(e,t)=>I.a.gzipUncompress(e.slice().buffer,!0),this.convertWebp=(e,t)=>{const a=se();return W({type:"convertWebp",payload:{fileName:t,bytes:e}}),this.webpConvertPromises[t]=a}}downloadRequest(e,t,a,n,s=0){void 0===this.downloadPulls[e]&&(this.downloadPulls[e]=[],this.downloadActives[e]=0);const i=this.downloadPulls[e],r=new Promise((e,r)=>{i.push({id:t,queueId:s,cb:a,deferred:{resolve:e,reject:r},activeDelta:n})});return setTimeout(()=>{this.downloadCheck(e)},0),r}downloadCheck(e){const t=this.downloadPulls[e];if(this.downloadActives[e]>=24||!t||!t.length)return!1;const a=t.findAndSplice(e=>0===e.queueId)||t.findAndSplice(e=>e.queueId===this.queueId)||t.shift(),n=a.activeDelta||1;this.downloadActives[e]+=n,a.cb().then(t=>{this.downloadActives[e]-=n,this.downloadCheck(e),a.deferred.resolve(t)},t=>{t&&t.type&&("DOWNLOAD_CANCELED"===t.type||"UPLOAD_CANCELED"===t.type)||this.log.error("downloadCheck error:",t),this.downloadActives[e]-=n,this.downloadCheck(e),a.deferred.reject(t)})}setQueueId(e){this.queueId=e}getFileStorage(){return this.cacheStorage}cancelDownload(e){const t=this.cachedDownloadPromises[e]||this.uploadPromises[e];return!(!t||t.isRejected||t.isFulfilled)&&(t.cancel(),!0)}requestFilePart(e,t,a,n,s=0,i=0,r){return this.downloadRequest(e,s,()=>ce(this,void 0,void 0,(function*(){return r&&r(),pe.invokeApi("upload.getFile",{location:t,offset:a,limit:n},{dcId:e,fileDownload:!0})})),this.getDelta(n),i)}getDelta(e){return e/1024/128}getLimitPart(e){let t;return t=512,524288}downloadFile(e){var t;if(!me.isAvailable())return Promise.reject({type:"BROWSER_BLOB_NOT_SUPPORTED"});let a,n=null!==(t=e.size)&&void 0!==t?t:0,{dcId:s,location:i}=e;"image/webp"!==e.mimeType||fe()?"application/x-tgsticker"===e.mimeType&&(a=this.uncompressTGS,e.mimeType="application/json"):(a=this.convertWebp,e.mimeType="image/png");const r=function(e,t){const a=""["".length-1]||"";switch(e._){case"inputPhotoFileLocation":case"inputDocumentFileLocation":{const t=e.thumb_size?"_"+e.thumb_size:"";return(""[0]?""[0]+"_":"")+e.id+t+(a?"."+a:a)}case"fileLocationToBeDeprecated":case"inputPeerPhotoFileLocation":case"inputStickerSetThumb":case"inputFileLocation":return e.volume_id+"_"+e.local_id+(a?"."+a:a);default:return console.error("Unrecognized location:",e),""}}(i,e.fileName),p=this.cachedDownloadPromises[r],o=this.getFileStorage();if(this.debug&&this.log("downloadFile",r,n,i,e.mimeType),p)return n?p.then(t=>t.size<n?(this.debug&&this.log("downloadFile need to deleteFile, wrong size:",t.size,n),this.deleteFile(r).then(()=>this.downloadFile(e)).catch(()=>this.downloadFile(e))):t):p;const m=se(),d=e.mimeType||"image/jpeg";let y,c=!1,l=!1,g=e=>{delete this.cachedDownloadPromises[r],m.reject(e),g=()=>{},!y||e&&"DOWNLOAD_CANCELED"===e.type||y.truncate()};const u=this.tempId++;o.getFile(r).then(e=>ce(this,void 0,void 0,(function*(){if(e.size<n)throw yield this.deleteFile(r),!1;m.resolve(e)}))).catch(()=>{o.getFileWriter(r,d).then(t=>{y=t;const p=e.limitPart||this.getLimitPart(n);let o,d,c=Promise.resolve();const f=(e,t)=>ce(this,void 0,void 0,(function*(){if(a){return yield a(e,r)}return e})),_=[];o=0;do{d=se(),_.push({offset:o,writeFilePromise:c,writeFileDeferred:d}),c=d,o+=p}while(o<n);let b=0;const v=()=>ce(this,void 0,void 0,(function*(){const{offset:a,writeFilePromise:o,writeFileDeferred:d}=_.shift();try{const y=yield this.requestFilePart(s,i,a,p,u,e.queueId,h),c=y.bytes;_.length&&v(),this.debug&&this.log("downloadFile requestFilePart result:",r,y);const g=a+p>=n||!c.byteLength;if(c.byteLength){b+=c.byteLength,m.notify({done:b,offset:a,total:n});const e=yield f(c);h(),yield o,h(),yield me.write(t,e)}d.resolve(),g&&(l=!0,m.resolve(t.finalize(n<2e7)))}catch(e){g(e)}}));for(let e=0,t=Math.min(1/0,_.length);e<t;++e)v()})});const h=()=>{if(c){const e=new Error("Canceled");throw e.type="DOWNLOAD_CANCELED",e}};return m.cancel=()=>{c||l||(c=!0,delete this.cachedDownloadPromises[r],g({type:"DOWNLOAD_CANCELED"}))},m.notify=e=>{Z({progress:Object.assign({fileName:r},e)})},this.cachedDownloadPromises[r]=m,m}deleteFile(e){return delete this.cachedDownloadPromises[e],this.getFileStorage().delete(e)}uploadFile({file:e,fileName:t}){const a=e.size,n=a>=10485760;let i=!1,r=!1,p=0,o=262144;a>67108864?o=524288:a<102400&&(o=32768);const m=this.getDelta(o),d=Math.ceil(a/o),y=[Object(s.a)(4294967295),Object(s.a)(4294967295)];let c=0;const l={_:n?"inputFileBig":"inputFile",id:y,parts:d,name:t,md5_checksum:""},g={notify:e=>{}},u=new Promise((e,t)=>{if(d>4e3)return t({type:"FILE_TOO_BIG"});g.resolve=e,g.reject=t});if(Object.assign(u,g),d>4e3)return u;let h=e=>{"UPLOAD_CANCELED"!==(null==e?void 0:e.type)&&this.log.error("Up Error",e),u.reject(e),i=!0,h=()=>{}};const f=n?"upload.saveBigFilePart":"upload.saveFilePart",_=this.tempId++,b=this;const v=function*(){for(let t=0;t<a;t+=o){const s=c++;yield b.downloadRequest("upload",_,()=>new Promise((m,c)=>{const g=new FileReader,_=e.slice(t,t+o);g.onloadend=e=>{if(i)return void c({type:"UPLOAD_CANCELED"});if(e.target.readyState!==FileReader.DONE)return b.log.error("wrong readyState!"),void c({type:"WRONG_READY_STATE"});let t=e.target.result;b.debug&&b.log("Upload file part, isBig:",n,s,t.byteLength,new Uint8Array(t).length,new Uint8Array(t).slice().length),pe.invokeApi(f,{file_id:y,file_part:s,file_total_parts:d,bytes:t},{fileUpload:!0}).then(e=>{p++,m(),u.notify({done:p*o,total:a}),p>=d&&(u.resolve(l),r=!0)},h)},g.readAsArrayBuffer(_)}),m).catch(h)}}(),P=()=>{if(i)return;const e=v.next();e.done||i||e.value.then(P)};for(let e=0,t=Math.min(1/0,d);e<t;++e)P();return u.cancel=()=>{i||r||(i=!0,h({type:"UPLOAD_CANCELED"}))},u.notify=e=>{Z({progress:Object.assign({fileName:t},e)})},u.finally(()=>{delete this.uploadPromises[t]}),this.uploadPromises[t]=u}};i.a.apiFileManager=le;var ge=le,ue=function(e,t,a,n){return new(a||(a=Promise))((function(s,i){function r(e){try{o(n.next(e))}catch(e){i(e)}}function p(e){try{o(n.throw(e))}catch(e){i(e)}}function o(e){var t;e.done?s(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(r,p)}o((n=n.apply(e,t||[])).next())}))};let he=!1;const fe=()=>he;V.setUpdatesProcessor(e=>{Z({update:e})}),V.onConnectionStatusChange=e=>{Z({type:"connectionStatusChange",payload:e})};j.addEventListener("message",e=>ue(void 0,void 0,void 0,(function*(){try{const t=e.data,a=t.taskId;if("convertWebp"===t.type){const{fileName:e,bytes:a}=t.payload,n=ge.webpConvertPromises[e];return void(n&&(n.resolve(a),delete ge.webpConvertPromises[e]))}if("requestFilePart"===t.type){const t=e.data,a={type:t.type,id:t.id};try{const e=yield ge.requestFilePart(...t.payload);a.payload=e}catch(e){a.originalPayload=t.payload,a.error=e}return void Z(a)}if("webpSupport"===t.type)return void(he=t.payload);if("socketProxy"===t.type){const e=t.payload,a=e.id,n=Y.get(a);"message"===e.type?n.dispatchEvent("message",e.payload):"open"===e.type?n.dispatchEvent("open"):"close"===e.type&&(n.dispatchEvent("close"),Y.delete(a))}if(!t.task)return;switch(t.task){case"computeSRP":case"gzipUncompress":return I.a[t.task].apply(I.a,t.args).then(e=>{Z({taskId:a,result:e})});case"setQueueId":case"cancelDownload":case"uploadFile":case"downloadFile":try{let e=ge[t.task].apply(ge,t.args);e instanceof Promise&&(e=yield e),Z({taskId:a,result:e})}catch(e){Z({taskId:a,error:e})}break;case"getNetworker":pe[t.task].apply(pe,t.args).finally(()=>{Z({taskId:a,result:null})});break;default:try{let e=pe[t.task].apply(pe,t.args);e instanceof Promise&&(e=yield e),Z({taskId:a,result:e})}catch(e){Z({taskId:a,error:e})}}}catch(e){}}))),Z("ready")}]);