platypush/plugins/chat/telegram/__init__.py
def send_message(self, chat_id: Union[str, int], text: str, parse_mode: Optional[str] = None,
                     disable_web_page_preview: bool = False, disable_notification: bool = False,
                     reply_to_message_id: Optional[int] = None) -> TelegramMessageResponse:
        """
        Send a message to a chat.

        :param chat_id: Chat ID. Can be either a numerical ID or a unique identifier in the format ``@channelname``.
            In order to get your own Telegram chat_id open a conversation with
            `@IDBot <https://telegram.me/IDBot>`_ and type ``/start`` followed by ``/getid``. Similar procedures
            also exist to get a group or channel chat_id - just Google for "Telegram get channel/group chat_id".

        :param text: Text to be sent.
        :param parse_mode: Set to 'Markdown' or 'HTML' to send either Markdown or HTML content.
        :param disable_web_page_preview: If True then web previews for URLs will be disabled.
        :param disable_notification: If True then no notification will be sent to the users.
        :param reply_to_message_id: If set then the message will be sent as a response to the specified message.
        """

        telegram = self.get_telegram()
        msg = telegram.bot.send_message(chat_id=chat_id,
                                        text=text,
                                        parse_mode=parse_mode,
                                        disable_web_page_preview=disable_web_page_preview,
                                        disable_notification=disable_notification,
                                        reply_to_message_id=reply_to_message_id)

        return self.parse_msg(msg)

        Send a message to a chat.

        :param chat_id: Chat ID. Can be either a numerical ID or a unique identifier in the format ``@channelname``.
            In order to get your own Telegram chat_id open a conversation with
            `@IDBot <https://telegram.me/IDBot>`_ and type ``/start`` followed by ``/getid``. Similar procedures
            also exist to get a group or channel chat_id - just Google for "Telegram get channel/group chat_id".

        :param text: Text to be sent.
        :param parse_mode: Set to 'Markdown' or 'HTML' to send either Markdown or HTML content.
        :param disable_web_page_preview: If True then web previews for URLs will be disabled.
        :param disable_notification: If True then no notification will be sent to the users.
        :param reply_to_message_id: If set then the message will be sent as a response to the specified message.
        
Send a message to a chat.
Send a message to a chat .
def send_message(self, chat_id: Union[str, int], text: str, parse_mode: Optional[str] = None,
                     disable_web_page_preview: bool = False, disable_notification: bool = False,
                     reply_to_message_id: Optional[int] = None) -> TelegramMessageResponse:
        telegram = self.get_telegram()
        msg = telegram.bot.send_message(chat_id=chat_id,
                                        text=text,
                                        parse_mode=parse_mode,
                                        disable_web_page_preview=disable_web_page_preview,
                                        disable_notification=disable_notification,
                                        reply_to_message_id=reply_to_message_id)
        return self.parse_msg(msg)
def send_message ( self , chat_id : Union [ str , int ] , text : str , parse_mode : Optional [ str ] = None , disable_web_page_preview : bool = False , disable_notification : bool = False , reply_to_message_id : Optional [ int ] = None ) -> TelegramMessageResponse : telegram = self . get_telegram ( ) msg = telegram . bot . send_message ( chat_id = chat_id , text = text , parse_mode = parse_mode , disable_web_page_preview = disable_web_page_preview , disable_notification = disable_notification , reply_to_message_id = reply_to_message_id ) return self . parse_msg ( msg )
Send a message to a chat.
Send a message to a chat .
"""
        Send a message to a chat.

        :param chat_id: Chat ID. Can be either a numerical ID or a unique identifier in the format ``@channelname``.
            In order to get your own Telegram chat_id open a conversation with
            `@IDBot <https://telegram.me/IDBot>`_ and type ``/start`` followed by ``/getid``. Similar procedures
            also exist to get a group or channel chat_id - just Google for "Telegram get channel/group chat_id".

        :param text: Text to be sent.
        :param parse_mode: Set to 'Markdown' or 'HTML' to send either Markdown or HTML content.
        :param disable_web_page_preview: If True then web previews for URLs will be disabled.
        :param disable_notification: If True then no notification will be sent to the users.
        :param reply_to_message_id: If set then the message will be sent as a response to the specified message.
        """
self
chat_id
Union[str, int]
Chat ID. Can be either a numerical ID or a unique identifier in the format ``@channelname``.
In order to get your own Telegram chat_id open a conversation with
`@IDBot `_ and type ``/start`` followed by ``/getid``. Similar procedures
also exist to get a group or channel chat_id - just Google for "Telegram get channel/group chat_id".
Chat ID . Can be either a numerical ID or a unique identifier in the format ` ` @channelname ` ` . In order to get your own Telegram chat_id open a conversation with ` @IDBot ` _ and type ` ` / start ` ` followed by ` ` / getid ` ` . Similar procedures also exist to get a group or channel chat_id - just Google for " Telegram get channel / group chat_id " .
text
str
Text to be sent.
Text to be sent .
parse_mode
Optional[str]
Set to 'Markdown' or 'HTML' to send either Markdown or HTML content.
Set to ' Markdown ' or ' HTML ' to send either Markdown or HTML content .
disable_web_page_preview
bool
If True then web previews for URLs will be disabled.
If True then web previews for URLs will be disabled .
disable_notification
bool
If True then no notification will be sent to the users.
If True then no notification will be sent to the users .
reply_to_message_id
Optional[int]
If set then the message will be sent as a response to the specified message.
If set then the message will be sent as a response to the specified message .