{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","results":{"codes":[]},"settings":"","params":[]},"next":{"description":"","pages":[]},"title":"Q&A","type":"basic","slug":"qa","excerpt":"Frequently asked questions","body":"## What is the current supported layer?\nSee documentation [Welcome](doc:getting-started) page :)\n\n## I don't understand how to use a specific method, what should I give as argument(s) to the method?\nSadly, this kind of questions is for Telegram support, but for X reasons, they stopped public documentation. I don't have the time (or the will) to do their job, so I'll try to post a few samples, and hope that people using the lib will add more by sending them by mail, or opening a ticket on github.\n\n## Does Kotlogram support multiple account on the same instance?\nYes, you can create as many `TelegramClient` (or `MTProtoHandler`) as you want. Why? Because Kotlogram is using java nio's `SocketChannel` and `Selector` for the network, it should allow the library to scale (only 1 thread will be used to listen to all the connections).\n\n## How can I receive new messages automatically?\nJust pass an `UpdateCallback` to your `TelegramClient` (or `ApiCallback` to your `MTProtoHandler`) (via constructor), and implement the methods.\n\n## Can I build a jar from the lib?\nYes, just run `fatJar` task, it'll generate a **jar** for each module :)","updates":[],"order":2,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"57e374c9378b341700c82042","category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Documentation","slug":"documentation","order":0,"from_sync":false,"reference":false,"_id":"5703d527bb69fc1700553ce4","project":"5703d527bb69fc1700553ce0","createdAt":"2016-04-05T15:09:27.645Z","__v":0,"version":"5703d527bb69fc1700553ce3"},"__v":0,"githubsync":"","project":"5703d527bb69fc1700553ce0","createdAt":"2016-09-22T06:06:01.773Z","parentDoc":null,"user":"5631f962c3b04b0d00ba9bf1","version":{"version":"0.0.6","version_clean":"0.0.6","codename":"","is_stable":true,"is_beta":true,"is_hidden":false,"is_deprecated":false,"categories":["5703d527bb69fc1700553ce4","5703d8b7aceacc17003ef303","5703e60b6116142000db25f6","57e0db616a1c2e0e0081fe64","57e0f141ff540c22007b45fa","57e0f14b8929550e00f1d9bc"],"_id":"5703d527bb69fc1700553ce3","createdAt":"2016-04-05T15:09:27.620Z","hasDoc":true,"releaseDate":"2016-04-05T15:09:27.620Z","__v":6,"hasReference":true,"project":"5703d527bb69fc1700553ce0"}}

Q&A

Frequently asked questions

## What is the current supported layer? See documentation [Welcome](doc:getting-started) page :) ## I don't understand how to use a specific method, what should I give as argument(s) to the method? Sadly, this kind of questions is for Telegram support, but for X reasons, they stopped public documentation. I don't have the time (or the will) to do their job, so I'll try to post a few samples, and hope that people using the lib will add more by sending them by mail, or opening a ticket on github. ## Does Kotlogram support multiple account on the same instance? Yes, you can create as many `TelegramClient` (or `MTProtoHandler`) as you want. Why? Because Kotlogram is using java nio's `SocketChannel` and `Selector` for the network, it should allow the library to scale (only 1 thread will be used to listen to all the connections). ## How can I receive new messages automatically? Just pass an `UpdateCallback` to your `TelegramClient` (or `ApiCallback` to your `MTProtoHandler`) (via constructor), and implement the methods. ## Can I build a jar from the lib? Yes, just run `fatJar` task, it'll generate a **jar** for each module :)