Skip to content

How to send message? #142

Answered by Eltar007
Eltar007 asked this question in Q&A
Aug 31, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I've received this task )
// Getting chats to get access to my chat var chats = await _client.ExecuteAsync(new TdApi.GetChats() { Limit = 500 }); // compare content TdApi.InputMessageContent content = new TdApi.InputMessageContent.InputMessageText() { Extra = null, Text = new TdApi.FormattedText() { Extra = null, Text = "hello world!" } }; // sending compared content await _client.ExecuteAsync(new TdApi.SendMessage() { ChatId = 832378177, InputMessageContent = content });

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ForNeVeR
Comment options

Answer selected by ForNeVeR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants