Skip to content

[3.x] skip_updates when start_polling #845

@MassonNN

Description

@MassonNN

Is your feature request related to a problem? Please describe.
It is commonly known that Telegram Bot API has some strange using of functions, e.g. DeleteWebhook with a parameter drop_pending_updates uses for skip pending updates when you start your bot with polling.

Describe the solution you'd like
I suggest to make in 3.x the skip_updates parameter as in 2.x, which will use DeleteWebhook function. But to prevent known bug which will not ignore last update ignore it at a framework side.

Describe alternatives you've considered
May be skip_updates parameter will raise an exception with information about (Dispatcher).delete_webhook(drop_pending_update=True)

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.xIssue or PR for stable 3.x versionnew featureMissing feature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions