Skip to content
#

telegram-bot

telegram logo

Telegram is a non-profit, cloud-based instant messaging service. It offers open source clients for a multitude of operating systems and powerful APIs that allow developers to create their own clients and chat bots.

Here are 6,314 public repositories matching this topic...

LDmitriy7
LDmitriy7 commented Mar 31, 2021

Context

Property types.Message.url uses deprecated method 'is_private' when checks chat type, so I get Deprecation warning.

Current Behavior

@property
def url(self) -> str:
    """
    Get URL for the message

    :return: str
    """

    if ChatType.is_private(self.chat):
        raise TypeError("Invalid chat type!")
    url = "https://t.me/"
    if self.chat
raid-7
raid-7 commented Jul 7, 2020

In terms of Telegram bot API the maximum polling time of getUpdates is referred to as timeout. That is if there are pending updates, Telegram will return them immediately. In the other case, it will wait for timeout seconds and then answer with an empty list.

The telegram-bot Rust library has its own notion of timeouts. getUpdates' timeout [i

mtproto

Created by Telegram Messenger LLP

Released August 2013

Website
telegram.org
Wikipedia
Wikipedia