_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c31300
train
// NewStickerShare shares an existing sticker. // You may use this to reshare an existing sticker without // reuploading it. // // chatID is where to send it, fileID is the ID of the sticker // already uploaded.
{ "resource": "" }
c31301
train
// NewVideoUpload creates a new video uploader. // // chatID is where to send it, file is a string path to the file, // FileReader, or FileBytes.
{ "resource": "" }
c31302
train
// NewVideoShare shares an existing video. // You may use this to reshare an existing video without reuploading it. // // chatID is where to send it, fileID is the ID of the video // already uploaded.
{ "resource": "" }
c31303
train
// NewAnimationUpload creates a new animation uploader. // // chatID is where to send it, file is a string path to the file, // FileReader, or FileBytes.
{ "resource": "" }
c31304
train
// NewAnimationShare shares an existing animation. // You may use this to reshare an existing animation without reuploading it. // // chatID is where to send it, fileID is the ID of the animation // already uploaded.
{ "resource": "" }
c31305
train
// NewVideoNoteUpload creates a new video note uploader. // // chatID is where to send it, file is a string path to the file, // FileReader, or FileBytes.
{ "resource": "" }
c31306
train
// NewVideoNoteShare shares an existing video. // You may use this to reshare an existing video without reuploading it. // // chatID is where to send it, fileID is the ID of the video // already uploaded.
{ "resource": "" }
c31307
train
// NewVoiceUpload creates a new voice uploader. // // chatID is where to send it, file is a string path to the file, // FileReader, or FileBytes.
{ "resource": "" }
c31308
train
// NewVoiceShare shares an existing voice. // You may use this to reshare an existing voice without reuploading it. // // chatID is where to send it, fileID is the ID of the video // already uploaded.
{ "resource": "" }
c31309
train
// NewMediaGroup creates a new media group. Files should be an array of // two to ten InputMediaPhoto or InputMediaVideo.
{ "resource": "" }
c31310
train
// NewContact allows you to send a shared contact.
{ "resource": "" }
c31311
train
// NewLocation shares your location. // // chatID is where to send it, latitude and longitude are coordinates.
{ "resource": "" }
c31312
train
// NewVenue allows you to send a venue and its location.
{ "resource": "" }
c31313
train
// NewChatAction sets a chat action. // Actions last for 5 seconds, or until your next action. // // chatID is where to send it, action should be set via Chat constants.
{ "resource": "" }
c31314
train
// NewWebhook creates a new webhook. // // link is the url parsable link you wish to get the updates.
{ "resource": "" }
c31315
train
// NewWebhookWithCert creates a new webhook with a certificate. // // link is the url you wish to get webhooks, // file contains a string to a file, FileReader, or FileBytes.
{ "resource": "" }
c31316
train
// NewInlineQueryResultArticle creates a new inline query article.
{ "resource": "" }
c31317
train
// NewInlineQueryResultArticleMarkdown creates a new inline query article with Markdown parsing.
{ "resource": "" }
c31318
train
// NewInlineQueryResultGIF creates a new inline query GIF.
{ "resource": "" }
c31319
train
// NewInlineQueryResultCachedGIF create a new inline query with cached photo.
{ "resource": "" }
c31320
train
// NewInlineQueryResultMPEG4GIF creates a new inline query MPEG4 GIF.
{ "resource": "" }
c31321
train
// NewInlineQueryResultPhoto creates a new inline query photo.
{ "resource": "" }
c31322
train
// NewInlineQueryResultPhotoWithThumb creates a new inline query photo.
{ "resource": "" }
c31323
train
// NewInlineQueryResultVideo creates a new inline query video.
{ "resource": "" }
c31324
train
// NewInlineQueryResultCachedVideo create a new inline query with cached video.
{ "resource": "" }
c31325
train
// NewInlineQueryResultAudio creates a new inline query audio.
{ "resource": "" }
c31326
train
// NewInlineQueryResultCachedAudio create a new inline query with cached photo.
{ "resource": "" }
c31327
train
// NewInlineQueryResultVoice creates a new inline query voice.
{ "resource": "" }
c31328
train
// NewInlineQueryResultCachedVoice create a new inline query with cached photo.
{ "resource": "" }
c31329
train
// NewInlineQueryResultDocument creates a new inline query document.
{ "resource": "" }
c31330
train
// NewInlineQueryResultCachedDocument create a new inline query with cached photo.
{ "resource": "" }
c31331
train
// NewInlineQueryResultLocation creates a new inline query location.
{ "resource": "" }
c31332
train
// NewEditMessageText allows you to edit the text of a message.
{ "resource": "" }
c31333
train
// NewEditMessageCaption allows you to edit the caption of a message.
{ "resource": "" }
c31334
train
// NewEditMessageReplyMarkup allows you to edit the inline // keyboard markup.
{ "resource": "" }
c31335
train
// NewHideKeyboard hides the keyboard, with the option for being selective // or hiding for everyone.
{ "resource": "" }
c31336
train
// NewKeyboardButtonRow creates a row of keyboard buttons.
{ "resource": "" }
c31337
train
// NewReplyKeyboard creates a new regular keyboard with sane defaults.
{ "resource": "" }
c31338
train
// NewInlineKeyboardButtonData creates an inline keyboard button with text // and data for a callback.
{ "resource": "" }
c31339
train
// NewInlineKeyboardButtonURL creates an inline keyboard button with text // which goes to a URL.
{ "resource": "" }
c31340
train
// NewInlineKeyboardButtonSwitch creates an inline keyboard button with // text which allows the user to switch to a chat or return to a chat.
{ "resource": "" }
c31341
train
// NewInlineKeyboardRow creates an inline keyboard row with buttons.
{ "resource": "" }
c31342
train
// NewInlineKeyboardMarkup creates a new inline keyboard.
{ "resource": "" }
c31343
train
// NewCallback creates a new callback message.
{ "resource": "" }
c31344
train
// NewCallbackWithAlert creates a new callback message that alerts // the user.
{ "resource": "" }
c31345
train
// NewInvoice creates a new Invoice request to the user.
{ "resource": "" }
c31346
train
// NewSetChatPhotoUpload creates a new chat photo uploader. // // chatID is where to send it, file is a string path to the file, // FileReader, or FileBytes. // // Note that you must send animated GIFs as a document.
{ "resource": "" }
c31347
train
// NewSetChatPhotoShare shares an existing photo. // You may use this to reshare an existing photo without reuploading it. // // chatID is where to send it, fileID is the ID of the file // already uploaded.
{ "resource": "" }
c31348
train
// Time converts the message timestamp into a Time.
{ "resource": "" }
c31349
train
// IsCommand returns true if message starts with a "bot_command" entity.
{ "resource": "" }
c31350
train
// ParseURL attempts to parse a URL contained within a MessageEntity.
{ "resource": "" }
c31351
train
// Link returns a full path to the download URL for a File. // // It requires the Bot Token to create the link.
{ "resource": "" }
c31352
train
// NewBotAPIWithClient creates a new BotAPI instance // and allows you to pass a http.Client. // // It requires a token, provided by @BotFather on Telegram.
{ "resource": "" }
c31353
train
// MakeRequest makes a request to a specific endpoint with our token.
{ "resource": "" }
c31354
train
// decodeAPIResponse decode response and return slice of bytes if debug enabled. // If debug disabled, just decode http.Response.Body stream to APIResponse struct // for efficient memory usage
{ "resource": "" }
c31355
train
// makeMessageRequest makes a request to a method that returns a Message.
{ "resource": "" }
c31356
train
// UploadFile makes a request to the API with a file. // // Requires the parameter to hold the file not be in the params. // File should be a string to a file path, a FileBytes struct, // a FileReader struct, or a url.URL. // // Note that if your FileReader has a size set to -1, it will read // the file into memory to ...
{ "resource": "" }
c31357
train
// GetFileDirectURL returns direct URL to file // // It requires the FileID.
{ "resource": "" }
c31358
train
// GetMe fetches the currently authenticated bot. // // This method is called upon creation to validate the token, // and so you may get this data from BotAPI.Self without the need for // another request.
{ "resource": "" }
c31359
train
// IsMessageToMe returns true if message directed to this bot. // // It requires the Message.
{ "resource": "" }
c31360
train
// Send will send a Chattable item to Telegram. // // It requires the Chattable to send.
{ "resource": "" }
c31361
train
// debugLog checks if the bot is currently running in debug mode, and if // so will display information about the request and response in the // debug log.
{ "resource": "" }
c31362
train
// sendExisting will send a Message with an existing file to Telegram.
{ "resource": "" }
c31363
train
// uploadAndSend will send a Message with a new file to Telegram.
{ "resource": "" }
c31364
train
// sendFile determines if the file is using an existing file or uploading // a new file, then sends it as needed.
{ "resource": "" }
c31365
train
// sendChattable sends a Chattable.
{ "resource": "" }
c31366
train
// GetUserProfilePhotos gets a user's profile photos. // // It requires UserID. // Offset and Limit are optional.
{ "resource": "" }
c31367
train
// GetFile returns a File which can download a file from Telegram. // // Requires FileID.
{ "resource": "" }
c31368
train
// GetUpdates fetches updates. // If a WebHook is set, this will not return any data! // // Offset, Limit, and Timeout are optional. // To avoid stale items, set Offset to one higher than the previous item. // Set Timeout to a large number to reduce requests so you can get updates // instantly instead of having to wait...
{ "resource": "" }
c31369
train
// SetWebhook sets a webhook. // // If this is set, GetUpdates will not get any data! // // If you do not have a legitimate TLS certificate, you need to include // your self signed certificate with the config.
{ "resource": "" }
c31370
train
// GetWebhookInfo allows you to fetch information about a webhook and if // one currently is set, along with pending update count and error messages.
{ "resource": "" }
c31371
train
// GetUpdatesChan starts and returns a channel for getting updates.
{ "resource": "" }
c31372
train
// StopReceivingUpdates stops the go routine which receives updates
{ "resource": "" }
c31373
train
// ListenForWebhook registers a http handler for a webhook.
{ "resource": "" }
c31374
train
// AnswerInlineQuery sends a response to an inline query. // // Note that you must respond to an inline query within 30 seconds.
{ "resource": "" }
c31375
train
// AnswerCallbackQuery sends a response to an inline query callback.
{ "resource": "" }
c31376
train
// KickChatMember kicks a user from a chat. Note that this only will work // in supergroups, and requires the bot to be an admin. Also note they // will be unable to rejoin until they are unbanned.
{ "resource": "" }
c31377
train
// LeaveChat makes the bot leave the chat.
{ "resource": "" }
c31378
train
// GetChat gets information about a chat.
{ "resource": "" }
c31379
train
// GetChatAdministrators gets a list of administrators in the chat. // // If none have been appointed, only the creator will be returned. // Bots are not shown, even if they are an administrator.
{ "resource": "" }
c31380
train
// GetChatMembersCount gets the number of users in a chat.
{ "resource": "" }
c31381
train
// GetChatMember gets a specific chat member.
{ "resource": "" }
c31382
train
// UnbanChatMember unbans a user from a chat. Note that this only will work // in supergroups and channels, and requires the bot to be an admin.
{ "resource": "" }
c31383
train
// RestrictChatMember to restrict a user in a supergroup. The bot must be an //administrator in the supergroup for this to work and must have the //appropriate admin rights. Pass True for all boolean parameters to lift //restrictions from a user. Returns True on success.
{ "resource": "" }
c31384
train
// PromoteChatMember add admin rights to user
{ "resource": "" }
c31385
train
// GetGameHighScores allows you to get the high scores for a game.
{ "resource": "" }
c31386
train
// AnswerShippingQuery allows you to reply to Update with shipping_query parameter.
{ "resource": "" }
c31387
train
// AnswerPreCheckoutQuery allows you to reply to Update with pre_checkout_query.
{ "resource": "" }
c31388
train
// DeleteMessage deletes a message in a chat
{ "resource": "" }
c31389
train
// GetInviteLink get InviteLink for a chat
{ "resource": "" }
c31390
train
// PinChatMessage pin message in supergroup
{ "resource": "" }
c31391
train
// UnpinChatMessage unpin message in supergroup
{ "resource": "" }
c31392
train
// SetChatTitle change title of chat.
{ "resource": "" }
c31393
train
// SetChatDescription change description of chat.
{ "resource": "" }
c31394
train
// SetChatPhoto change photo of chat.
{ "resource": "" }
c31395
train
// DeleteChatPhoto delete photo of chat.
{ "resource": "" }
c31396
train
// values returns url.Values representation of BaseChat
{ "resource": "" }
c31397
train
// values returns a url.Values representation of MessageConfig.
{ "resource": "" }
c31398
train
// values returns a url.Values representation of ForwardConfig.
{ "resource": "" }
c31399
train
// values returns a url.Values representation of DocumentConfig.
{ "resource": "" }