简体   繁体   English

使用Telegram Bot C#在我的频道中搜索文件

[英]Search for a file in my channel with Telegram Bot C#

Suppose I have a telegram bot that is Admin of a channel. 假设我有一个电报管理员,它是一个频道的管理员。 Is there any way I can search for a music file with its name? 有什么办法可以用它的名字搜索音乐文件吗?

Unfortunately, you can do this by bot now, but you can suggest it to @BotSupport . 不幸的是,您现在可以通过bot执行此操作,但您可以将其建议给@BotSupport :( :(

You can think about Telegram dorsn't let you get message list, even single message, so you need to log all useful updates to your own database . 您可以考虑Telegram不会让您获得消息列表,甚至是单个消息,因此您需要将所有有用的更新记录到您自己的数据库中。

You can't search on your group with Telegram bot, but you can revise and save file from group and then search on your database. 您无法使用Telegram bot搜索您的组,但您可以修改并保存组中的文件,然后搜索您的数据库。 A Telegram bot is not allowed to search on group. 不允许Telegram机器人搜索组。 Its not possible. 这是不可能的。

October 11, 2017 Bot API 3.4. 2017年10月11日Bot API 3.4。

  • Bots can now send and receive Live Locations. 机器人现在可以发送和接收实时位置。 Added new field live_period to the sendLocation method and the editMessageLiveLocation and stopMessageLiveLocation methods as well as the necessary objects for inline bots. 在sendLocation方法和editMessageLiveLocation和stopMessageLiveLocation方法以及内联漫游器的必要对象中添加了新字段live_period。 Bots can use the new setChatStickerSet and deleteChatStickerSet methods to manage group sticker sets. 机器人可以使用新的setChatStickerSet和deleteChatStickerSet方法来管理组贴纸集。 The getChat request now returns the group's sticker set for supergroups if available. getChat请求现在返回组的超级组标签(如果可用)。 Bots now receive entities from media captions in the new field caption_entities in Message. 机器人现在从消息中的新字段caption_entities中的媒体字幕接收实体。

August 23, 2017 Bot API 3.3. 2017年8月23日Bot API 3.3。

  • Bots can now mention users via inline mentions, without using usernames. 机器人现在可以通过内联提及而不使用用户名来提及用户。 getChat now also returns pinned messages in supergroups, if present. getChat现在还返回超组中的固定消息(如果存在)。 Added the new field pinned_message to the Chat object. 将新字段pinned_message添加到Chat对象。 Added the new fields author_signature and forward_signature to the Message object. 将新字段author_signature和forward_signature添加到Message对象。 Added the new field is_bot to the User object. 将新字段is_bot添加到User对象。

July 21, 2017 2017年7月21日

  • Bot API 3.2. Bot API 3.2。 Teach your bot to handle stickers and sticker sets. 教你的机器人处理贴纸和贴纸集。
  • Added new methods for working with stickers: getStickerSet, uploadStickerFile, createNewStickerSet, addStickerToSet, setStickerPositionInSet, and deleteStickerFromSet. 添加了使用贴纸的新方法:getStickerSet,uploadStickerFile,createNewStickerSet,addStickerToSet,setStickerPositionInSet和deleteStickerFromSet。 Added the fields set_name and mask_position to the Sticker object, plus two new objects, StickerSet, and MaskPosition. 将字段set_name和mask_position添加到Sticker对象,以及两个新对象StickerSet和MaskPosition。

June 30, 2017 Bot API 3.1. 2017年6月30日Bot API 3.1。 Build your own robotic police force for supergoups with these new methods for admin bots: 使用这些管理机器人的新方法建立自己的机器人警察部队为supergoups:

  • Added new methods restrictChatMember and promoteChatMember to manage users and admins, added new parameter until_date to kickChatMember for temporary bans. 添加了新方法restrictChatMember和promoteChatMember来管理用户和管理员,为kickChatMember添加了新参数until_date以进行临时禁止。 Added new methods exportChatInviteLink, setChatPhoto, deleteChatPhoto, setChatTitle, setChatDescription, pinChatMessage and unpinChatMessage to manage groups and channels. 添加了新方法exportChatInviteLink,setChatPhoto,deleteChatPhoto,setChatTitle,setChatDescription,pinChatMessage和unpinChatMessage来管理组和通道。 Added the new fields photo, description and invite_link to the Chat object. 将新字段photo,description和invite_link添加到Chat对象。 Added the new fields until_date, can_be_edited, can_change_info, can_post_messages, can_edit_messages, can_delete_messages, can_invite_users, can_restrict_members, can_pin_messages, can_promote_members, can_send_messages, can_send_media_messages, can_send_other_messages and can_add_web_page_previews to 添加了新字段until_date,can_be_edited,can_change_info,can_post_messages,can_edit_messages,can_delete_messages,can_invite_users,can_restrict_members,can_pin_messages,can_promote_members,can_send_messages,can_send_media_messages,can_send_other_messages和can_add_web_page_previews

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM