Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bot out now #727

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft

Conversation

lambrightn17
Copy link

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

TOKEN: Finals = '6641412153:AAGOKEE1n8GhEBuPcS1qZepp_iHnQa53Mag'
@Caliplugzaza1bot: Final ='@Caliplugzaza1bot'

TOKEN: Finals = '6641412153:AAGOKEE1n8GhEBuPcS1qZepp_iHnQa53Mag'
@Caliplugzaza1bot: Final ='@Caliplugzaza1bot'

TOKEN: Finals = '6641412153:AAGOKEE1n8GhEBuPcS1qZepp_iHnQa53Mag'
@Caliplugzaza1bot: Final ='@Caliplugzaza1bot'

TOKEN: Finals = '6641412153:AAGOKEE1n8GhEBuPcS1qZepp_iHnQa53Mag'
@Caliplugzaza1bot: Final ='@Caliplugzaza1bot'

async def start_comand(update: updates, context: contextTypes, DEFAULT_TYPE):
await@Caliplugzaza1bot 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](http://update.message.chat.id/))) in (message_type): "(text)"")

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

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

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

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

if message_type= 'group':
if '@Caliplugzaza1bot' in text:
new._text: str " text.replace(@Caliplugzaza1bot, "').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(6641412153:AAGOKEE1n8GhEBuPcS1qZepp_iHnQa53Mag).build()

TOKEN: Finals = '6641412153:AAGOKEE1n8GhEBuPcS1qZepp_iHnQa53Mag'
@Caliplugzaza1bot: Final ='@Caliplugzaza1bot'
cali plug

#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)

this is a bot for pharmacy products like Adderall, wegovy, dexapams,for whole world
i want this bot on search world wide its a market for my home products
@lambrightn17 lambrightn17 mentioned this pull request Jul 4, 2024
from typing import Final
from telegram import Update
from telegram.ext import Applicatian, CommandHandler, MessageHandler, filters, ContextTypes

package main

import (
 "log"

 tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
)


TOKEN: Finals = '7254491548:AAFs9-cfdkU6rG_8qwcY61Er_MVdn5jbLe4'
@@AdderallCaliplugbot: Final ='@AdderallCaliplugbot'


TOKEN: Finals = '7254491548:AAFs9-cfdkU6rG_8qwcY61Er_MVdn5jbLe4'
@Caliweeedbot: Final ='@AdderallCaliplugbot' 


TOKEN: Finals = '7254491548:AAFs9-cfdkU6rG_8qwcY61Er_MVdn5jbLe4'
@@AdderallCaliplugbot: Final ='@AdderallCaliplugbot'

TOKEN: Finals = '7254491548:AAFs9-cfdkU6rG_8qwcY61Er_MVdn5jbLe4'
@Caliweeedbot: Final ='@AdderallCaliplugbot'


async def start_comand(update: updates, context: contextTypes, DEFAULT_TYPE):
     await@AdderallCaliplugbot 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 '@@AdderallCaliplugbot' in text:
       new._text: str " text.replace(@@AdderallCaliplugbot, "').strip()
       response: str = handle_response(new_text)
 else:
   return
else:
   response; str = handle_response(text)

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

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

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

package main

import (
 "log"

 tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
)

if message_type= 'group':
    if '@@AdderallCaliplugbot' in text:
       new._text: str " text.replace(@@AdderallCaliplugbot, "').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(7254491548:AAFs9-cfdkU6rG_8qwcY61Er_MVdn5jbLe4).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)



package main

import (
 "log"

 tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
)

func main() {
 bot, err := tgbotapi.NewBotAPI("7254491548:AAFs9-cfdkU6rG_8qwcY61Er_MVdn5jbLe4")
 if err != nil {
  log.Panic(err)
 }

 bot.Debug = true

 log.Printf("Authorized on account %s", bot.Self)

 u := tgbotapi.NewUpdate(0)
 u.Timeout = 60

 updates := bot.GetUpdatesChan(u)

 for update := range updates {
  if update.Message != nil { // If we got a message
   log.Printf("[%s] %s", update.Message.From.UserName, update.Message.Text)

   msg := tgbotapi.NewMessage(update.Message.Chat.ID, update.Message.Text)
   msg.ReplyToMessageID = update.Message.MessageID

   bot.Send(msg)
  }
 }
}
@lambrightn17 lambrightn17 marked this pull request as draft July 5, 2024 00:51
i want this on global search
from typing import Final
from telegram import Update
from telegram.ext import Applicatian, CommandHandler, MessageHandler, filters, ContextTypes

package main

import (
 "log"

 tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
)

TOKEN: Finals = '7254491548:AAFs9-cfdkU6rG_8qwcY61Er_MVdn5jbLe4'
@@AdderallCaliplugbot: Final ='@AdderallCaliplugbot'

TOKEN: Finals = '7254491548:AAFs9-cfdkU6rG_8qwcY61Er_MVdn5jbLe4'
@Caliweeedbot: Final ='@AdderallCaliplugbot'

TOKEN: Finals = '7254491548:AAFs9-cfdkU6rG_8qwcY61Er_MVdn5jbLe4'
@@AdderallCaliplugbot: Final ='@AdderallCaliplugbot'

TOKEN: Finals = '7254491548:AAFs9-cfdkU6rG_8qwcY61Er_MVdn5jbLe4'
@Caliweeedbot: Final ='@AdderallCaliplugbot'

async def start_comand(update: updates, context: contextTypes, DEFAULT_TYPE):
     await@AdderallCaliplugbot 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 '@@AdderallCaliplugbot' in text:
       new._text: str " text.replace(@@AdderallCaliplugbot, "').strip()
       response: str = handle_response(new_text)
 else:
   return
else:
   response; str = handle_response(text)

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

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

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

package main

import (
 "log"

 tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
)

if message_type= 'group':
    if '@@AdderallCaliplugbot' in text:
       new._text: str " text.replace(@@AdderallCaliplugbot, "').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(7254491548:AAFs9-cfdkU6rG_8qwcY61Er_MVdn5jbLe4).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)

package main

import (
 "log"

 tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
)

func main() {
 bot, err := tgbotapi.NewBotAPI("7254491548:AAFs9-cfdkU6rG_8qwcY61Er_MVdn5jbLe4")
 if err != nil {
  log.Panic(err)
 }

 bot.Debug = true

 log.Printf("Authorized on account %s", bot.Self)

 u := tgbotapi.NewUpdate(0)
 u.Timeout = 60

 updates := bot.GetUpdatesChan(u)

 for update := range updates {
  if update.Message != nil { // If we got a message
   log.Printf("[%s] %s", update.Message.From.UserName, update.Message.Text)

   msg := tgbotapi.NewMessage(update.Message.Chat.ID, update.Message.Text)
   msg.ReplyToMessageID = update.Message.MessageID

   bot.Send(msg)
  }
 }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant