Skip to content

Add support for bot.chat(id) and deprecate bot.send* #65

Closed

Description

@emilyalbini

The Bot API 2.1 update added support for retrieving information about a specific chat. This allows to do something like this:

bot.chat(12345).name

Because of that, all the send* methods are now useless and can be deprecated, because you can do:

bot.chat(12345).send("Test")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions