Skip to content

[Feature Request] use commands in CLI style #470

@hellodword

Description

@hellodword

For example, I'm always using the set_title, but it seems that I cannot use the set_title with channels so I have to use /import or modify the database manually:

None
if is_user
else (
Button.switch_inline(
f"{i18n[lang]['set_custom_title_button']}",
query=(
f'/set_title {sub_or_user.user_id} {sub_or_user.id} '
if tail
else f'/set_title {sub_or_user.id} '
),
same_peer=True,
),
Button.switch_inline(
f"{i18n[lang]['set_custom_hashtags_button']}",
query=(
f'/set_hashtags {sub_or_user.user_id} {sub_or_user.id} '
if tail
else f'/set_hashtags {sub_or_user.id} '
),
same_peer=True,
),
),

With enhanced /sub:

/sub --title "the title1" url1 url2 --title "the title3" --send_mode -1 url3

We can parse it as cli arguments.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions