-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
394 changed files
with
13,035 additions
and
934 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using Newtonsoft.Json; | ||
|
||
namespace TdLib | ||
{ | ||
/// <summary> | ||
/// Autogenerated TDLib APIs | ||
/// </summary> | ||
public static partial class TdApi | ||
{ | ||
/// <summary> | ||
/// Activates stealth mode for stories, which hides all views of stories from the current user in the last "story_stealth_mode_past_period" seconds | ||
/// and for the next "story_stealth_mode_future_period" seconds; for Telegram Premium users only | ||
/// </summary> | ||
public class ActivateStoryStealthMode : Function<Ok> | ||
{ | ||
/// <summary> | ||
/// Data type for serialization | ||
/// </summary> | ||
[JsonProperty("@type")] | ||
public override string DataType { get; set; } = "activateStoryStealthMode"; | ||
|
||
/// <summary> | ||
/// Extra data attached to the function | ||
/// </summary> | ||
[JsonProperty("@extra")] | ||
public override string Extra { get; set; } | ||
|
||
|
||
} | ||
|
||
/// <summary> | ||
/// Activates stealth mode for stories, which hides all views of stories from the current user in the last "story_stealth_mode_past_period" seconds | ||
/// and for the next "story_stealth_mode_future_period" seconds; for Telegram Premium users only | ||
/// </summary> | ||
public static Task<Ok> ActivateStoryStealthModeAsync( | ||
this Client client) | ||
{ | ||
return client.ExecuteAsync(new ActivateStoryStealthMode | ||
{ | ||
|
||
}); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using Newtonsoft.Json; | ||
|
||
namespace TdLib | ||
{ | ||
/// <summary> | ||
/// Autogenerated TDLib APIs | ||
/// </summary> | ||
public static partial class TdApi | ||
{ | ||
/// <summary> | ||
/// Adds a chat folder by an invite link | ||
/// </summary> | ||
public class AddChatFolderByInviteLink : Function<Ok> | ||
{ | ||
/// <summary> | ||
/// Data type for serialization | ||
/// </summary> | ||
[JsonProperty("@type")] | ||
public override string DataType { get; set; } = "addChatFolderByInviteLink"; | ||
|
||
/// <summary> | ||
/// Extra data attached to the function | ||
/// </summary> | ||
[JsonProperty("@extra")] | ||
public override string Extra { get; set; } | ||
|
||
/// <summary> | ||
/// Invite link for the chat folder | ||
/// </summary> | ||
[JsonConverter(typeof(Converter))] | ||
[JsonProperty("invite_link")] | ||
public string InviteLink { get; set; } | ||
|
||
/// <summary> | ||
/// Identifiers of the chats added to the chat folder. The chats are automatically joined if they aren't joined yet | ||
/// </summary> | ||
[JsonProperty("chat_ids", ItemConverterType = typeof(Converter))] | ||
public long[] ChatIds { get; set; } | ||
} | ||
|
||
/// <summary> | ||
/// Adds a chat folder by an invite link | ||
/// </summary> | ||
public static Task<Ok> AddChatFolderByInviteLinkAsync( | ||
this Client client, string inviteLink = default, long[] chatIds = default) | ||
{ | ||
return client.ExecuteAsync(new AddChatFolderByInviteLink | ||
{ | ||
InviteLink = inviteLink, ChatIds = chatIds | ||
}); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using Newtonsoft.Json; | ||
|
||
namespace TdLib | ||
{ | ||
/// <summary> | ||
/// Autogenerated TDLib APIs | ||
/// </summary> | ||
public static partial class TdApi | ||
{ | ||
/// <summary> | ||
/// Allows the specified bot to send messages to the user | ||
/// </summary> | ||
public class AllowBotToSendMessages : Function<Ok> | ||
{ | ||
/// <summary> | ||
/// Data type for serialization | ||
/// </summary> | ||
[JsonProperty("@type")] | ||
public override string DataType { get; set; } = "allowBotToSendMessages"; | ||
|
||
/// <summary> | ||
/// Extra data attached to the function | ||
/// </summary> | ||
[JsonProperty("@extra")] | ||
public override string Extra { get; set; } | ||
|
||
/// <summary> | ||
/// Identifier of the target bot | ||
/// </summary> | ||
[JsonConverter(typeof(Converter))] | ||
[JsonProperty("bot_user_id")] | ||
public long BotUserId { get; set; } | ||
} | ||
|
||
/// <summary> | ||
/// Allows the specified bot to send messages to the user | ||
/// </summary> | ||
public static Task<Ok> AllowBotToSendMessagesAsync( | ||
this Client client, long botUserId = default) | ||
{ | ||
return client.ExecuteAsync(new AllowBotToSendMessages | ||
{ | ||
BotUserId = botUserId | ||
}); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using Newtonsoft.Json; | ||
|
||
namespace TdLib | ||
{ | ||
/// <summary> | ||
/// Autogenerated TDLib APIs | ||
/// </summary> | ||
public static partial class TdApi | ||
{ | ||
/// <summary> | ||
/// Boosts a chat and returns the list of available chat boost slots for the current user after the boost | ||
/// </summary> | ||
public class BoostChat : Function<ChatBoostSlots> | ||
{ | ||
/// <summary> | ||
/// Data type for serialization | ||
/// </summary> | ||
[JsonProperty("@type")] | ||
public override string DataType { get; set; } = "boostChat"; | ||
|
||
/// <summary> | ||
/// Extra data attached to the function | ||
/// </summary> | ||
[JsonProperty("@extra")] | ||
public override string Extra { get; set; } | ||
|
||
/// <summary> | ||
/// Identifier of the chat | ||
/// </summary> | ||
[JsonConverter(typeof(Converter))] | ||
[JsonProperty("chat_id")] | ||
public long ChatId { get; set; } | ||
|
||
/// <summary> | ||
/// Identifiers of boost slots of the current user from which to apply boosts to the chat | ||
/// </summary> | ||
[JsonProperty("slot_ids", ItemConverterType = typeof(Converter))] | ||
public int[] SlotIds { get; set; } | ||
} | ||
|
||
/// <summary> | ||
/// Boosts a chat and returns the list of available chat boost slots for the current user after the boost | ||
/// </summary> | ||
public static Task<ChatBoostSlots> BoostChatAsync( | ||
this Client client, long chatId = default, int[] slotIds = default) | ||
{ | ||
return client.ExecuteAsync(new BoostChat | ||
{ | ||
ChatId = chatId, SlotIds = slotIds | ||
}); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using Newtonsoft.Json; | ||
|
||
namespace TdLib | ||
{ | ||
/// <summary> | ||
/// Autogenerated TDLib APIs | ||
/// </summary> | ||
public static partial class TdApi | ||
{ | ||
/// <summary> | ||
/// Checks whether the specified bot can send messages to the user. Returns a 404 error if can't and the access can be granted by call to allowBotToSendMessages | ||
/// </summary> | ||
public class CanBotSendMessages : Function<Ok> | ||
{ | ||
/// <summary> | ||
/// Data type for serialization | ||
/// </summary> | ||
[JsonProperty("@type")] | ||
public override string DataType { get; set; } = "canBotSendMessages"; | ||
|
||
/// <summary> | ||
/// Extra data attached to the function | ||
/// </summary> | ||
[JsonProperty("@extra")] | ||
public override string Extra { get; set; } | ||
|
||
/// <summary> | ||
/// Identifier of the target bot | ||
/// </summary> | ||
[JsonConverter(typeof(Converter))] | ||
[JsonProperty("bot_user_id")] | ||
public long BotUserId { get; set; } | ||
} | ||
|
||
/// <summary> | ||
/// Checks whether the specified bot can send messages to the user. Returns a 404 error if can't and the access can be granted by call to allowBotToSendMessages | ||
/// </summary> | ||
public static Task<Ok> CanBotSendMessagesAsync( | ||
this Client client, long botUserId = default) | ||
{ | ||
return client.ExecuteAsync(new CanBotSendMessages | ||
{ | ||
BotUserId = botUserId | ||
}); | ||
} | ||
} | ||
} |
Oops, something went wrong.