diff --git a/data/core.telegram.org/bots/faq.html b/data/core.telegram.org/bots/faq.html index 3610c8f5c9..c69a177090 100644 --- a/data/core.telegram.org/bots/faq.html +++ b/data/core.telegram.org/bots/faq.html @@ -42,8 +42,7 @@ You may also find the Bot API…">

Bots FAQ

-

If you are new to Telegram bots, we recommend checking out our Introduction to Bots first. -You may also find the Bot API Manual useful.

+

If you are new to Telegram bots, we recommend checking out our Introduction to Bots first.
You may also find the Bot API Manual useful.

General

@@ -52,7 +51,7 @@ You may also find the Bot API Manual us
  • Where can I get some code examples?
  • I have a feature request!
  • What messages will my bot get?
  • -
  • Why doesn't my bot see messages from other bots?
  • +
  • Why doesn't my bot see messages from other bots?
  • Getting Updates

    +
  • How do I message all my subscribers?

  • -

    General Questions

    -

    How do I create a bot?

    +

    General Questions

    +

    How do I create a bot?

    Creating Telegram bots is super-easy, but you will need at least some skills at computer programming. In order for a bot to work, set up a bot account with @BotFather, then connect it to your backend server via our API.

    -

    Unfortunately, there are no out-of-the-box ways to create a working bot if you are not a developer. But we're sure you'll soon find plenty of bots created by other people to play with.

    -

    I'm a developer. Where can I find some examples?

    +

    Unfortunately, there are no out-of-the-box ways to create a working bot if you are not a developer. But we're sure you'll soon find plenty of bots created by other people to play with.

    +

    I'm a developer. Where can I find some examples?

    Here are two sample bots, both written in PHP:

    -

    Many members of our community are building bots and publishing sources. -We're collecting them on this page »

    +

    Many members of our community are building bots and publishing sources.
    We're collecting them on this page »

    -

    Ping us on @BotSupport if you've built a bot and would like to share it with others.

    -

    Will you add X to the Bot API?

    -

    The bot API is still pretty young. There are many potential features to consider and implement. We'll be studying what people do with their bots for a while to see which directions will be most important for the platform.

    +

    Ping us on @BotSupport if you've built a bot and would like to share it with others.

    +

    Will you add X to the Bot API?

    +

    The bot API is still pretty young. There are many potential features to consider and implement. We'll be studying what people do with their bots for a while to see which directions will be most important for the platform.

    All bot developers are welcome to share ideas for our Bot API with our @BotSupport account.

    -

    What messages will my bot get?

    +

    What messages will my bot get?

    1. All bots, regardless of settings, will receive:

    Note that each particular message can only be available to one privacy-enabled bot at a time, i.e., a reply to bot A containing an explicit command for bot B or sent via bot C will only be available to bot A. Replies have the highest priority.

    -

    Why doesn't my bot see messages from other bots?

    +

    Why doesn't my bot see messages from other bots?

    Bots talking to each other could potentially get stuck in unwelcome loops. To avoid this, we decided that bots will not be able to see messages from other bots regardless of mode.

    -

    Getting Updates

    -

    How do I get updates?

    -

    There are currently two ways of getting updates. You can either use long polling or Webhooks. Please note that it's not possible to get updates via long polling while an outgoing Webhook is set.

    -

    Long polling gives me the same updates again and again!

    +

    Getting Updates

    +

    How do I get updates?

    +

    There are currently two ways of getting updates. You can either use long polling or Webhooks. Please note that it's not possible to get updates via long polling while an outgoing Webhook is set.

    +

    Long polling gives me the same updates again and again!

    The getUpdates method returns the earliest 100 unconfirmed updates. To confirm an update, use the offset parameter when calling getUpdates like this:

    offset = update_id of last processed update + 1

    All updates with update_id less than or equal to offset will be marked as confirmed on the server and will no longer be returned.

    -

    I'm having problems with Webhooks.

    -

    If you've set up your webhook successfully, but are not getting any updates, please remember:

    +

    I'm having problems with Webhooks.

    +

    If you've set up your webhook successfully, but are not getting any updates, please remember: