protected TamTamUploadQuery(TamTamClient tamTamClient, string url, string fileName, Stream input) : base(tamTamClient, url) { _tamTamClient = tamTamClient; _url = url; _uploadExec = new StreamUploadExec(fileName, input, this); }
public SendMessageQuery(TamTamClient client, NewMessageBody newMessageBody) : base(client, "/messages", newMessageBody, Method.POST) { _userId = new QueryParam <long>("user_id", this); _chatId = new QueryParam <long>("chat_id", this); _disableLinkPreview = new QueryParam <bool>("disable_link_preview", this); }
public TamTamQuery(TamTamClient tamTamClient, string url, object body, Method method) { _tamTamClient = tamTamClient; _url = url; _body = body; _method = method; }
protected TamTamUploadQuery(TamTamClient tamTamClient, string url, FileInfo file) : base(tamTamClient, url) { _tamTamClient = tamTamClient; _url = url; _uploadExec = new FileUploadExec(file, this); }
public GetMembersQuery(TamTamClient client, long chatId) : base(client, $"/chats/{chatId}/members", null, Method.GET) { _userIds = new QueryParam <List <long> >("user_ids", this); _marker = new QueryParam <long>("marker", this); _count = new QueryParam <int>("count", this); }
public GetUpdatesQuery(TamTamClient client) : base(client, "/updates", null, Method.GET) { _limit = new QueryParam <int>("limit", 100, this); _timeout = new QueryParam <int>("timeout", 30, this); _marker = new QueryParam <long>("marker", this); _types = new QueryParam <List <string> >("types", this); }
public GetMessagesQuery(TamTamClient tamTamClient) : base(tamTamClient, "/messages", null, Method.GET) { _chatId = new QueryParam <long>("chat_id", this); _messageIds = new QueryParam <List <string> >("message_ids", this); _from = new QueryParam <long>("from", this); _to = new QueryParam <long>("to", this); _count = new QueryParam <int>("count", this); }
public GetUploadUrlQuery(TamTamClient client, UploadType type) : base(client, "/uploads", null, Method.POST) { _type = new QueryParam <UploadType>("type", type, this).Required(); }
public GetMyInfoQuery(TamTamClient client) : base(client, "/me", null, Method.GET) { }
public LeaveChatQuery(TamTamClient client, long chatId) : base(client, $"/chats/{chatId}/members/me", null, Method.DELETE) { }
public GetSubscriptionsQuery(TamTamClient client) : base(client, "/subscriptions", null, Method.GET) { }
public AddMembersQuery(TamTamClient client, UserIdsList userIdsList, long chatId) : base(client, $"/chats/{chatId}/members", userIdsList, Method.POST) { }
public EditChatQuery(TamTamClient client, ChatPatch chatPatch, long chatId) : base(client, $"/chats/{chatId}", chatPatch, Method.PATCH) { }
public TamTamUploadAPI(TamTamClient client) { this._client = client; }
public UnsubscribeQuery(TamTamClient client, string url) : base(client, "/subscriptions", null, Method.DELETE) { _url = new QueryParam <string>("url", url, this).Required(); }
public GetChatsQuery(TamTamClient tamTamClient) : base(tamTamClient, "/chats", null, Method.GET) { _count = new QueryParam <int>("count", this); _marker = new QueryParam <long>("marker", this); }
public GetChatQuery(TamTamClient client, long chatId) : base(client, $"/chats/{chatId}", null, Method.GET) { }
public GetAdminsQuery(TamTamClient client, long chatId) : base(client, $"/chats/{chatId}/members/admins", null, Method.GET) { }
public RemoveMemberQuery(TamTamClient client, long chatId, long userId) : base(client, $"/chats/{chatId}/members", null, Method.DELETE) { _userId = new QueryParam <long>("user_id", userId, this).Required(); _block = new QueryParam <bool>("block", this); }
public GetMessageByIdQuery(TamTamClient tamTamClient, string messageId) : base(tamTamClient, $"/messages/{messageId}", null, Method.GET) { }
public ConstructQuery(TamTamClient client, ConstructorAnswer constructorAnswer, string sessionId) : base(client, "/answers/constructor", constructorAnswer, Method.POST) { _sessionId = new QueryParam <string>("message_id", sessionId, this).Required(); }
public SubscribeQuery(TamTamClient client, SubscriptionRequestBody subscriptionRequestBody) : base(client, "/subscriptions", subscriptionRequestBody, Method.POST) { }
public DeleteMessageQuery(TamTamClient client, string messageId) : base(client, "/messages", null, Method.DELETE) { _messageId = new QueryParam <string>("message_id", messageId, this).Required(); }
public TamTamUploadFileQuery(TamTamClient tamTamClient, string url, string fileName, Stream input) : base(tamTamClient, url, fileName, input) { }
public AnswerOnCallbackQuery(TamTamClient client, CallbackAnswer callbackAnswer, string callbackId) : base(client, "/answers", callbackAnswer, Method.POST) { _callbackId = new QueryParam <string>("callback_id", callbackId, this).Required(); }
public TamTamUploadFileQuery(TamTamClient tamTamClient, string url, FileInfo file) : base(tamTamClient, url, file) { }
public EditMessageQuery(TamTamClient client, NewMessageBody newMessageBody, string messageId) : base(client, "/messages", newMessageBody, Method.PUT) { _messageId = new QueryParam <string>("message_id", messageId, this).Required(); }
/// <summary> /// /// </summary> /// <param name="accessToken"></param> /// <returns></returns> public static TamTamBotApi Create(string accessToken) { return(new TamTamBotApi(TamTamClient.Create(accessToken))); }
public TamTamBotApi(TamTamClient client) { _client = client; }
public TamTamQuery(TamTamClient tamTamClient, string url, Method method) : this(tamTamClient, url, null, method) { }