Kirill Loskutov
Kirill Loskutov
You can create a new client when you need to login and destroy it when you need to logout
tdlib is already heavy by itself, it takes ~3 seconds for a client to be created. so it may be not ok to create a large amount of clients.
The problem is that editor sends request to the current url instead of localhost:2020 as specified in the config. Can't figure out why.
I don’t use inline mode that much, but I don’t see a problem in not having any builders at all For some reason this thing feels completely different from keyboards....
Maybe ```ts InlineQueryResult.article('id', {/* title, description, etc */}) ```
The first param is always id, the second is an object with the rest
Maybe we just make it a single parameter. Basically what it'll do is to automatically set the `type` and provide autocompletion
I don't see the point in providing a builder for the whole answer. After all, it's just an array
> Keyboard buttons are also just an array, and yet you are asking for builders instead of just passing the raw array to keyboard.add. I'm asking for builders for the...
> Creating buttons via functions seems overkill to me as its literally only an object with two keys which are autosuggested from typings I disagree. Having to write `text` and...