Exemple #1
0
        public SetActionResult setChatDescription(long ChatID, string Description)
        {
            ApiResult recData = postWeb(apiUrl + "setChatDescription", "chat_id=" + ChatID + "&title=" + Description);

            return(getSetActionResult(recData));
        }
Exemple #2
0
        public SetActionResult unpinChatMessage(long ChatID)
        {
            ApiResult recData = postWeb(apiUrl + "unpinChatMessage", "chat_id=" + ChatID);

            return(getSetActionResult(recData));
        }
Exemple #3
0
        public SendMessageResult setChatTitle(long ChatID, string Title)
        {
            ApiResult recData = postWeb(apiUrl + "setChatTitle", "chat_id=" + ChatID + "&title=" + Title);

            return(getSendMessageResult(recData));
        }
Exemple #4
0
        public SendMessageResult deleteChatPhoto(long ChatID)
        {
            ApiResult recData = postWeb(apiUrl + "deleteChatPhoto", "chat_id=" + ChatID);

            return(getSendMessageResult(recData));
        }
Exemple #5
0
        public SendMessageResult setChatPhoto(long ChatID, byte[] photo)
        {
            ApiResult recData = postWeb(apiUrl + "setChatPhoto", "chat_id=" + ChatID);

            return(getSendMessageResult(recData));
        }
Exemple #6
0
        public SetActionResult exportChatInviteLink(long ChatID)
        {
            ApiResult recData = postWeb(apiUrl + "exportChatInviteLink", "chat_id=" + ChatID);

            return(getSetActionResult(recData));
        }
Exemple #7
0
        public SetActionResult unbanChatMember(long ChatID, long UserID)
        {
            ApiResult recData = postWeb(apiUrl + "unbanChatMember", "chat_id=" + ChatID + "&user_id=" + UserID);

            return(getSetActionResult(recData));
        }