Skip to content

Releases: tm-a-t/TGPy

v0.8.0

15 Feb 17:52
Compare
Choose a tag to compare

Feature

  • Wrap sys.stdout instead of print to capture output + properly use contextvars (7aa2015)

Fix

  • Don't stop on unhandled errors. They may happen when, for example, a module uses asyncio.create_task (3584f22)

v0.7.0

05 Feb 14:47
Compare
Choose a tag to compare

Feature

  • Update telethon (new markdown parser, html parser fixes) (43dd76f)
  • Update dependencies (layer 152) (234dc86)

Fix

  • Handle entities properly when editing "//" message (6d989dc)
  • Specify parse_mode in error handler to support markdown global parse mode (60cd81b)
  • Use message.raw_text instead of message.text to detect // (a85b1c8)

v0.6.2

22 Jan 18:15
Compare
Choose a tag to compare

Fix

  • Fix IndentationError appearing for some non-code messages (599c84f)
  • docker: Add /venv/bin to path (00be149)

Documentation

v0.6.1

06 Jan 18:11
Compare
Choose a tag to compare

Fix

  • Update command saying "Already up to date" while in fact updating correctly (9b25fe6)

v0.6.0

26 Nov 22:58
Compare
Choose a tag to compare

Feature

  • Use MessageEntityPre with language set to 'python' to enable syntax highlighting on supported clients (e.g. WebZ). Closes #24 (5de6ded)

Fix

  • Keep 'cancel' message when replying to other user (fixes #21) (057231d)
  • Ignore error when running code deletes the message itself (d022450)

Documentation

v0.5.1

09 Aug 14:50
Compare
Choose a tag to compare

Fix

  • Restart() now edits message properly (60afa44)
  • Compatibility with python 3.9 (f3c0468)

v0.5.0

08 Aug 18:25
Compare
Choose a tag to compare

Feature

  • Use custom telethon fork with updated layer (91894fc) (9c7738e)
  • Transform x.await into await x (6117421) (fde6291)
  • Better version detection, ping() builtin improvements (265b83f)
  • Allow to specify data directory via environment variable TGPY_DATA (4d769da)

Fix

  • Setting/removing reaction no longer triggers reevaluation (#25) (cf6e64e)
  • Emojis no longer break messages markup (#10) (20f48bc)
  • Parsing of modules with triple quotes in code (485166d)

Documentation

  • Guide rewrite

v0.4.1

10 Jan 14:36
Compare
Choose a tag to compare

Fix

  • code detection: Ignore messages like "fix: fix" (1b73815)

v0.4.0

10 Jan 14:22
Compare
Choose a tag to compare

Feature

Fix

  • code detection: Ignore messages like "cat (no)" and "fix: fix" (75bb43e)
  • Data directory path on Windows (7d0e283)
  • Print now always writes to message from which code is executed (0e46527)
  • Ctx.msg now always points to message from which code is executed (59acde9)

Documentation

  • Readme & guide updates (59a4036)
  • Installation with pip & other readme changes (b220b94)

v0.3.0

26 Dec 10:02
Compare
Choose a tag to compare

Feature

  • update: Show when no updates are available (62145ff)