FAQ

FAQ

Sean

Frequently Asked Questions for Awesome Telegram Bot

For Chinese, check out here.


How to create bots on Telegram

Use the /newbot command to create a new bot. The Bot Father will ask you for a name and username, then generate an authorization token for your new bot.


How to add bots to Awesome Telegram Bot app

  1. Click right-bottom [+] button
  2. Paste Token copy from Bot Father
  3. Give him a nickname
  4. Click DONE button


How to obtain chat_id

Send message to @RawDataBot, and you will get an JSON reply

It will be .message.chat.id, looks like this:

{
  "message": {
    "chat": {
      "id": 109780439,  // This is your chat_id
    }
  }
}


Why I got "chat not found" error

Make sure you have STARTed bot before send messages


How to upload files

If method supported file upload (e.g., sendPhoto), you will see a cloud icon at the end of parameter field. Click it, and it will open file chooser, after choose, field text will looks like content://media/external/images/media/87, content://com.android.providers.media.documents/document/image%3A9487, or so. Depends on Android version.


How to add inline keyboard to messages

You need Array of Array of Inline Button, here is an instance for reply_markup

{
  "inline_keyboard": [
    [
      {
        "text": "Join Group",
        "url": "https://t.me/AwesomeTeleBot"
      }
    ]
  ]
}

Please make sure you have text field, and one of url, callback_data, switch_inline_query, etc.


Can I run a bot on this app

No, because this will be very power hungry.


How to make a real bot

If you wish to have a bot that can run automatically, use programming languages.

It's better to ask local community, for it depends on language


What's the purpose of app

To learn about telegram bot development, send simple a request, prove your idea about bot API methods.


How to make this application support my language

You can join translation program by yourself, maybe ask friends to help you.


Will it leak my Token toward app owner

Of course not, you can check source code by yourself.

Every request to Telegram is base on HTTPS, which means cannot be decrypted by the middleman.

WARNING: Since Tokens are store on your phone, unless you ROOTED your phone, it is possible for hackers who have access to /data/data zone to get your token which saved in SQLite database.


How to translate this FAQ

Welcome to translate this page to your own language, and post to Telegraph, I will add links to the front of this page.


Support Group: @AwesomeTeleBot

GitHub Repo: Sea-n/Android-TG-Bot

Translation Program: this gist

Download it: Google Play

Report Page