Skip to content

telegram bot that communicates with user & sends testnet coins to user's wallet

Notifications You must be signed in to change notification settings

danyhan89/bitcoin-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Challenge - Create a BTC Telegram Chatbot

Run as a client

  • Create a telegram account

  • Create a account on block.io

  • select BTC testnet from the dropdown

  • copy your btc testnet wallet address

  • join the chat with t.me/danybtctg_bot (or your bot name)

  • Say hello (the bot will run from here)

  • give bot your testnet wallet address

  • send 3 chats to receive testnet coins

  • use below wallet info for client

Run as the server (bot)

ruby-2.3.7

  • Create a telegram account
  • Create a new bot by chatting with the BotFather
  • Save the token in an .env file under TELEGRAM_BOT_TOKEN
  • Create an account on block.io
  • Create a wallet under BTC testnet (block.io)
  • Use a BTC testnet faucet to fund the bot wallet (http://bitcoinfaucet.uo1.net/send.php)
  • Create an API key at block.io
  • save the API key in .env under BLOCKIO_API_KEY
  • Save the account secret pin in the .env under BLOCKIO_API_PIN
  • Start the server (ruby app.rb)
  • Start bot in chat by joining the bot with the link given by the Botfather

##RUN as the server (bot) with pre-existing .env keys & testnet wallet account

  • copy paste this in your .env file

    • TELEGRAM_BOT_TOKEN=787218721:AAE0SE0qpLIjERq8Mv_c00X6Gn1oERA22Ew
    • BLOCKIO_API_KEY=950b-24ec-5b91-30cd
    • BLOCKIO_API_PIN=blockbankserver1234
  • use below wallet info for server

About

telegram bot that communicates with user & sends testnet coins to user's wallet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages