{"_id":"57e374c9378b341700c82042","category":{"_id":"5703d527bb69fc1700553ce4","project":"5703d527bb69fc1700553ce0","__v":0,"version":"5703d527bb69fc1700553ce3","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-04-05T15:09:27.645Z","from_sync":false,"order":0,"slug":"documentation","title":"Documentation"},"__v":0,"githubsync":"","project":"5703d527bb69fc1700553ce0","parentDoc":null,"user":"5631f962c3b04b0d00ba9bf1","version":{"_id":"5703d527bb69fc1700553ce3","hasDoc":true,"__v":6,"hasReference":true,"project":"5703d527bb69fc1700553ce0","createdAt":"2016-04-05T15:09:27.620Z","releaseDate":"2016-04-05T15:09:27.620Z","categories":["5703d527bb69fc1700553ce4","5703d8b7aceacc17003ef303","5703e60b6116142000db25f6","57e0db616a1c2e0e0081fe64","57e0f141ff540c22007b45fa","57e0f14b8929550e00f1d9bc"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"0.0.6","version":"0.0.6"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-09-22T06:06:01.773Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":2,"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 :)","excerpt":"Frequently asked questions","slug":"qa","type":"basic","title":"Q&A"}

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 :)