コード例 #1
0
 public async Task PressButton(TLMessage message, int row, int button)
 {
     await MessageUtilities.PressButton(_client, Peer, message, row, button);
 }
コード例 #2
0
 public async Task <TLMessage> GetMessageById(int id)
 {
     return(await MessageUtilities.GetMessageById(_client, Peer, id, false));
 }
コード例 #3
0
 public async Task SendMessage(string text)
 {
     await MessageUtilities.SendMessage(_client, Peer, text);
 }
コード例 #4
0
 public async Task <List <TLMessage> > GetLastMessages(int count)
 {
     return(await MessageUtilities.GetLastMessages(_client, Peer, false, count));
 }
コード例 #5
0
 public async Task <TLMessage> GetLastMessage()
 {
     return(await MessageUtilities.GetLastMessage(_client, Peer));
 }
コード例 #6
0
 public async Task ReplyToMsg(string text, int msgId)
 {
     await MessageUtilities.ReplyToMsg(_client, Peer, text, msgId);
 }
コード例 #7
0
 public async Task <TLMessage> GetLastMessage()
 {
     return(await MessageUtilities.GetLastMessage(_client, Peer, true) ??
            (await GetLastMessages(10)).FirstOrDefault(m => m != null));
 }