TelegramBot.sendContact

Send phone contact

  1. Message sendContact(T chat_id, string phone_number, string first_name, string last_name)
    struct TelegramBot
    @trusted
    sendContact
    (
    T
    )
    (,,
    string first_name
    ,
    string last_name = ""
    )
  2. Message sendContact(SendContactMethod m)

Parameters

chat_id T

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

phone_number string

Contact's phone number

first_name string

Contact's first name

last_name string

Contact's last name

Return Value

Type: Message

Sent Message

Throws

TelegramBotException on errors

See Also

Meta