Skip to content

Releases: cmd410/OrigamiBot

Timeouts fixes

25 Jun 07:23
d028273
Compare
Choose a tag to compare
  • Fixes not getting updates when connection times out (issue #35)

Hotfix

08 Jun 15:38
cbd1ba4
Compare
Choose a tag to compare
v2.3.5

bump version

Poetry update

15 Dec 18:13
890dd71
Compare
Choose a tag to compare
Merge pull request #33 from cmd410/fix-tg-rate-limit-updates-crash

Poetry update

Bug fix

13 Dec 10:55
abc9e90
Compare
Choose a tag to compare

Made update loop more reliable by handling TelegramAPIError for 429 too many requests error

Bug fix

06 Oct 18:18
0ab39af
Compare
Choose a tag to compare
  • Fixes unreliable calls to .unfold() method on optional reply_markup parameter in api requests

Minor fixes

26 Sep 04:57
Compare
Choose a tag to compare
  • Fixed typing in send_animation method, caption had Optional[Union[str, IO]] for some reason ¯_(ツ)_/¯
  • Added explanation parameter of send_poll method to telegram-text auto-convert function, now it can take Element like text and caption in other methods, explanation_parse_mode is used instead of parse_mode in this case

telegram-text integration

25 Sep 12:21
e9de8b0
Compare
Choose a tag to compare

This release implements a simple 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

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"))

Yet another hotfix

02 Jul 22:34
Compare
Choose a tag to compare
v2.2.2

bump version

Hotfix for python < 3.8 typing

02 Jul 22:24
Compare
Choose a tag to compare
v2.2.1

Typing hotfix for py < 3.8

Some API updates and fixes

02 Jul 22:16
Compare
Choose a tag to compare

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