From faea0bf9b710d28ce07e3c569a61ae4e5ec2cf3a Mon Sep 17 00:00:00 2001 From: Ari Archer Date: Mon, 6 Mar 2023 16:09:46 +0200 Subject: [PATCH] pre-0.1.7 : bump python-telegram Signed-off-by: Ari Archer --- arigram/models.py | 4 +++- pyproject.lock | 16 ++++++++++++++-- pyproject.toml | 2 +- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/arigram/models.py b/arigram/models.py index 962caa6..562af3c 100644 --- a/arigram/models.py +++ b/arigram/models.py @@ -181,7 +181,9 @@ class Model: return False def can_be_deleted(self, chat_id: int, msg: Dict[str, Any]) -> bool: - c_id = msg["sender_id"].get("chat_id") or msg["sender_id"].get("user_id") + c_id = msg["sender_id"].get("chat_id") or msg["sender_id"].get( + "user_id" + ) if chat_id == c_id: return msg["can_be_deleted_only_for_self"] return msg["can_be_deleted_for_all_users"] diff --git a/pyproject.lock b/pyproject.lock index 95a8648..f646395 100644 --- a/pyproject.lock +++ b/pyproject.lock @@ -31,13 +31,15 @@ platform = "*" [[package]] name = "python-telegram" -version = "0.16.0" +version = "0.17.0" description = "Python library to help you build your own Telegram clients" category = "main" optional = false python-versions = "*" platform = "*" +[package.dependencies] +telegram-text = ">= 0.1.0.0, < 0.2.0.0" [[package]] name = "pywin32" version = "305" @@ -47,10 +49,19 @@ optional = false python-versions = "*" platform = "*" +[[package]] +name = "telegram-text" +version = "0.1.1" +description = "Python markup module for Telegram messenger. This module provides a rich list of components to build any possible markup fast and render it to specific html or MarkdownV2 formats." +category = "main" +optional = false +python-versions = ">=3.7,<4.0" +platform = "*" + [metadata] python-versions = "^3.10" platform = "*" -content-hash = "47c151f1c93602a42bc61a002082418be9f13a130d20a96a41080b177327b229" +content-hash = "f71787ce7c53c2e6a375b2313e82b9041a1b49a66e5335c4ff3e23cf3055bf5b" [metadata.hashes] plumbum = [] @@ -58,3 +69,4 @@ pyfzf = [] pyperclip = [] python-telegram = [] pywin32 = [] +telegram-text = [] diff --git a/pyproject.toml b/pyproject.toml index 704e103..df91288 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ repository = "https://github.com/TruncatedDinosour/arigram" [tool.poetry.dependencies] python = "^3.10" -python-telegram = "^0.16.0" +python-telegram = "^0.17.0" pyfzf = "^0.2.2" pyperclip = "^1.8.2"