-
Notifications
You must be signed in to change notification settings - Fork 1
Contacts.pm
Denis T edited this page Feb 8, 2017
·
3 revisions
Encapsulates work with bot contacts list.
Returns module instance.
-
api
- Telegram module instance.
Adds user to contact list.
-
user_id
- Telegram user id. -
contact
- Telegram contact object.
Returns user full name by id (first name + last name).
-
user_id
- Telegram user id.
Sends contact of user_id
to chat chat_id
. If contact of user_id
is not defined does nothing.
-
chat_id
- Telegram chat id. -
user_id
- Telegram user id.
No tests.