Yes, or using this: TDLib – Build Your Own Telegram https://telegram.org/blog/tdlib
> Telegram’s source code is not an SDK or a library. [--] But to be fair, the messaging app doesn’t state they have an SDK. All they did is put their source code in the open.
TDLib is that SDK.