Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Defaults.business_connection_id #4193

Open
@Bibo-Joshi

Description

@Bibo-Joshi

What kind of feature are you missing? Where do you notice a shortcoming of PTB?

Bot API 7.2 added the parameterbusiness_connection_id to all thesend_* methods.
I imagine that if a business wants to connect a bot to its business account, that often times it will have a custom-build bot for that such that the bot will only ever see one fixed business connection. Moreover, the bot would only ever do communication via the business connection.
For such use cases it would be benefitial if one could set a default value for thebusiness_connection_id parameter via PTBsDefaults mechanism.

Describe the solution you'd like

AddDefaults.business_connection_id and make the necessary adaptions inExtBot code.

Describe alternatives you've considered

IfMessage.reply_* already passesbusiness_connection_id as discussed in#4180 (comment), that may already cover many of the use cases. SoDefaults.business_connection_id might not be completely crucial.

Additional context

I would see this as minor priority (+0), especially since the functionality is very new and we don't know yet how many people will actually be using this. If someone would like to PR for this, they are welcome to, but I personally wouldn't put any effort into this from the PTB team in the forseeable future.

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp