Метод | Описание | |
---|---|---|
AnswerCallbackQueryAsync ( [ callbackQueryId, string text = null, bool showAlert = false, |
Sends answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert.
|
|
AnswerInlineQueryAsync ( [ inlineQueryId, [ |
Sends answers to an inline query.
|
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
DownloadFileAsync ( [ file, [ fullPath, bool overwrite = false, |
Downloads the file requested by the GetFileAsync(string,System.Threading.CancellationToken) method.
|
|
DownloadFileAsync ( [ file, |
Downloads the file requested by the GetFileAsync(string,System.Threading.CancellationToken) method.
|
|
EditMessageCaptionAsync ( [ inlineMessageId, [ caption, |
Edits captions of the message with the provided identifier sent by the bot or via the bot (for inline bots).
|
|
EditMessageCaptionAsync ( [ chatId, long messageId, [ caption, |
Edits captions of the message with the provided identifier sent by the bot or via the bot (for inline bots).
|
|
EditMessageCaptionAsync ( long chatId, long messageId, [ caption, |
Edits captions of the message with the provided identifier sent by the bot or via the bot (for inline bots).
|
|
EditMessageReplyMarkupAsync ( [ inlineMessageId, |
Edit only the reply markup of messages sent by the bot or via the bot (for inline bots).
|
|
EditMessageReplyMarkupAsync ( [ chatId, long messageId, |
Edit only the reply markup of messages sent by the bot or via the bot (for inline bots).
|
|
EditMessageReplyMarkupAsync ( long chatId, long messageId, |
Edit only the reply markup of messages sent by the bot or via the bot (for inline bots).
|
|
EditMessageTextAsync ( [ inlineMessageId, [ text, ParseMode parseMode = ParseMode.Normal, bool disableWebPagePreview = false, |
Edits text messages sent by the bot or via the bot (for inline bots).
|
|
EditMessageTextAsync ( [ chatId, long messageId, [ text, ParseMode parseMode = ParseMode.Normal, bool disableWebPagePreview = false, |
Edits text messages sent by the bot or via the bot (for inline bots).
|
|
EditMessageTextAsync ( long chatId, long messageId, [ text, ParseMode parseMode = ParseMode.Normal, bool disableWebPagePreview = false, |
Edits text messages sent by the bot or via the bot (for inline bots).
|
|
ForwardMessageAsync ( [ chatId, string fromChatId, long messageId, bool disableNotification = false, |
Forwards message of any kind.
|
|
ForwardMessageAsync ( long chatId, long fromChatId, long messageId, bool disableNotification = false, |
Forwards message of any kind.
|
|
ForwardMessageAsync ( long chatId, string fromChatId, long messageId, bool disableNotification = false, |
Forwards message of any kind.
|
|
GetFileAsync ( [ fileId, [ fullPath, bool overwrite = false, |
Downloads the file with the specified fileId.
|
|
GetFileAsync ( [ fileId, |
Returns basic info about a file and prepare it for downloading. For the moment, bots can download files of up to 20MB in size.
|
|
GetMeAsync ( |
A simple method for testing your bot's auth token. Requires no parameters. Returns basic information about the bot in form of a User object.
|
|
GetUpdatesAsync ( long offset, int limit = 100, int timeout, |
Use this method to receive incoming updates using long polling. Note: In order to avoid getting duplicate updates, recalculate offset after each server response.
|
|
GetUserProfilePhotosAsync ( long userId, int offset = -1, int limit = 100, |
Gets a list of profile pictures for a user.
|
|
KickChatMemberAsync ( [ chatId, long userId, |
Kicks a user from a group or a supergroup. In the case of supergroups, the user will not be able to return to the group on their own using invite links, etc., unless unbanned first using UnbanChatMemberAsync(string, long, CancellationToken). The bot must be an administrator in the group for this to work. Note: This will method only work if the ‘All Members Are Admins’ setting is off in the target group. Otherwise members may only be removed by the group's creator or by the member that added them. |
|
KickChatMemberAsync ( long chatId, long userId, |
Kicks a user from a group or a supergroup. In the case of supergroups, the user will not be able to return to the group on their own using invite links, etc., unless unbanned first using UnbanChatMemberAsync(string, long, CancellationToken). The bot must be an administrator in the group for this to work. Note: This will method only work if the ‘All Members Are Admins’ setting is off in the target group. Otherwise members may only be removed by the group's creator or by the member that added them. |
|
SendAudioAsync ( [ chatId, [ audioId, int duration, string performer = null, string title = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends an audio file. If you want Telegram clients to display them in the music player. Your audio must be in the .mp3 format.
|
|
SendAudioAsync ( [ chatId, [ audioStream, string fileName, int duration, string performer = null, string title = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends an audio file. If you want Telegram clients to display them in the music player. Your audio must be in the .mp3 format.
|
|
SendAudioAsync ( long chatId, [ audioId, int duration, string performer = null, string title = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends an audio file. If you want Telegram clients to display them in the music player. Your audio must be in the .mp3 format.
|
|
SendAudioAsync ( long chatId, [ audioStream, string fileName, int duration, string performer = null, string title = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends an audio file. If you want Telegram clients to display them in the music player. Your audio must be in the .mp3 format.
|
|
SendAudioFromFileAsync ( [ chatId, [ filePath, int duration, string performer = null, string title = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends an audio file to be displayed as a playable voice message on Telegram clients.
|
|
SendAudioFromFileAsync ( long chatId, [ filePath, int duration, string performer = null, string title = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends an audio file to be displayed as a playable voice message on Telegram clients.
|
|
SendChatActionAsync ( [ chatId, |
Sends a chat action. Use this method when you need to tell the user that something is happening on the bot's side. Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status). |
|
SendChatActionAsync ( long chatId, |
Sends a chat action. Use this method when you need to tell the user that something is happening on the bot's side. Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status). |
|
SendContactAsync ( [ chatId, [ phoneNumber, [ firstName, string lastName = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Send phone contacts.
|
|
SendContactAsync ( long chatId, [ phoneNumber, [ firstName, string lastName = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Send phone contacts.
|
|
SendDocumentAsync ( [ chatId, [ documentId, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends a general file. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future. |
|
SendDocumentAsync ( [ chatId, [ documentStream, string fileName, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends a general file. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future. |
|
SendDocumentAsync ( long chatId, [ documentId, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends a general file. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future. |
|
SendDocumentAsync ( long chatId, [ documentStream, string fileName, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends a general file. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future. |
|
SendDocumentFromFileAsync ( [ chatId, [ filePath, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends a general file. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future. |
|
SendDocumentFromFileAsync ( long chatId, [ filePath, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends a general file. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future. |
|
SendLocationAsync ( [ chatId, double latitude, double longitude, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends a point on the map.
|
|
SendLocationAsync ( long chatId, double latitude, double longitude, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends a point on the map.
|
|
SendMessageAsync ( [ message, [ text, ParseMode parseMode = ParseMode.Normal, bool disableWebPagePreview = false, bool disableNotification = false, IReply replyMarkup = null, |
Sends a text message and requests to hide the current custom keyboard by default. Optionally if the message is a reply, ID of the original message will be sent.
|
|
SendMessageAsync ( [ chatId, [ text, ParseMode parseMode = ParseMode.Normal, bool disableWebPagePreview = false, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends a text message.
|
|
SendMessageAsync ( long chatId, [ text, ParseMode parseMode = ParseMode.Normal, bool disableWebPagePreview = false, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends a text message.
|
|
SendPhotoAsync ( [ chatId, [ documentId, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends a photo.
|
|
SendPhotoAsync ( [ chatId, [ photoStream, string fileName, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends a photo.
|
|
SendPhotoAsync ( long chatId, [ documentId, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends a photo.
|
|
SendPhotoAsync ( long chatId, [ photoStream, string fileName, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends a photo.
|
|
SendPhotoFromFileAsync ( [ chatId, [ filePath, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends a photo.
|
|
SendPhotoFromFileAsync ( long chatId, [ filePath, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends a photo.
|
|
SendStickerAsync ( [ chatId, [ stickerId, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends
|
|
SendStickerAsync ( [ chatId, [ stickerStream, string fileName, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends
|
|
SendStickerAsync ( long chatId, [ stickerId, long replyToMessageId, bool disableNotification = false, IReply replyMarkup = null, |
Sends
|
|
SendStickerAsync ( long chatId, [ stickerStream, string fileName, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends
|
|
SendStickerFromFileAsync ( [ chatId, [ filePath, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future. |
|
SendStickerFromFileAsync ( long chatId, [ filePath, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future. |
|
SendVenueAsync ( [ chatId, float latitude, float longitude, [ title, [ address, string forsquareId = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Send information about a venue.
|
|
SendVenueAsync ( long chatId, float latitude, float longitude, [ title, [ address, string forsquareId = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Send information about a venue.
|
|
SendVideoAsync ( [ chatId, [ videoId, int duration, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends a video file. Telegram clients support mp4 videos (other formats may be sent as Document). Bots can currently send video files of up to 50 MB in size, this limit may be changed in the future. |
|
SendVideoAsync ( [ chatId, [ videoStream, string fileName, int duration, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends a video file. Telegram clients support mp4 videos (other formats may be sent as Document). Bots can currently send video files of up to 50 MB in size, this limit may be changed in the future. |
|
SendVideoAsync ( long chatId, [ videoId, int duration, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends a video file. Telegram clients support mp4 videos (other formats may be sent as Types.Document). Bots can currently send video files of up to 50 MB in size, this limit may be changed in the future. |
|
SendVideoAsync ( long chatId, [ videoStream, string fileName, int duration, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends a video file. Telegram clients support mp4 videos (other formats may be sent as Document). Bots can currently send video files of up to 50 MB in size, this limit may be changed in the future. |
|
SendVideoFromFileAsync ( [ chatId, [ filePath, int duration, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends a video file. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future. |
|
SendVideoFromFileAsync ( long chatId, [ filePath, int duration, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends a video file. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future. |
|
SendVoiceAsync ( [ chatId, [ voice, int duration, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends an audio file to be displayed as a playable voice message on Telegram clients. For this to work, your audio must be in an .ogg file encoded with OPUS (other formats may be sent as Audio or Document). Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future. |
|
SendVoiceAsync ( [ chatId, [ voiceStream, string fileName, int duration, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends an audio file to be displayed as a playable voice message on Telegram clients. For this to work, your audio must be in an .ogg file encoded with OPUS (other formats may be sent as Audio or Document). Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future. |
|
SendVoiceAsync ( long chatId, [ voice, int duration, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends an audio file to be displayed as a playable voice message on Telegram clients. For this to work, your audio must be in an .ogg file encoded with OPUS (other formats may be sent as Audio or Document). Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future. |
|
SendVoiceAsync ( long chatId, [ voiceStream, string fileName, int duration, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends an audio file to be displayed as a playable voice message on Telegram clients. For this to work, your audio must be in an .ogg file encoded with OPUS (other formats may be sent as Audio or Document). Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future. |
|
SendVoiceFromFileAsync ( [ chatId, [ filePath, int duration, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends an audio file to be displayed as a playable voice message on Telegram clients. For this to work, your audio must be in an .ogg file encoded with OPUS (other formats may be sent as Audio or Document). Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future. |
|
SendVoiceFromFileAsync ( long chatId, [ filePath, int duration, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
Sends an audio file to be displayed as a playable voice message on Telegram clients. For this to work, your audio must be in an .ogg file encoded with OPUS (other formats may be sent as Audio or Document). Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future. |
|
SetWebhookAsync ( string url, string certificatePath = null, |
Use this method to specify a url and receive incoming updates via an outgoing webhook. Whenever there is an update for the bot, Telegram will send an HTTPS POST request to the specified url, containing a JSON-serialized Update. In case of an unsuccessful request, it will give up after a reasonable amount of attempts. If you'd like to make sure that the Webhook request comes from Telegram, we recommend using a secret path in the URL, e.g.
|
|
Telebot ( [ apiKey ) : System |
Initializes a new instance of the Telebot class.
|
|
UnbanChatMemberAsync ( [ chatId, long userId, |
Unbans a previously kicked user in a supergroup. The user will not return to the group automatically, but will be able to join via link, etc. The bot must be an administrator in the group for this to work.
|
|
UnbanChatMemberAsync ( long chatId, long userId, CancellationToken cancellationToken = default(CancellationToken) ) : Task |
Unbans a previously kicked user in a supergroup. The user will not return to the group automatically, but will be able to join via link, etc. The bot must be an administrator in the group for this to work. Note: This will method only work if the ‘All Members Are Admins’ setting is off in the target group. Otherwise members may only be removed by the group's creator or by the member that added them. |
public AnswerCallbackQueryAsync ( [ callbackQueryId, string text = null, bool showAlert = false, |
||
callbackQueryId | [ | Unique identifier for the query to be answered. |
text | string | /// Text of the notification. If not specified, nothing will be shown to the user. /// |
showAlert | bool |
/// If |
cancellationToken |
/// A |
|
Результат | Task |
public AnswerInlineQueryAsync ( [ inlineQueryId, [ |
||
inlineQueryId | [ | Unique identifier for answered query. |
results | [ |
Results of the inline query. |
cacheTime | int | /// The maximum amount of time in seconds the result of the inline query may be cached on the Telegram /// server. Default is 300. /// |
isPersonal | bool |
/// |
nextOffset | string |
/// The offset that a client should send in the next query with the same text to receive more results.
/// |
switchPrivateMessageText | string |
/// If passed, clients will display a button with specified text that switches the user to a private
/// chat with the bot and sends the bot a start message with the parameter
/// |
switchPrivateMessageParameter | string |
/// Parameter for the start message sent to the bot when user presses the switch button.
/// |
cancellationToken |
/// A |
|
Результат | Task |
public DownloadFileAsync ( [ file, [ fullPath, bool overwrite = false, |
||
file | [ |
/// The file info received by calling
/// |
fullPath | [ | /// The full directory and file name to the location where the downloaded file should be saved. /// |
overwrite | bool |
/// If set to |
cancellationToken | /// A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. /// | |
Результат | Task |
public DownloadFileAsync ( [ file, |
||
file | [ |
/// The file info received by calling
/// |
cancellationToken | /// A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. /// | |
Результат | Task |
public EditMessageCaptionAsync ( [ inlineMessageId, [ caption, |
||
inlineMessageId | [ | Identifier of the inline message. |
caption | [ | New caption of the message. |
replyMarkup |
/// An |
|
cancellationToken |
/// A |
|
Результат | Task |
public EditMessageCaptionAsync ( [ chatId, long messageId, [ caption, |
||
chatId | [ | /// Unique identifier for the target chat or username of the target channel (in the format /// @channelusername). /// |
messageId | long | Unique identifier of the sent message. |
caption | [ | New caption of the message. |
replyMarkup |
/// An |
|
cancellationToken |
/// A |
|
Результат | Task |
public EditMessageCaptionAsync ( long chatId, long messageId, [ caption, |
||
chatId | long | /// Unique identifier for the target chat or username of the target channel (in the format /// @channelusername). /// |
messageId | long | Unique identifier of the sent message. |
caption | [ | New caption of the message. |
replyMarkup |
/// An |
|
cancellationToken |
/// A |
|
Результат | Task |
public EditMessageReplyMarkupAsync ( [ inlineMessageId, |
||
inlineMessageId | [ | Identifier of the inline message. |
replyMarkup |
/// An |
|
cancellationToken |
/// A |
|
Результат | Task |
public EditMessageReplyMarkupAsync ( [ chatId, long messageId, |
||
chatId | [ | /// Unique identifier for the target chat or username of the target channel (in the format /// @channelusername). /// |
messageId | long | Unique identifier of the sent message. |
replyMarkup |
/// An |
|
cancellationToken |
/// A |
|
Результат | Task |
public EditMessageReplyMarkupAsync ( long chatId, long messageId, |
||
chatId | long | /// Unique identifier for the target chat or username of the target channel (in the format /// @channelusername). /// |
messageId | long | Unique identifier of the sent message. |
replyMarkup |
/// An |
|
cancellationToken |
/// A |
|
Результат | Task |
public EditMessageTextAsync ( [ inlineMessageId, [ text, ParseMode parseMode = ParseMode.Normal, bool disableWebPagePreview = false, |
||
inlineMessageId | [ | The identifier of the inline message. |
text | [ | New text of the message |
parseMode | ParseMode |
/// A value from |
disableWebPagePreview | bool | Disables link previews for links in this message |
replyMarkup |
/// An |
|
cancellationToken |
/// A |
|
Результат | Task |
public EditMessageTextAsync ( [ chatId, long messageId, [ text, ParseMode parseMode = ParseMode.Normal, bool disableWebPagePreview = false, |
||
chatId | [ | /// Unique identifier for the target chat or username of the target channel (in the format /// @channelusername). /// |
messageId | long | Unique identifier of the sent message. |
text | [ | New text of the message |
parseMode | ParseMode |
/// A value from |
disableWebPagePreview | bool | Disables link previews for links in this message |
replyMarkup |
/// An |
|
cancellationToken |
/// A |
|
Результат | Task |
public EditMessageTextAsync ( long chatId, long messageId, [ text, ParseMode parseMode = ParseMode.Normal, bool disableWebPagePreview = false, |
||
chatId | long | /// Unique identifier for the target chat or username of the target channel (in the format /// @channelusername). /// |
messageId | long | Unique identifier of the sent message. |
text | [ | New text of the message |
parseMode | ParseMode |
/// A value from |
disableWebPagePreview | bool | Disables link previews for links in this message |
replyMarkup |
/// An |
|
cancellationToken |
/// A |
|
Результат | Task |
public ForwardMessageAsync ( [ chatId, string fromChatId, long messageId, bool disableNotification = false, |
||
chatId | [ | Unique identifier for the message recipient or username of the target channel (in the format /// @channelusername). |
fromChatId | string | Unique identifier for the chat where the original message was sent or username of the target /// channel (in the format @channelusername). |
messageId | long | Unique message identifier |
disableNotification | bool | If set to |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public ForwardMessageAsync ( long chatId, long fromChatId, long messageId, bool disableNotification = false, |
||
chatId | long | Unique identifier for the message recipient. |
fromChatId | long | /// Unique identifier for the chat where the original message was sent. /// |
messageId | long | Unique message identifier |
disableNotification | bool | If set to |
cancellationToken | /// A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. /// | |
Результат | Task |
public ForwardMessageAsync ( long chatId, string fromChatId, long messageId, bool disableNotification = false, |
||
chatId | long | Unique identifier for the message recipient. |
fromChatId | string | /// Unique identifier for the chat where the original message was sent or username of the target /// channel (in the format @channelusername). /// |
messageId | long | Unique message identifier |
disableNotification | bool | If set to |
cancellationToken | /// A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. /// | |
Результат | Task |
public GetFileAsync ( [ fileId, [ fullPath, bool overwrite = false, |
||
fileId | [ | The file identifier. |
fullPath | [ | /// The full directory and file name to the location where the downloaded file should be saved. /// |
overwrite | bool |
/// If set to |
cancellationToken | /// A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. /// | |
Результат | Task |
public GetFileAsync ( [ fileId, |
||
fileId | [ | The file identifier. |
cancellationToken | /// A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. /// | |
Результат | Task |
public GetMeAsync ( |
||
cancellationToken | /// A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. /// | |
Результат | Task |
public GetUpdatesAsync ( long offset, int limit = 100, int timeout, |
||
offset | long | /// Identifier of the first update to be returned. Must be greater by one than the highest among the /// identifiers of previously received updates. By default, updates starting with the earliest /// unconfirmed update are returned. An update is considered confirmed as soon as getUpdates is called /// with an offset higher than its update_id. /// |
limit | int | /// Limits the number of updates to be retrieved. Values between 1—100 are accepted. Defaults to 100. /// |
timeout | int | /// Timeout in seconds for long polling. Defaults to 0, i.e. usual short polling. /// |
cancellationToken | /// A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. /// | |
Результат | Task |
public GetUserProfilePhotosAsync ( long userId, int offset = -1, int limit = 100, |
||
userId | long | Unique identifier of the target user. |
offset | int | /// Sequential number of the first photo to be returned. By default, all photos are returned. /// |
limit | int | /// Limits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100. /// |
cancellationToken | /// A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. /// | |
Результат | Task |
public KickChatMemberAsync ( [ chatId, long userId, |
||
chatId | [ | /// Unique identifier for the target group or username of the target supergroup (in the format /// @supergroupusername). /// |
userId | long | Unique identifier of the target user. |
cancellationToken |
/// A |
|
Результат | Task |
public KickChatMemberAsync ( long chatId, long userId, |
||
chatId | long | Unique identifier for the target group. |
userId | long | Unique identifier of the target user. |
cancellationToken |
/// A |
|
Результат | Task |
public SendAudioAsync ( [ chatId, [ audioId, int duration, string performer = null, string title = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | [ | Unique identifier for the message recipient or username of the target channel (in the format /// @channelusername). |
audioId | [ | Id of an audio file that is already on the Telegram servers. |
duration | int | Duration of the audio in seconds. |
performer | string | The performer of the audio. |
title | string | The track name. |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendAudioAsync ( [ chatId, [ audioStream, string fileName, int duration, string performer = null, string title = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | [ | Unique identifier for the message recipient or username of the target channel (in the format /// @channelusername). |
audioStream | [ | A |
fileName | string | A name for the file to be sent using |
duration | int | Duration of the audio in seconds. |
performer | string | The performer of the audio. |
title | string | The track name. |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendAudioAsync ( long chatId, [ audioId, int duration, string performer = null, string title = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | long | Unique identifier for the message recipient. |
audioId | [ | Id of an audio file that is already on the Telegram servers. |
duration | int | Duration of the audio in seconds. |
performer | string | The performer of the audio. |
title | string | The track name. |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendAudioAsync ( long chatId, [ audioStream, string fileName, int duration, string performer = null, string title = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | long | Unique identifier for the message recipient. |
audioStream | [ | A |
fileName | string | A name for the file to be sent using |
duration | int | Duration of the audio in seconds. |
performer | string | The performer of the audio. |
title | string | The track name. |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendAudioFromFileAsync ( [ chatId, [ filePath, int duration, string performer = null, string title = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | [ | Unique identifier for the message recipient or username of the target channel (in the format /// @channelusername). |
filePath | [ | Fully qualified path to the audio file. |
duration | int | Duration of sent audio in seconds. |
performer | string | The performer of the audio. |
title | string | The track name. |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendAudioFromFileAsync ( long chatId, [ filePath, int duration, string performer = null, string title = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | long | Unique identifier for the message recipient. |
filePath | [ | Fully qualified path to the audio file. |
duration | int | Duration of sent audio in seconds. |
performer | string | The performer of the audio. |
title | string | The track name. |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendChatActionAsync ( [ chatId, |
||
chatId | [ | /// Unique identifier for the message recipient or username of the target channel (in the format /// @channelusername). /// |
action | Type of action to broadcast. | |
cancellationToken | /// A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. /// | |
Результат | Task |
public SendChatActionAsync ( long chatId, |
||
chatId | long | Unique identifier for the message recipient. |
action | Type of action to broadcast. | |
cancellationToken | /// A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. /// | |
Результат | Task |
public SendContactAsync ( [ chatId, [ phoneNumber, [ firstName, string lastName = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | [ | /// Unique identifier for the target chat or username of the target channel (in the format /// @channelusername) /// |
phoneNumber | [ | Contact's phone number. |
firstName | [ | Contact's first name. |
lastName | string | Contact's last name. |
disableNotification | bool |
/// If set to |
replyToMessageId | long | /// If the message is a reply, ID of the original message. /// |
replyMarkup | IReply |
/// Additional interface options. An |
cancellationToken |
/// A |
|
Результат | Task |
public SendContactAsync ( long chatId, [ phoneNumber, [ firstName, string lastName = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | long | /// Unique identifier for the target chat or username of the target channel (in the format /// @channelusername) /// |
phoneNumber | [ | Contact's phone number. |
firstName | [ | Contact's first name. |
lastName | string | Contact's last name. |
disableNotification | bool |
/// If set to |
replyToMessageId | long | /// If the message is a reply, ID of the original message. /// |
replyMarkup | IReply |
/// Additional interface options. An |
cancellationToken |
/// A |
|
Результат | Task |
public SendDocumentAsync ( [ chatId, [ documentId, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | [ | Unique identifier for the message recipient or username of the target channel (in the format /// @channelusername). |
documentId | [ | A file id as string to resend a file that is already on the Telegram servers. |
caption | string | The document caption, 0-200 characters. |
disableNotification | bool | if set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendDocumentAsync ( [ chatId, [ documentStream, string fileName, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | [ | Unique identifier for the message recipient or username of the target channel (in the format /// @channelusername). |
documentStream | [ | A |
fileName | string | A name for the file to be sent using |
caption | string | Document caption, 0-200 characters. |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendDocumentAsync ( long chatId, [ documentId, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | long | Unique identifier for the message recipient or username of the target channel (in the format /// @channelusername). |
documentId | [ | A file id as string to resend a file that is already on the Telegram servers. |
caption | string | The document caption, 0-200 characters. |
disableNotification | bool | if set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendDocumentAsync ( long chatId, [ documentStream, string fileName, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | long | Unique identifier for the message recipient. |
documentStream | [ | A |
fileName | string | A name for the file to be sent using |
caption | string | Document caption, 0-200 characters. |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendDocumentFromFileAsync ( [ chatId, [ filePath, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | [ | Unique identifier for the message recipient or username of the target channel (in the format /// @channelusername). |
filePath | [ | Fully qualified path to the file to send. |
caption | string | The document caption. |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendDocumentFromFileAsync ( long chatId, [ filePath, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | long | Unique identifier for the message recipient or username of the target channel (in the format /// @channelusername). |
filePath | [ | Fully qualified path to the file to send. |
caption | string | The document caption. |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendLocationAsync ( [ chatId, double latitude, double longitude, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | [ | Unique identifier for the message recipient or username of the target channel (in the format /// @channelusername). |
latitude | double | Latitude of location |
longitude | double | Longitude of location |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendLocationAsync ( long chatId, double latitude, double longitude, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | long | Unique identifier for the message recipient. |
latitude | double | Latitude of location |
longitude | double | Longitude of location |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendMessageAsync ( [ message, [ text, ParseMode parseMode = ParseMode.Normal, bool disableWebPagePreview = false, bool disableNotification = false, IReply replyMarkup = null, |
||
message | [ | The original received message. |
text | [ | Text of the message to be sent. |
parseMode | ParseMode | Indicates the way that the Telegram should parse the sent message. |
disableWebPagePreview | bool | if set to |
disableNotification | bool | If set to |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendMessageAsync ( [ chatId, [ text, ParseMode parseMode = ParseMode.Normal, bool disableWebPagePreview = false, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | [ | /// Unique identifier for the message recipient or username of the target channel (in the format /// @channelusername). /// |
text | [ | Text of the message to be sent. |
parseMode | ParseMode | /// Indicates the way that the Telegram should parse the sent message. /// |
disableWebPagePreview | bool |
/// if set to |
disableNotification | bool | If set to |
replyToMessageId | long | /// If the message is a reply, ID of the original message. /// |
replyMarkup | IReply |
/// Additional interface options. An |
cancellationToken | /// A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. /// | |
Результат | Task |
public SendMessageAsync ( long chatId, [ text, ParseMode parseMode = ParseMode.Normal, bool disableWebPagePreview = false, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | long | Unique identifier for the message recipient. |
text | [ | Text of the message to be sent. |
parseMode | ParseMode | Indicates the way that the Telegram should parse the sent message. |
disableWebPagePreview | bool | if set to |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendPhotoAsync ( [ chatId, [ documentId, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | [ | Unique identifier for the message recipient or username of the target channel (in the format /// @channelusername). |
documentId | [ | A file id as string to resend a photo that is already on the Telegram servers. |
caption | string | Photo caption (may also be used when resending photos by file id). |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendPhotoAsync ( [ chatId, [ photoStream, string fileName, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | [ | Unique identifier for the message recipient or username of the target channel (in the format /// @channelusername). |
photoStream | [ | A |
fileName | string | A name for the file to be sent using |
caption | string | Photo caption (may also be used when resending photos by file id). |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendPhotoAsync ( long chatId, [ documentId, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | long | Unique identifier for the message recipient. |
documentId | [ | A file id as string to resend a photo that is already on the Telegram servers. |
caption | string | Photo caption (may also be used when resending photos by file id). |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendPhotoAsync ( long chatId, [ photoStream, string fileName, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | long | Unique identifier for the message recipient. |
photoStream | [ | A |
fileName | string | A name for the file to be sent using |
caption | string | Photo caption (may also be used when resending photos by file id). |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendPhotoFromFileAsync ( [ chatId, [ filePath, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | [ | Unique identifier for the message recipient or username of the target channel (in the format /// @channelusername). |
filePath | [ | The fully qualified path to the photo to send. |
caption | string | Photo caption (may also be used when resending photos by file id). |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendPhotoFromFileAsync ( long chatId, [ filePath, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | long | Unique identifier for the message recipient. |
filePath | [ | The fully qualified path to the photo to send. |
caption | string | Photo caption (may also be used when resending photos by file id). |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendStickerAsync ( [ chatId, [ stickerId, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | [ | Unique identifier for the message recipient or username of the target channel (in the format /// @channelusername). |
stickerId | [ | A file id as string to resend a sticker that is already on the Telegram servers. |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendStickerAsync ( [ chatId, [ stickerStream, string fileName, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | [ | Unique identifier for the message recipient or username of the target channel (in the format /// @channelusername). |
stickerStream | [ | A |
fileName | string | A name for the file to be sent using |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendStickerAsync ( long chatId, [ stickerId, long replyToMessageId, bool disableNotification = false, IReply replyMarkup = null, |
||
chatId | long | Unique identifier for the message recipient. |
stickerId | [ | A file id as string to resend a sticker that is already on the Telegram servers. |
replyToMessageId | long | If the message is a reply, ID of the original message. |
disableNotification | bool | If set to |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendStickerAsync ( long chatId, [ stickerStream, string fileName, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | long | Unique identifier for the message recipient. |
stickerStream | [ | A |
fileName | string | A name for the file to be sent using |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendStickerFromFileAsync ( [ chatId, [ filePath, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | [ | Unique identifier for the message recipient or username of the target channel (in the format /// @channelusername). |
filePath | [ | Fully qualified path to the sticker to send. |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendStickerFromFileAsync ( long chatId, [ filePath, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | long | Unique identifier for the message recipient. |
filePath | [ | Fully qualified path to the sticker to send. |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendVenueAsync ( [ chatId, float latitude, float longitude, [ title, [ address, string forsquareId = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | [ | Unique identifier for the target chat or username of the target channel (in the format /// @channelusername). |
latitude | float | Latitude of the venue. |
longitude | float | Longitude of the venue. |
title | [ | Name of the venue. |
address | [ | Address of the venue. |
forsquareId | string | Foursquare identifier of the venue. |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A |
|
Результат | Task |
public SendVenueAsync ( long chatId, float latitude, float longitude, [ title, [ address, string forsquareId = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | long | Unique identifier for the target chat. |
latitude | float | Latitude of the venue. |
longitude | float | Longitude of the venue. |
title | [ | Name of the venue. |
address | [ | Address of the venue. |
forsquareId | string | Foursquare identifier of the venue. |
disableNotification | bool |
/// If set to |
replyToMessageId | long | /// If the message is a reply, ID of the original message. /// |
replyMarkup | IReply |
/// Additional interface options. An |
cancellationToken |
/// A |
|
Результат | Task |
public SendVideoAsync ( [ chatId, [ videoId, int duration, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | [ | Unique identifier for the message recipient or username of the target channel (in the format /// @channelusername). |
videoId | [ | A file id as string to resend a video that is already on the Telegram servers. |
duration | int | Duration of sent video in seconds. |
caption | string | Video caption. |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendVideoAsync ( [ chatId, [ videoStream, string fileName, int duration, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | [ | Unique identifier for the message recipient or username of the target channel (in the format /// @channelusername). |
videoStream | [ | A |
fileName | string | A name for the file to be sent using |
duration | int | Duration of sent video in seconds. |
caption | string | Video caption. |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendVideoAsync ( long chatId, [ videoId, int duration, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | long | Unique identifier for the message recipient. |
videoId | [ | A file id as string to resend a video that is already on the Telegram servers. |
duration | int | Duration of sent video in seconds. |
caption | string | Video caption. |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendVideoAsync ( long chatId, [ videoStream, string fileName, int duration, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | long | Unique identifier for the message recipient. |
videoStream | [ | A |
fileName | string | A name for the file to be sent using |
duration | int | Duration of sent video in seconds. |
caption | string | Video caption. |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendVideoFromFileAsync ( [ chatId, [ filePath, int duration, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | [ | Unique identifier for the message recipient or username of the target channel (in the format /// @channelusername). |
filePath | [ | Fully qualified path to the video file to send. |
duration | int | Duration of sent video in seconds. |
caption | string | Video caption. |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendVideoFromFileAsync ( long chatId, [ filePath, int duration, string caption = null, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | long | Unique identifier for the message recipient. |
filePath | [ | Fully qualified path to the video file to send. |
duration | int | Duration of sent video in seconds. |
caption | string | Video caption. |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendVoiceAsync ( [ chatId, [ voice, int duration, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | [ | Unique identifier for the message recipient or username of the target channel (in the format /// @channelusername). |
voice | [ | Id of an audio file that is already on the Telegram servers to resend it. |
duration | int | Duration of sent audio in seconds. |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendVoiceAsync ( [ chatId, [ voiceStream, string fileName, int duration, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | [ | Unique identifier for the message recipient or username of the target channel (in the format /// @channelusername). |
voiceStream | [ | A |
fileName | string | A name for the file to be sent using |
duration | int | Duration of sent audio in seconds |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendVoiceAsync ( long chatId, [ voice, int duration, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | long | Unique identifier for the message recipient. |
voice | [ | Id of an audio file that is already on the Telegram servers to resend it. |
duration | int | Duration of sent audio in seconds. |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendVoiceAsync ( long chatId, [ voiceStream, string fileName, int duration, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | long | Unique identifier for the message recipient. |
voiceStream | [ | A |
fileName | string | A name for the file to be sent using |
duration | int | Duration of sent audio in seconds |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendVoiceFromFileAsync ( [ chatId, [ filePath, int duration, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | [ | Unique identifier for the message recipient or username of the target channel (in the format /// @channelusername). |
filePath | [ | Fully qualified path to the audio file. |
duration | int | Duration of sent audio in seconds. |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SendVoiceFromFileAsync ( long chatId, [ filePath, int duration, bool disableNotification = false, long replyToMessageId, IReply replyMarkup = null, |
||
chatId | long | Unique identifier for the message recipient. |
filePath | [ | Fully qualified path to the audio file. |
duration | int | Duration of sent audio in seconds. |
disableNotification | bool | If set to |
replyToMessageId | long | If the message is a reply, ID of the original message. |
replyMarkup | IReply | Additional interface options. An |
cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. | |
Результат | Task |
public SetWebhookAsync ( string url, string certificatePath = null, |
||
url | string | /// HTTPS url to send updates to. Use an empty string to remove webhook integration /// |
certificatePath | string | /// The fully qualified path to the certificate path so that the root certificate in use can be /// checked. /// |
cancellationToken | /// A cancellation token that can be used by other objects or threads to receive notice of /// cancellation. /// | |
Результат | Task |
public Telebot ( [ apiKey ) : System | ||
apiKey | [ | Telegram API key. |
Результат | System |
public UnbanChatMemberAsync ( [ chatId, long userId, |
||
chatId | [ | /// Unique identifier for the target group or username of the target supergroup (in the format /// @supergroupusername). /// |
userId | long | Unique identifier of the target user. |
cancellationToken |
/// A |
|
Результат | Task |
public UnbanChatMemberAsync ( long chatId, long userId, CancellationToken cancellationToken = default(CancellationToken) ) : Task |
||
chatId | long | Unique identifier for the target group. |
userId | long | Unique identifier of the target user. |
cancellationToken | CancellationToken |
/// A |
Результат | Task |