You need to use the "Telegram API": https://core.telegram.org/api#telegram-api (not the "Bot API") to develop your client. It uses MTProto to communicate with the server, so I suggest you just use a library that supports it like Telethon if you want to program in Python.