platypush/plugins/chat/telegram/__init__.py
def send_location(self, chat_id: Union[str, int],
                      latitude: float,
                      longitude: float,
                      disable_notification: bool = False,
                      reply_to_message_id: Optional[int] = None,
                      timeout: int = 20) -> TelegramMessageResponse:
        """
        Send a location 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 latitude: Latitude
        :param longitude: Longitude
        :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.
        :param timeout: Upload timeout (default: 20 seconds)
        """

        telegram = self.get_telegram()
        msg = telegram.bot.send_location(chat_id=chat_id,
                                         latitude=latitude,
                                         longitude=longitude,
                                         disable_notification=disable_notification,
                                         reply_to_message_id=reply_to_message_id,
                                         timeout=timeout)

        return self.parse_msg(msg)

        Send a location 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 latitude: Latitude
        :param longitude: Longitude
        :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.
        :param timeout: Upload timeout (default: 20 seconds)
        
Send a location to a chat.
Send a location to a chat .
def send_location(self, chat_id: Union[str, int],
                      latitude: float,
                      longitude: float,
                      disable_notification: bool = False,
                      reply_to_message_id: Optional[int] = None,
                      timeout: int = 20) -> TelegramMessageResponse:
        telegram = self.get_telegram()
        msg = telegram.bot.send_location(chat_id=chat_id,
                                         latitude=latitude,
                                         longitude=longitude,
                                         disable_notification=disable_notification,
                                         reply_to_message_id=reply_to_message_id,
                                         timeout=timeout)
        return self.parse_msg(msg)
def send_location ( self , chat_id : Union [ str , int ] , latitude : float , longitude : float , disable_notification : bool = False , reply_to_message_id : Optional [ int ] = None , timeout : int = 20 ) -> TelegramMessageResponse : telegram = self . get_telegram ( ) msg = telegram . bot . send_location ( chat_id = chat_id , latitude = latitude , longitude = longitude , disable_notification = disable_notification , reply_to_message_id = reply_to_message_id , timeout = timeout ) return self . parse_msg ( msg )
Send a location to a chat.
Send a location to a chat .
"""
        Send a location 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 latitude: Latitude
        :param longitude: Longitude
        :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.
        :param timeout: Upload timeout (default: 20 seconds)
        """
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 " .
latitude
float
None
longitude
float
None
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 .
timeout
int
Upload timeout (default: 20 seconds)
Upload timeout ( default : 20 seconds )