vgram icon indicating copy to clipboard operation
vgram copied to clipboard

`[attr]` has been deprecated, use `@[attr]` instead

Open davidebeatrici opened this issue 1 year ago • 0 comments

methods.v:104:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  102 | 
  103 | //GetUpdates Use this method to receive incoming updates using long polling (wiki). An Array of Update objects is returned.
  104 | [params]
      | ^
  105 | pub struct ConfigGetUpdates {
  106 | pub:
methods.v:118:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  116 | 
  117 | //SetWebhook Use this method to specify a url and receive incoming updates via an outgoing webhook. Whenever there is an update for the bot, we will send an HTTPS POST request to the specified url, containing a JSON-serialized Update. In case of an unsuccessful request, we will give up after a reasonable amount of attempts. Returns True on success. 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. https://www.example.com/<token>. Since nobody else knows your bot‘s token, you can be pretty sure it’s us.
  118 | [params]
      | ^
  119 | pub struct ConfigSetWebhook {
  120 | pub:
methods.v:150:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  148 | 
  149 | //SendMessage Use this method to send text messages. On success, the sent Message is returned.
  150 | [params]
      | ^
  151 | pub struct ConfigSendMessage {
  152 | pub:
methods.v:167:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  165 | 
  166 | //ForwardMessage Use this method to forward messages of any kind. On success, the sent Message is returned.
  167 | [params]
      | ^
  168 | pub struct ConfigForwardMessage {
  169 | pub:
methods.v:181:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  179 | 
  180 | //SendPhoto Use this method to send photos. On success, the sent Message is returned.
  181 | [params]
      | ^
  182 | pub struct ConfigSendPhoto {
  183 | pub:
methods.v:198:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  196 | 
  197 | //SendAudio Use this method to send audio files, if you want Telegram clients to display them in the music player. Your audio must be in the .MP3 or .M4A format. On success, the sent Message is returned. Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future. For sending voice messages, use the sendVoice method instead.
  198 | [params]
      | ^
  199 | pub struct ConfigSendAudio {
  200 | pub:
methods.v:219:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  217 | 
  218 | //SendDocument Use this method to send general files. On success, the sent Message is returned. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future.
  219 | [params]
      | ^
  220 | pub struct ConfigSendDocument {
  221 | pub:
methods.v:237:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  235 | 
  236 | //SendVideo Use this method to send video files, Telegram clients support mp4 videos (other formats may be sent as Document). On success, the sent Message is returned. Bots can currently send video files of up to 50 MB in size, this limit may be changed in the future.
  237 | [params]
      | ^
  238 | pub struct ConfigSendVideo {
  239 | pub:
methods.v:259:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  257 | 
  258 | //SendAnimation Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound). On success, the sent Message is returned. Bots can currently send animation files of up to 50 MB in size, this limit may be changed in the future.
  259 | [params]
      | ^
  260 | pub struct ConfigSendAnimation {
  261 | pub:
methods.v:280:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  278 | 
  279 | //SendVoice Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS (other formats may be sent as Audio or Document). On success, the sent Message is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future.
  280 | [params]
      | ^
  281 | pub struct ConfigSendVoice {
  282 | pub:
methods.v:298:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  296 | 
  297 | //SendVideoNote As of v.4.0, Telegram clients support rounded square mp4 videos of up to 1 minute long. Use this method to send video messages. On success, the sent Message is returned.
  298 | [params]
      | ^
  299 | pub struct ConfigSendVideoNote {
  300 | pub:
methods.v:316:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  314 | 
  315 | //SendMediaGroup Use this method to send a group of photos or videos as an album. On success, an array of the sent Messages is returned.
  316 | [params]
      | ^
  317 | pub struct ConfigSendMediaGroup {
  318 | pub:
methods.v:330:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  328 | 
  329 | //SendLocation Use this method to send point on the map. On success, the sent Message is returned.
  330 | [params]
      | ^
  331 | pub struct ConfigSendLocation {
  332 | pub:
methods.v:347:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  345 | 
  346 | //EditMessageLiveLocation Use this method to edit live location messages. A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation. On success, if the edited message was sent by the bot, the edited Message is returned, otherwise True is returned.
  347 | [params]
      | ^
  348 | pub struct ConfigEditMessageLiveLocation {
  349 | pub:
methods.v:363:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  361 | 
  362 | //StopMessageLiveLocation Use this method to stop updating a live location message before live_period expires. On success, if the message was sent by the bot, the sent Message is returned, otherwise True is returned.
  363 | [params]
      | ^
  364 | pub struct ConfigStopMessageLiveLocation {
  365 | pub:
methods.v:377:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  375 | 
  376 | //SendVenue Use this method to send information about a venue. On success, the sent Message is returned.
  377 | [params]
      | ^
  378 | pub struct ConfigSendVenue {
  379 | pub:
methods.v:397:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  395 | 
  396 | //SendContact Use this method to send phone contacts. On success, the sent Message is returned.
  397 | [params]
      | ^
  398 | pub struct ConfigSendContact {
  399 | pub:
methods.v:415:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  413 | 
  414 | //SendPoll Use this method to send a native poll. On success, the sent Message is returned.
  415 | [params]
      | ^
  416 | pub struct ConfigSendPoll {
  417 | pub:
methods.v:440:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  438 | 
  439 | //SendDice Use this method to send a dice, which will have a random value from 1 to 6. On success, the sent Message is returned. (Yes, we're aware of the “proper” singular of die. But it's awkward, and we decided to help it change. One dice at a time!)
  440 | [params]
      | ^
  441 | pub struct ConfigSendDice {
  442 | pub:
methods.v:455:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  453 | 
  454 | //SendChatAction 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). Returns True on success. We only recommend using this method when a response from the bot will take a noticeable amount of time to arrive.
  455 | [params]
      | ^
  456 | pub struct ConfigSendChatAction {
  457 | pub:
methods.v:467:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  465 | 
  466 | //GetUserProfilePhotos Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object.
  467 | [params]
      | ^
  468 | pub struct ConfigGetUserProfilePhotos {
  469 | pub:
methods.v:480:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  478 | 
  479 | //GetFile Use this method to get basic info about a file and prepare it for downloading. For the moment, bots can download files of up to 20MB in size. On success, a File object is returned. The file can then be downloaded via the link https://api.telegram.org/file/bot<token>/<file_path>, where <file_path> is taken from the response. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling getFile again.
  480 | [params]
      | ^
  481 | pub struct ConfigGetFile {
  482 | pub:
methods.v:491:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  489 | 
  490 | //KickChatMember Use this method to kick a user from a group, a supergroup or a channel. In the case of supergroups and channels, the user will not be able to return to the group on their own using invite links, etc., unless unbanned first. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns True on success.
  491 | [params]
      | ^
  492 | pub struct ConfigKickChatMember {
  493 | pub:
methods.v:504:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  502 | 
  503 | //UnbanChatMember Use this method to unban a previously kicked user in a supergroup or channel. The user will not return to the group or channel automatically, but will be able to join via link, etc. The bot must be an administrator for this to work. Returns True on success.
  504 | [params]
      | ^
  505 | pub struct ConfigUnbanChatMember {
  506 | pub:
methods.v:516:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  514 | 
  515 | //RestrictChatMember Use this method 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 permissions to lift restrictions from a user. Returns True on success.
  516 | [params]
      | ^
  517 | pub struct ConfigRestrictChatMember {
  518 | pub:
methods.v:530:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  528 | 
  529 | //PromoteChatMember Use this method to promote or demote a user in a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Pass False for all boolean parameters to demote a user. Returns True on success.
  530 | [params]
      | ^
  531 | pub struct ConfigPromoteChatMember {
  532 | pub:
methods.v:550:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  548 | 
  549 | //SetChatAdministratorCustomTitle Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success.
  550 | [params]
      | ^
  551 | pub struct ConfigSetChatAdministratorCustomTitle {
  552 | pub:
methods.v:563:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  561 | 
  562 | //SetChatPermissions Use this method to set default chat permissions for all members. The bot must be an administrator in the group or a supergroup for this to work and must have the can_restrict_members admin rights. Returns True on success.
  563 | [params]
      | ^
  564 | pub struct ConfigSetChatPermissions {
  565 | pub:
methods.v:575:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  573 | 
  574 | //ExportChatInviteLink Use this method to generate a new invite link for a chat; any previously generated link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns the new invite link as String on success.
  575 | [params]
      | ^
  576 | pub struct ConfigExportChatInviteLink {
  577 | pub:
methods.v:586:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  584 | 
  585 | //SetChatPhoto Use this method to set a new profile photo for the chat. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns True on success.
  586 | [params]
      | ^
  587 | pub struct ConfigSetChatPhoto {
  588 | pub:
methods.v:598:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  596 | 
  597 | //DeleteChatPhoto Use this method to delete a chat photo. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns True on success.
  598 | [params]
      | ^
  599 | pub struct ConfigDeleteChatPhoto {
  600 | pub:
methods.v:609:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  607 | 
  608 | //SetChatTitle Use this method to change the title of a chat. Titles can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns True on success.
  609 | [params]
      | ^
  610 | pub struct ConfigSetChatTitle {
  611 | pub:
methods.v:621:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  619 | 
  620 | //SetChatDescription Use this method to change the description of a group, a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns True on success.
  621 | [params]
      | ^
  622 | pub struct ConfigSetChatDescription {
  623 | pub:
methods.v:633:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  631 | 
  632 | //PinChatMessage Use this method to pin a message in a group, a supergroup, or a channel. The bot must be an administrator in the chat for this to work and must have the ‘can_pin_messages’ admin right in the supergroup or ‘can_edit_messages’ admin right in the channel. Returns True on success.
  633 | [params]
      | ^
  634 | pub struct ConfigPinChatMessage {
  635 | pub:
methods.v:646:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  644 | 
  645 | //UnpinChatMessage Use this method to unpin a message in a group, a supergroup, or a channel. The bot must be an administrator in the chat for this to work and must have the ‘can_pin_messages’ admin right in the supergroup or ‘can_edit_messages’ admin right in the channel. Returns True on success.
  646 | [params]
      | ^
  647 | pub struct ConfigUnpinChatMessage {
  648 | pub:
methods.v:657:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  655 | 
  656 | //LeaveChat Use this method for your bot to leave a group, supergroup or channel. Returns True on success.
  657 | [params]
      | ^
  658 | pub struct ConfigLeaveChat {
  659 | pub:
methods.v:668:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  666 | 
  667 | //GetChat Use this method to get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group or channel, etc.). Returns a Chat object on success.
  668 | [params]
      | ^
  669 | pub struct ConfigGetChat {
  670 | pub:
methods.v:679:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  677 | 
  678 | //GetChatAdministrators Use this method to get a list of administrators in a chat. On success, returns an Array of ChatMember objects that contains information about all chat administrators except other bots. If the chat is a group or a supergroup and no administrators were appointed, only the creator will be returned.
  679 | [params]
      | ^
  680 | pub struct ConfigGetChatAdministrators {
  681 | pub:
methods.v:690:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  688 | 
  689 | //GetChatMembersCount Use this method to get the number of members in a chat. Returns Int on success.
  690 | [params]
      | ^
  691 | pub struct ConfigGetChatMembersCount {
  692 | pub:
methods.v:701:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  699 | 
  700 | //GetChatMember Use this method to get information about a member of a chat. Returns a ChatMember object on success.
  701 | [params]
      | ^
  702 | pub struct ConfigGetChatMember {
  703 | pub:
methods.v:713:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  711 | 
  712 | //SetChatStickerSet Use this method to set a new group sticker set for a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Use the field can_set_sticker_set optionally returned in getChat requests to check if the bot can use this method. Returns True on success.
  713 | [params]
      | ^
  714 | pub struct ConfigSetChatStickerSet {
  715 | pub:
methods.v:725:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  723 | 
  724 | //DeleteChatStickerSet Use this method to delete a group sticker set from a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Use the field can_set_sticker_set optionally returned in getChat requests to check if the bot can use this method. Returns True on success.
  725 | [params]
      | ^
  726 | pub struct ConfigDeleteChatStickerSet {
  727 | pub:
methods.v:736:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  734 | 
  735 | //AnswerCallbackQuery Use this method to send 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. On success, True is returned.
  736 | [params]
      | ^
  737 | pub struct ConfigAnswerCallbackQuery {
  738 | pub:
methods.v:751:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  749 | 
  750 | //SetMyCommands Use this method to change the list of the bot's commands. Returns True on success.
  751 | [params]
      | ^
  752 | pub struct ConfigSetMyCommands {
  753 | pub:
methods.v:768:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  766 | 
  767 | //EditMessageText Use this method to edit text and game messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.
  768 | [params]
      | ^
  769 | pub struct ConfigEditMessageText {
  770 | pub:
methods.v:785:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  783 | 
  784 | //EditMessageCaption Use this method to edit captions of messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.
  785 | [params]
      | ^
  786 | pub struct ConfigEditMessageCaption {
  787 | pub:
methods.v:801:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  799 | 
  800 | //EditMessageMedia Use this method to edit animation, audio, document, photo, or video messages. If a message is a part of a message album, then it can be edited only to a photo or a video. Otherwise, message type can be changed arbitrarily. When inline message is edited, new file can't be uploaded. Use previously uploaded file via its file_id or specify a URL. On success, if the edited message was sent by the bot, the edited Message is returned, otherwise True is returned.
  801 | [params]
      | ^
  802 | pub struct ConfigEditMessageMedia {
  803 | pub:
methods.v:816:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  814 | 
  815 | //EditMessageReplyMarkup Use this method to edit only the reply markup of messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.
  816 | [params]
      | ^
  817 | pub struct ConfigEditMessageReplyMarkup {
  818 | pub:
methods.v:830:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  828 | 
  829 | //StopPoll Use this method to stop a poll which was sent by the bot. On success, the stopped Poll with the final results is returned.
  830 | [params]
      | ^
  831 | pub struct ConfigStopPoll {
  832 | pub:
methods.v:843:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  841 | 
  842 | //DeleteMessage Use this method to delete a message, including service messages, with the following limitations:- A message can only be deleted if it was sent less than 48 hours ago.- A dice message in a private chat can only be deleted if it was sent more than 24 hours ago.- Bots can delete outgoing messages in private chats, groups, and supergroups.- Bots can delete incoming messages in private chats.- Bots granted can_post_messages permissions can delete outgoing messages in channels.- If the bot is an administrator of a group, it can delete any message there.- If the bot has can_delete_messages permission in a supergroup or a channel, it can delete any message there.Returns True on success.
  843 | [params]
      | ^
  844 | pub struct ConfigDeleteMessage {
  845 | pub:
methods.v:855:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  853 | 
  854 | //SendSticker Use this method to send static .WEBP or animated .TGS stickers. On success, the sent Message is returned.
  855 | [params]
      | ^
  856 | pub struct ConfigSendSticker {
  857 | pub:
methods.v:870:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  868 | 
  869 | //GetStickerSet Use this method to get a sticker set. On success, a StickerSet object is returned.
  870 | [params]
      | ^
  871 | pub struct ConfigGetStickerSet {
  872 | pub:
methods.v:881:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  879 | 
  880 | //UploadStickerFile Use this method to upload a .PNG file with a sticker for later use in createNewStickerSet and addStickerToSet methods (can be used multiple times). Returns the uploaded File on success.
  881 | [params]
      | ^
  882 | pub struct ConfigUploadStickerFile {
  883 | pub:
methods.v:893:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  891 | 
  892 | //CreateNewStickerSet Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. You must use exactly one of the fields png_sticker or tgs_sticker. Returns True on success.
  893 | [params]
      | ^
  894 | pub struct ConfigCreateNewStickerSet {
  895 | pub:
methods.v:911:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  909 | 
  910 | //AddStickerToSet Use this method to add a new sticker to a set created by the bot. You must use exactly one of the fields png_sticker or tgs_sticker. Animated stickers can be added to animated sticker sets and only to them. Animated sticker sets can have up to 50 stickers. Static sticker sets can have up to 120 stickers. Returns True on success.
  911 | [params]
      | ^
  912 | pub struct ConfigAddStickerToSet {
  913 | pub:
methods.v:927:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  925 | 
  926 | //SetStickerPositionInSet Use this method to move a sticker in a set created by the bot to a specific position. Returns True on success.
  927 | [params]
      | ^
  928 | pub struct ConfigSetStickerPositionInSet {
  929 | pub:
methods.v:939:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  937 | 
  938 | //DeleteStickerFromSet Use this method to delete a sticker from a set created by the bot. Returns True on success.
  939 | [params]
      | ^
  940 | pub struct ConfigDeleteStickerFromSet {
  941 | pub:
methods.v:950:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  948 | 
  949 | //SetStickerSetThumb Use this method to set the thumbnail of a sticker set. Animated thumbnails can be set for animated sticker sets only. Returns True on success.
  950 | [params]
      | ^
  951 | pub struct ConfigSetStickerSetThumb {
  952 | pub:
methods.v:963:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  961 | 
  962 | //AnswerInlineQuery Use this method to send answers to an inline query. On success, True is returned.No more than 50 results per query are allowed.
  963 | [params]
      | ^
  964 | pub struct ConfigAnswerInlineQuery {
  965 | pub:
methods.v:980:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
  978 | 
  979 | //SendInvoice Use this method to send invoices. On success, the sent Message is returned.
  980 | [params]
      | ^
  981 | pub struct ConfigSendInvoice {
  982 | pub:
methods.v:1013:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
 1011 | 
 1012 | //AnswerShippingQuery If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the Bot API will send an Update with a shipping_query field to the bot. Use this method to reply to shipping queries. On success, True is returned.
 1013 | [params]
      | ^
 1014 | pub struct ConfigAnswerShippingQuery {
 1015 | pub:
methods.v:1027:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
 1025 | 
 1026 | //AnswerPreCheckoutQuery Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an Update with the field pre_checkout_query. Use this method to respond to such pre-checkout queries. On success, True is returned. Note: The Bot API must receive an answer within 10 seconds after the pre-checkout query was sent.
 1027 | [params]
      | ^
 1028 | pub struct ConfigAnswerPreCheckoutQuery {
 1029 | pub:
methods.v:1040:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
 1038 | 
 1039 | //SetPassportDataErrors Informs a user that some of the Telegram Passport elements they provided contains errors. The user will not be able to re-submit their Passport to you until the errors are fixed (the contents of the field for which you returned the error must change). Returns True on success. Use this if the data submitted by the user doesn't satisfy the standards your service requires for any reason. For example, if a birthday date seems invalid, a submitted document is blurry, a scan shows evidence of tampering, etc. Supply some details in the error message to make sure the user knows how to correct the issues.
 1040 | [params]
      | ^
 1041 | pub struct ConfigSetPassportDataErrors {
 1042 | pub:
methods.v:1052:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
 1050 | 
 1051 | //SendGame Use this method to send a game. On success, the sent Message is returned.
 1052 | [params]
      | ^
 1053 | pub struct ConfigSendGame {
 1054 | pub:
methods.v:1067:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
 1065 | 
 1066 | //SetGameScore Use this method to set the score of the specified user in a game. On success, if the message was sent by the bot, returns the edited Message, otherwise returns True. Returns an error, if the new score is not greater than the user's current score in the chat and force is False.
 1067 | [params]
      | ^
 1068 | pub struct ConfigSetGameScore {
 1069 | pub:
methods.v:1084:1: warning: `[attr]` has been deprecated, use `@[attr]` instead
 1082 | 
 1083 | //GetGameHighScores Use this method to get data for high score tables. Will return the score of the specified user and several of their neighbors in a game. On success, returns an Array of GameHighScore objects.
 1084 | [params]
      | ^
 1085 | pub struct ConfigGetGameHighScores {
 1086 | pub:
types.v:6:16: warning: `[attr]` has been deprecated, use `@[attr]` instead
    4 | pub:
    5 |     ok bool                
    6 |     result string [raw]          
      |                   ^
    7 | }
    8 |

davidebeatrici avatar Jan 06 '25 22:01 davidebeatrici