镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Webhook support #20

Open
Open

Description

@bemyak

It would be very nice if telebot had support of webhooks.
If you're writing telegram bot on Rust than you probably expect extreamly high performance and "pull" method is something opposite to it :)

Activity

  1. tecywiz121 commented on Dec 20, 2017

    @tecywiz121
    Contributor

    The pull method is supposed to be long polling, so the performance shouldn't be that terrible.

    That said, if you want to scale beyond a single process polling, I suspect the webhooks method is probably the way to go.

  2. bytesnake commented on Dec 21, 2017

    @bytesnake
    Owner

    The library did not used long polling up to this point, but I added support in 6a632d7 and telebot will now wait 30s before it sends a new request.
    Nevertheless it would be nice to support webhooks. But first we need to switch the underlying infrastructure from cURL to hyper to have server support and then extend the Bot struct to host a server. #21

  3. bytesnake commented on Jan 3, 2018

    @bytesnake
    Owner

    This is blocked until a library for multiform server AND client support is published. The best candidate ist https://github.com/abonander/multipart-async, but it has no client support yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions