
Search messages for a keyword
Find the most recent messages that contains a specific keyword.
Telegram Action
Botize's integration with Telegram allows you to automate the search for messages containing specific keywords in your chats, groups, or channels. This functionality is ideal for monitoring conversations and efficiently obtaining relevant information.
By configuring this action, you can customize various parameters, such as the search term, target chat, and user account. Once executed, the operation provides detailed data, including the content of the found message, the date and time of publication, and the message URL, thereby facilitating the management and analysis of the obtained information.
Customization Options
Configurable fields you can adjust in your automation
- BPS IP
- Query to search for
- Message
- Username
- First name
- User Id
- Image URL
- Message Thread Id (topic)
Information provided
When executed, this operation delivers the following data, which can be used in the same automatic task.
Tags
-
Total Messages Found
{{total_count}}
Total number of messages found for the given search term, before applying any filters
-
Messages
{{messages}}
List of messages found
-
Post Id
{{messages.0.post_id}}
Stable technical identifier for the message (unique in the API context).
-
Post Number
{{messages.0.post_number}}
Human-readable sequential number within the channel/topic (used in permalinks; not globally unique).
-
Chat Id
{{messages.0.chat_id}}
Unique identifier for the chat where the post was published
-
Message Thread Id
{{messages.0.message_thread_id}}
Unique identifier for the chat thread (topic) where the post was published
-
URL Message
{{messages.0.url_message}}
URL address of the published message
-
Message
{{messages.0.message}}
Content of the published message
-
Message HTML
{{messages.0.message_html}}
Message in HTML format if the message includes HTML tags. If not, the content of this tag is identical to that of the {{message}} tag
-
Post Date-time
{{messages.0.post_datetime}}
Date and time when the post was published
-
Image URL
{{messages.0.image_url}}
URL address of the image related to the post, video or post file
-
User Id
{{messages.0.user_id}}
Unique identifier for the user who published the post
-
User first name
{{messages.0.first_name}}
Name of the user who published the post
-
Username
{{messages.0.username}}
Username of the user who published the post
-
Reply to Message Id
{{messages.0.reply_to_msg_id}}
Identifier of the message the post is responding to (if applicable)
-
Buttons
{{messages.0.buttons}}
Array containing information about the buttons attached to the post
-
Media
{{messages.0.media}}
Array containing information about the images attached to the post
-
Media 1
{{messages.0.media.0}}
URL of the first image attached to the post (if applicable). This URL coincides with the one indicated in the {{image_url}} tag
-
Media 2
{{messages.0.media.1}}
URL of the second attached image to the post (if applicable)
-
Media 3
{{messages.0.media.2}}
URL of the third attached image to the post (if applicable)
-
Media 4
{{messages.0.media.3}}
URL of the fourth attached image to the post (if applicable)
-
Media 5
{{messages.0.media.4}}
URL of the fifth attached image to the post (if applicable)
-
Media 6
{{messages.0.media.5}}
URL of the sixth attached image to the post (if applicable)
-
Media 7
{{messages.0.media.6}}
URL of the seventh attached image to the post (if applicable)
-
Media 8
{{messages.0.media.7}}
URL of the eighth attached image to the post (if applicable)
-
Media 9
{{messages.0.media.8}}
URL of the ninth attached image to the post (if applicable)
-
Media 10
{{messages.0.media.9}}
URL of the tenth attached image to the post (if applicable)
Let's talk
Choose day and time.
We share the screen and answer all your questions.