tucnak / telebot

Telebot is a Telegram bot framework in Go.
MIT License
3.77k stars 440 forks source link

query user not work use ReplyRecipient #674

Closed yaooort closed 2 months ago

yaooort commented 2 months ago

my telebot version v3.3.3-beta

menuMain.User("query user", &tele.ReplyRecipient{ID: 10001, Bot: &f, Premium: &f, Quantity: 1})

api server return update

{
  "update_id": 532386006,
  "message": {
    "message_id": 2473,
    "message_thread_id": 0,
    "from": {
      "id": 5507060056,
      "first_name": "Oort",
      "last_name": "",
      "is_forum": false,
      "username": "busskko",
      "language_code": "zh-hans",
      "is_bot": false,
      "is_premium": false,
      "added_to_attachment_menu": false,
      "active_usernames": null,
      "emoji_status_custom_emoji_id": "",
      "can_join_groups": false,
      "can_read_all_group_messages": false,
      "supports_inline_queries": false
    },
    "date": 1712631733,
    "chat": {
      "id": 5507080056,
      "type": "private",
      "title": "",
      "first_name": "Oort",
      "last_name": "",
      "username": "busok",
      "available_reactions": null,
      "custom_emoji_sticker_set_name": "",
      "has_restricted_voice_and_video_messages": false,
      "emoji_status_custom_emoji_id": "",
      "emoji_status_expiration_date": 0,
      "background_custom_emoji_id": "",
      "accent_color_id": 0,
      "profile_accent_color_id": 0,
      "profile_background_custom_emoji_id": "",
      "has_visible_history": false,
      "unrestrict_boost_count": 0
    },
    "sender_chat": null,
    "forward_from": null,
    "forward_from_chat": null,
    "forward_from_message_id": 0,
    "forward_signature": "",
    "forward_sender_name": "",
    "forward_date": 0,
    "forward_origin": null,
    "is_automatic_forward": false,
    "reply_to_message": null,
    "story": null,
    "external_reply": null,
    "quote": null,
    "via_bot": null,
    "reply_to_story": null,
    "edit_date": 0,
    "is_topic_message": false,
    "media_group_id": "",
    "author_signature": "",
    "text": "",
    "audio": null,
    "document": null,
    "photo": null,
    "sticker": null,
    "voice": null,
    "video_note": null,
    "video": null,
    "animation": null,
    "contact": null,
    "location": null,
    "venue": null,
    "poll": null,
    "game": null,
    "dice": null,
    "giveaway": null,
    "giveaway_winners": null,
    "giveaway_created": null,
    "giveaway_completed": null,
    "new_chat_member": null,
    "left_chat_member": null,
    "new_chat_title": "",
    "new_chat_photo": null,
    "new_chat_members": null,
    "delete_chat_photo": false,
    "group_chat_created": false,
    "supergroup_chat_created": false,
    "channel_chat_created": false,
    "migrate_to_chat_id": 0,
    "migrate_from_chat_id": 0,
    "pinned_message": null,
    "invoice": null,
    "successful_payment": null,
    "users_shared": {
      "request_id": 10001,
      "user_id": 0,
      "chat_id": 0
    },
    "boost_added": null,
    "sender_boost_count": 0
  },
  "message_reaction": null,
  "message_reaction_count": null,
  "chat_boost": null,
  "removed_chat_boost": null
}

users_shared: { "request_id": 10001, "user_id": 0, "chat_id": 0 }

userid is zero