I am trying to send a message t o a group .The application runs with no errors but I do not receive a message.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TeleSharp.TL;
using TLSharp;
using TLSharp.Core;
namespace TLsharpTest
{
class Program
{
const int apiId = 55xxx;
const int groupId = -167xxxxx;
const string apiHash = "220xxxxxxxx";
const string number = "27xxxxxxx";
static void Main(string[] args)
{
var client = new TelegramClient(apiId, apiHash);
client.ConnectAsync();
var hash = client.SendCodeRequestAsync(number);
var code = "55xxx"; // you can change code in debugger
var user = client.MakeAuthAsync(number, apiHash, code);
client.SendMessageAsync(new TLInputPeerUser() { user_id = groupId }, "TEST");
Console.ReadKey();
}
Hi
I am trying to send a message t o a group .The application runs with no errors but I do not receive a message. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using TeleSharp.TL; using TLSharp; using TLSharp.Core;
namespace TLsharpTest { class Program {
} }