Skip to content

Enhancements for send_by_kwargs #39

@Bibo-Joshi

Description

@Bibo-Joshi
  • check if the value of the kwarg is None, at least for kwargs that are used to identify a method. If it's None, it should be discarded.
  • Possibly add support for passing objects in their dict-representation, e.g. document={'file_id': '...', .…}.

Combined, that would improve support for doing something like send_by_kwargs(bot, **message.to_dict())

See here for some discussion: https://t.me/pythontelegrambotgroup/565277?thread=565248

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions