there is source code for a Linux Command-line interface for Telegram. https://github.com/vysheng/tg can compile for N900?