Pytg

Latest version: v0.4.10

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

Scan your dependencies

Page 1 of 4

0.4.11

- Nothing yet.

0.4.10

- Added optional `caption` argument to `send_document("user", "filepath" [, "caption"])`
- Improved automated `help(...)` docstrings a bit.
- Added automatic generation of Markdown documentation. `pytg.sender.create_automatic_documentation(filename="DOCUMENTATION.md")` creates a markdown formatted file. This uses roughly the same generation process as the automatic docstrings.
- Also added some missing documentation for some errors. [69](https://github.com/luckydonald/pytg/issues/69)
- The old documentation can be found at `DOCUMENTATION_manual.md`
- Added `command_send_message.py` example to show the simplest way to just send a message.
- Added `bot_with_context.py` example to demonstrate how to build converations with the use of generators and the `yield` statement.
- Improved example documentation, renamed some example files.
- Added `downloaded_file` parser. Returns a string for the file.
- Started with some code for [67](https://github.com/luckydonald/pytg/issues/67)
- Added optional `status` parameter to `Sender.send_typing`.

0.4.9

- Fixes `AssertionError` with secret chats. [74](https://github.com/luckydonald/pytg/issues/74)

0.4.8

- Renamed the argumen type `File` to `FilePath` to be more clear about it beeing a string. (Relates to [67](https://github.com/luckydonald/pytg/issues/67))
- Now the new `FailException` (subclasses `IllegalResponseException`) will be raised if the CLI reports a error.
- Fixed `Username` Argument becoming `None`
- `ResultParser` classes (not instances) will be instanciated automatically.

0.4.7

- Fixed `Sender.message_get` not accepting the new permanent id's. [66](https://github.com/luckydonald/pytg/issues/66)
- Added Example `source_of_reply.py` involving `Sender.message_get` to find the first message of a stack of replies.

0.4.6

- Added `Sender.channel_rename`, and supergroup fixes from [PR 61](https://github.com/luckydonald/pytg/pull/61). Thanks [huiyiqun](https://github.com/huiyiqun)
- Added `Sender.reply`, the previous `Sender.reply_text` became an alias of that. (ea43060c3f53a3f947fd73cd624c85a412804408)
- Added `Sender.resolve_username` [63](https://github.com/luckydonald/pytg/issues/63) (34ffb3fd15e8e322873c679b74293c3c184284d3)
- Started using [PEP 8 formatting](https://www.python.org/dev/peps/pep-0008/) which addresses [59](https://github.com/luckydonald/pytg/pull/59)
- Started using [PEP 396](https://www.python.org/dev/peps/pep-0396/) to include `__version__`

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.