i've been wanting to name a commit like this for my entire life, lol. seriously though, a lot has changed: - extracted TL-related stuff to `@mtcute/tl-utils` and `@mtcute/tl-runtime`, rewrote codegen in TS - updated to layer 134, moved to int64 identifiers - rewritten networking (mtproto), rewritten updates handling - *lots* of refactoring still a very early version though, there are a lot of improvements to be made, but at least it runs, lol also tl-reference will not be updated anytime soon because i want to rewrite it
13 lines
308 B
TypeScript
13 lines
308 B
TypeScript
import { TelegramClient } from '../../client'
|
|
|
|
/**
|
|
* Get currently authorized user's username.
|
|
*
|
|
* This method uses locally available information and
|
|
* does not call any API methods.
|
|
*
|
|
* @internal
|
|
*/
|
|
export function getMyUsername(this: TelegramClient): string | null {
|
|
return this._selfUsername
|
|
}
|