Closed starkdm closed 7 months ago
To send a contact you need to use sendMessage
with inputMessageContact
.
@levlam Thanks! This works.
await Client.SendMessageAsync(chatId, inputMessageContent: new InputMessageContent.InputMessageContact() {
Contact = new Contact() { PhoneNumber = PhoneNumber }
});
How can I send my contact to the bot in chat? The documentation for sharePhoneNumber says that the user must be a mutual contact. But the bot cannot be added to contacts.
I use TDLib 1.8.21
Code example:
Everything works without exceptions, but the contact is not sent. The text message is sent, the contact is not.