Origamibot

Latest version: v2.3.6

Safety actively analyzes 687942 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 7

2.3.0

This release implements a simple [telegram-text](https://github.com/SKY-ALIN/telegram-text) integration.

How it works
- telegram-text is now an optional dependency, installation can be done with `pip install origamibot[telegram-text]` for example, or as a separate module of course.
- instances of `telegram_text.base.Element` and it's descendants can be passed straight to `text` and `caption` parameters of API calls.
- Appropriate type hints are in place
- when converting to markup string, takes into account passed `parse_mode`, if not present sets it to `HTML` by default.
- old-style text messages are unaffected
- if telegram-text is not installed converting function is no-op

Example usage
python
from origamibot import OrigamiBot
from telegram_text import Bold

token: str = "blahblah"
my_cid: int = 12516745
bot = OrigamiBot(token)
bot.send_message(my_cid, Bold("Bold text message"))

2.2.2

2.2.1

2.2.0

Added:
- Support for telegram premium
- `is_premium` field in `User`
- `premium_animation` field in `Sticker`
- `is_video` field in `Sticker`
- `protect_content` parameter to various `send_...` methods

Fixed:
- crash on mapping list of dictionaries to python objects

2.1.0

2.0.21

Page 2 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.