Git Product home page Git Product logo

telegram-bot's Introduction

Poll bot for Telegram

Analogs
  • @vote - in the results shows only the nickname of the telegram, and not the first name with the last name of the user;
  • @PollBot - only works after adding to group.

Available commands

Start

The from_{telegramChatId} used to link the user with the chat. The bot sends a message with a link when it was added to the chat.

The poll_{pollId} used to show a poll for userю

/start
/start from_{telegramChatId}
/start poll_{pollId}

Get shared user chats with a bot

With this command, the user can find chat_id to create a chat poll.

/chats

Create poll

Params should be separated by /. Poll answer options also should be separated by ;.

  • {title_text} - poll title;
  • {option1} - answer option;
  • {chat_id} - the chat id. The poll will linked to the chat. This means that chat users will receive a message with this poll.
/poll {title_text} / {option1} ; {option2} / {chat_id}
/poll {title_text} / {option1} ; {option2}

Get user polls

/polls

telegram-bot's People

Contributors

akosmachyov avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.