Skip to content

Commit

Permalink
Merge pull request #104 from Ze-Falcon/master
Browse files Browse the repository at this point in the history
Did My part :D
  • Loading branch information
fineanmol authored Oct 21, 2020
2 parents 9f103e3 + edd2772 commit 4fee0d0
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions Contributors.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ <h1 class="animated rubberBand delay-4s">Contributors</h1>
<a class="box-item" href="https://github.com/naman360"><span>Naman Shankhydhar</span></a>
<a class="box-item" href="https://github.com/SidathWeerasinghe"><span>Sidath Weerasinghe</span></a>
<a class="box-item" href="https://github.com/samikshaupadhyay/"><span>Samiksha Upadhyay</span></a>
<a class="box-item" href="https://github.com/Ze-Falcon"><span>Ze Falcon</span></a>

<!--
Add here
Expand Down
32 changes: 32 additions & 0 deletions Program's_Contributed_By_Contributors/telegrambot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env python3
#simple Telegram Bot To Say Hi Hello
from telegram.ext import Updater, CommandHandler, MessageHandler
import requests


def start(update, context):
response = "<b>Hello I am a Test Bot How are you ? 😄😄</b>"
update.message.reply_text(response, parse_mode= "HTML")

def hello(update, context):
update.message.reply_text(
'<b>Hello <a href="tg://user?id={}">{}</a>😄😄, How ya been ?</b>'.format(update.message.from_user.id,update.message.from_user.first_name), parse_mode= "HTML")

def me (update, context):
update.message.reply_text(
'<code>Extracted From Megik Db </code>\n <b>Your name :</b> <a href="tg://user?id={}">{}</a> \n<b>Is a Bot : {} 😶😶\n</b>'.format(update.message.from_user.id,update.message.from_user.full_name,update.message.from_user.is_bot), parse_mode= "HTML")





#token
updater = Updater('<Bot_Token>', use_context=True)


updater.dispatcher.add_handler(CommandHandler('hi', start))
updater.dispatcher.add_handler(CommandHandler('hello', hello))
updater.dispatcher.add_handler(CommandHandler('about', me))

updater.start_polling()
updater.idle()

0 comments on commit 4fee0d0

Please sign in to comment.