Skip to content
View Pharmaceutical0's full-sized avatar

Block or report Pharmaceutical0

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Pharmaceutical0/README.md

telegram import Update from telegram.ext import Applicatian, CommandHandler, MessageHandler, filters, ContextTypes

TOKEN: Final s '7456509123:AAE6iGefTpPu5IpRGcgBMGT2FON0s3u-1SM" BOT_USERNAME: Final = '@Caliplug_pharmacy_bot'

async def start_comand(update: updates, context: contextTypes, DEFAULT_TYPE): await update.message.reply_text("Hello! Thankcs for connecting with me us we are going to get back to you!")

async def start_comand(update: updates, context: contextTypes, DEFAULT_TYPE): await update.message.reply_text("Hello! Thankcs for connecting with me us we are going to get back to you!")

async def start_comand(update: updates, context: contextTypes, DEFAULT_TYPE): await update.message.reply_text("Hello! Thankcs for connecting with me us we are going to get back to you!")

#Responses

def handle_response(text: str) -> str: if 'hello' in processed: return "Hey there!'

 if 'how are you* in processed:
     return 'I am good!'

 if '1 love python' in processed:
     return `Remember to subscribe!'







      message_type: str m update.message.chat.type
      message_type: str m update.message.chat.type
      text: str = update.message.text
    print(f'User (update.message.chat.id)) in (message_type): "(text)"")

if message_type= 'group': if B0T_USERNAME in text: new._text: str " text.replace(Caliplug_pharmacy_bot, "').strip() response: str = handle_response(new_text) else: return else: response; str = handle_response(text)

print('Bot:", response) await update.message.reply_text(response)

async def error (update: Update, context: ContextTypes.DEFAULT_TYPE): print(f"Update f(update) caused error (context.error)')

if name 'main: app = Application.builder().token(7456509123:AAE6iGefTpPu5IpRGcgBMGT2FON0s3u-1SM).build()

#Commands app.add_handler(CommandHandler('start',start_command)) app.add_handler(CommandHandler('help',help_command)) app.add_handler(CommandHandler('costum',costum_command))

#Messages app.add_handler(MessageHandler(Filter,Text,handler_message))

#Error app.add.error.handler(error)

#Pull the bot print('Pulling....') app.run_pulling(pull_interval=5)

Popular repositories Loading

  1. telegram-bot-api telegram-bot-api Public

    Forked from go-telegram-bot-api/telegram-bot-api

    Golang bindings for the Telegram Bot API

    Go 1

  2. Fitrxpharmacy.com Fitrxpharmacy.com Public

    To rank bot on telegram

  3. rake-nltk rake-nltk Public

    Forked from csurfer/rake-nltk

    Python implementation of the Rapid Automatic Keyword Extraction algorithm using NLTK.

    Python

  4. Caliplug-Zaza-Pharmacy- Caliplug-Zaza-Pharmacy- Public

  5. Pharmaceutical0 Pharmaceutical0 Public

    Config files for my GitHub profile.

  6. ultimate-python ultimate-python Public

    Forked from huangsam/ultimate-python

    Ultimate Python study guide for newcomers and professionals alike. 🐍 🐍 🐍

    Python