Skip to main content

Send Message

Add imports:

using Telega.Rpc.Dto.Functions.Users;
using Telega.Rpc.Dto.Types;

Send a message to your account:

var recipient = new InputPeer.SelfTag();
await tg.Messages.SendMessage(recipient, "Greetings from Telega!");