Package to manage MasterPoll API using polls' package types.
AddPollVote adds your vote to a poll. value param by poll type: vote, doodle, limited doodle, quiz and board -> string rating -> int between 1 and 10 participation -> nil (It isn't required)
ClosePoll closes a opened poll (people will no longer be able to vote).
DeletePoll deletes the poll definitively (this action is irreversible).
EditPoll edits an existent poll.
EditPollVote edits your vote in a poll. value param by poll type: vote, quiz and board -> string rating -> int between 1 and 10 participation -> bool (true or false) doodle and limited doodle -> not supported
Function to get an URL with the graph of the poll. dark: true -> dark, false -> light. bar: true -> bar, false -> pie.
GetStatus() returns API status (true -> ON, false -> OFF)
OpenPoll opens a closed poll.
RemoveVote removes your vote from a poll. Choice must contain the vote to remove as string only if the poll type is doodle, limited doodle or quiz (For the others you have to use "").
Create a new MasterPoll with an API key.
Create a new poll with a PollSend interface object and return poll_id as int.
GetActivePolls returns all your polls currently active in MasterPoll database.
GetActivePolls returns all your polls in MasterPoll database.
GetMe() returns your personal information saved in bot database as a string. 0 -> first_name, 1 -> last_name, 2 -> username, 3 -> language.
GetPoll gets an existent poll from its id.
GetSubscribers() returns bot subscribers number
Change API key of MasterPoll.
|errors||Package to manage errors produced by other packages.|
|polls||Package polls provides types to manage polls and some functions to create or manage them.|