コード例 #1
0
ファイル: ReportChatPhoto.cs プロジェクト: Userizyon/UClient
 /// <summary>
 /// Reports a chat photo to the Telegram moderators. A chat photo can be reported only if this is a private chat with a bot, a private chat with a user sharing their location, a supergroup, or a channel, since other chats can't be checked by moderators
 /// </summary>
 public static Task <Ok> ReportChatPhotoAsync(
     this Client client, long chatId = default, int fileId = default, ChatReportReason reason = default, string text = default)
 {
     return(client.ExecuteAsync(new ReportChatPhoto
     {
         ChatId = chatId, FileId = fileId, Reason = reason, Text = text
     }));
 }
コード例 #2
0
ファイル: ReportChat.cs プロジェクト: Userizyon/UClient
 /// <summary>
 /// Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if this is a private chat with a bot, a private chat with a user sharing their location, a supergroup, or a channel, since other chats can't be checked by moderators
 /// </summary>
 public static Task <Ok> ReportChatAsync(
     this Client client, long chatId = default, long[] messageIds = default, ChatReportReason reason = default, string text = default)
 {
     return(client.ExecuteAsync(new ReportChat
     {
         ChatId = chatId, MessageIds = messageIds, Reason = reason, Text = text
     }));
 }
コード例 #3
0
ファイル: ReportChat.cs プロジェクト: studasd/tdsharp
 /// <summary>
 /// Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if this is a private chats with a bot, a private chat with a user sharing their location, a supergroup, or a channel, since other chats can't be checked by moderators
 /// </summary>
 public static Task <Ok> ReportChatAsync(this Client client,
                                         long chatId             = default(long),
                                         ChatReportReason reason = default(ChatReportReason),
                                         long[] messageIds       = default(long[]))
 {
     return(client.ExecuteAsync(new ReportChat
     {
         ChatId = chatId,
         Reason = reason,
         MessageIds = messageIds,
     }));
 }