Introduction
This function increments the poll count of specific posts in a Telegram chat.
Endpoint
Method: POST
URL: /add-vote
Request Body
folder
(String, required): The folder containing the accounts to be checked for spambots.phones
(List, required): The list of phones to be checkedchat
(String, optional): Channel Namelimit
(int, optional): limit to iter messagesmessage_links
(List, optional): provide message links onlyvoting_index
(required): Provide poll int(number) or add random(str)
Example Request Body for messsage_links
{
"folder": "active",
"phones": ["123456789", "123456780"],
"message_links": [
"https://t.me/vottingchannel123/15",
"https://t.me/vottingchannel123/6"
],
"voting_index": 1 | "random"
}
Example Request Body for limit and chat
{
"folder": "active",
"phones": ["123456789", "123456780"],
"chat": "example",
"limit": 100,
"voting_index": 1 | "random"
}
Example Response
- Stream Text
{
"123456798": 0,
"2135467890": 100
}