Skip to content

Commit

Permalink
Tweak default sender text format
Browse files Browse the repository at this point in the history
  • Loading branch information
Electronic-Mango committed Nov 17, 2024
1 parent 5b98c60 commit 73e9069
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Feed name 1:
# This string can contain basic HTML format tags. List of supported tags by Telegram bots:
# https://core.telegram.org/bots/api#html-style
# The field is optional, if absent a default text format is used:
# "By <b>{name}</b> on <b>{type}</b>"
# "By <b>{name}</b> on {type}"
sender_text_format: Posted by <b>{name}</b> in <i>{type}</i>!
```

Expand Down
2 changes: 1 addition & 1 deletion feed_links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Feed name 1:
# This string can contain basic HTML format tags. List of supported tags by Telegram bots:
# https://core.telegram.org/bots/api#html-style
# The field is optional, if absent a default text format is used:
# "By <b>{name}</b> on <b>{type}</b>"
# "By <b>{name}</b> on {type}"
sender_text_format: Posted by <b>{name}</b> in <i>{type}</i>!
Feed name 2:
url: https://{source_pattern}.feedlink2.com/rss
Expand Down
2 changes: 1 addition & 1 deletion src/main/bot/sender.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from db.wrapper import store_pinned_message
from settings import MAX_MEDIA_ITEMS_PER_MESSAGE, MAX_MESSAGE_SIZE, PIN_VIDEOS, RSS_FEEDS

DEFAULT_SENDER_TEXT_FORMAT = "By <b>{name}</b> on <b>{type}</b>"
DEFAULT_SENDER_TEXT_FORMAT = "By <b>{name}</b> on {type}"
MAX_IMAGE_SIZE = 10_000_000
MAX_IMAGE_DIMENSIONS = 10_000
MAX_IMAGE_THUMBNAIL = (MAX_IMAGE_DIMENSIONS // 2, MAX_IMAGE_DIMENSIONS // 2)
Expand Down

0 comments on commit 73e9069

Please sign in to comment.