platypush/plugins/chat/telegram/__init__.py
def send_contact(self, chat_id: Union[str, int],
                     phone_number: str,
                     first_name: str,
                     last_name: Optional[str] = None,
                     vcard: Optional[str] = None,
                     disable_notification: bool = False,
                     reply_to_message_id: Optional[int] = None,
                     timeout: int = 20) -> TelegramMessageResponse:
        """
        Send a contact 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 phone_number: Phone number.
        :param first_name: First name.
        :param last_name: Last name.
        :param vcard: Additional contact info in vCard format (0-2048 bytes).
        :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_contact(chat_id=chat_id,
                                        phone_number=phone_number,
                                        first_name=first_name,
                                        last_name=last_name,
                                        vcard=vcard,
                                        disable_notification=disable_notification,
                                        reply_to_message_id=reply_to_message_id,
                                        timeout=timeout)

        return self.parse_msg(msg)

        Send a contact 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 phone_number: Phone number.
        :param first_name: First name.
        :param last_name: Last name.
        :param vcard: Additional contact info in vCard format (0-2048 bytes).
        :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 contact to a chat.
Send a contact to a chat .
def send_contact(self, chat_id: Union[str, int],
                     phone_number: str,
                     first_name: str,
                     last_name: Optional[str] = None,
                     vcard: Optional[str] = None,
                     disable_notification: bool = False,
                     reply_to_message_id: Optional[int] = None,
                     timeout: int = 20) -> TelegramMessageResponse:
        telegram = self.get_telegram()
        msg = telegram.bot.send_contact(chat_id=chat_id,
                                        phone_number=phone_number,
                                        first_name=first_name,
                                        last_name=last_name,
                                        vcard=vcard,
                                        disable_notification=disable_notification,
                                        reply_to_message_id=reply_to_message_id,
                                        timeout=timeout)
        return self.parse_msg(msg)
def send_contact ( self , chat_id : Union [ str , int ] , phone_number : str , first_name : str , last_name : Optional [ str ] = None , vcard : Optional [ str ] = None , disable_notification : bool = False , reply_to_message_id : Optional [ int ] = None , timeout : int = 20 ) -> TelegramMessageResponse : telegram = self . get_telegram ( ) msg = telegram . bot . send_contact ( chat_id = chat_id , phone_number = phone_number , first_name = first_name , last_name = last_name , vcard = vcard , disable_notification = disable_notification , reply_to_message_id = reply_to_message_id , timeout = timeout ) return self . parse_msg ( msg )
Send a contact to a chat.
Send a contact to a chat .
"""
        Send a contact 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 phone_number: Phone number.
        :param first_name: First name.
        :param last_name: Last name.
        :param vcard: Additional contact info in vCard format (0-2048 bytes).
        :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 " .
phone_number
str
None
first_name
str
None
last_name
Optional[str]
None
vcard
Optional[str]
Additional contact info in vCard format (0-2048 bytes).
Additional contact info in vCard format ( 0 - 2048 bytes ) .
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 )