Skip to content

Minor generalization of Telegram message sending code#184

Merged
JulienPeloton merged 1 commit intoastrolabsoftware:mainfrom
karpov-sv:tg_bot
May 16, 2025
Merged

Minor generalization of Telegram message sending code#184
JulienPeloton merged 1 commit intoastrolabsoftware:mainfrom
karpov-sv:tg_bot

Conversation

@karpov-sv
Copy link
Contributor

Now it is able to send unlimited number of (secondary) images, that may be either PNGs or just image URLs (that works, surprisingly). Also, now it is possible to specify parse_mode - https://core.telegram.org/bots/api#formatting-options - e.g. to set it to MarkdownV2 that allows nesting some formatting, to get bold links etc (but then a lot of characters should be escaped in the text - and we have a function for that).
And the timeouts are configurable.
It should not break existing calls to this function, but I honestly did not check it

@JulienPeloton
Copy link
Member

Thanks @karpov-sv !

just image URLs (that works, surprisingly)

good to know :-)

@JulienPeloton JulienPeloton merged commit 575fd24 into astrolabsoftware:main May 16, 2025
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants