- Create your bot with botfather
- Make you bot an admin of your channel
- Go to https://web.telegram.org
- Click on your channel
- Look at the URL and find the part that looks like
c12112121212_17878787878787878 - Remove the underscore and after
c12112121212
| # Use this script to test that your Telegram bot works. | |
| # | |
| # Install the dependency | |
| # | |
| # $ gem install telegram_bot | |
| # | |
| # Run the bot | |
| # | |
| # $ ruby bot.rb | |
| # |
c12112121212_17878787878787878c12112121212