public async Task PressButton(TLMessage message, int row, int button) { await MessageUtilities.PressButton(_client, Peer, message, row, button); }
public async Task <TLMessage> GetMessageById(int id) { return(await MessageUtilities.GetMessageById(_client, Peer, id, false)); }
public async Task SendMessage(string text) { await MessageUtilities.SendMessage(_client, Peer, text); }
public async Task <List <TLMessage> > GetLastMessages(int count) { return(await MessageUtilities.GetLastMessages(_client, Peer, false, count)); }
public async Task <TLMessage> GetLastMessage() { return(await MessageUtilities.GetLastMessage(_client, Peer)); }
public async Task ReplyToMsg(string text, int msgId) { await MessageUtilities.ReplyToMsg(_client, Peer, text, msgId); }
public async Task <TLMessage> GetLastMessage() { return(await MessageUtilities.GetLastMessage(_client, Peer, true) ?? (await GetLastMessages(10)).FirstOrDefault(m => m != null)); }