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?
For example, I'm always using the
set_title, but it seems that I cannot use theset_titlewith channels so I have to use/importor modify the database manually:RSS-to-Telegram-Bot/src/command/inner/customization.py
Lines 249 to 270 in 60f30a1
With enhanced
/sub:We can parse it as cli arguments.
What do you think?