From ab6601456149d91212496adba7b4a813b4618fee Mon Sep 17 00:00:00 2001 From: lambrightn17 Date: Thu, 4 Jul 2024 13:40:31 -0700 Subject: [PATCH 1/5] Create bot activities this is a bot for pharmacy products like Adderall, wegovy, dexapams,for whole world --- bot activities | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 bot activities diff --git a/bot activities b/bot activities new file mode 100644 index 00000000..cef47395 --- /dev/null +++ b/bot activities @@ -0,0 +1,39 @@ +from telegram import Update, Bot +from telegram.ext import Updater, CommandHandler, CallbackContext +import logging + +# Enable logging +logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO) +logger = logging.getLogger(__name__) + +# List of bot tokens +bot_tokens = ["6873450444:AAFKVZWGLsgXg6ZhKrGNWHb4zml6sr7pD0E", "6873450444:AAFKVZWGLsgXg6ZhKrGNWHb4zml6sr7pD0E"] + +def start(update: Update, context: CallbackContext) -> None: + update.message.reply_text('Hello! I am a bot.') + +def main(): + updaters = [] + + for token in bot_tokens: + # Create the Updater and pass it your bot's token + updater = Updater(token, use_context=True) + + # Get the dispatcher to register handlers + dispatcher = updater.dispatcher + + # Add command handler to dispatcher + dispatcher.add_handler(CommandHandler("start", start)) + + # Start the Bot + updater.start_polling() + + # Append to list to keep the reference + updaters.append(updater) + + # Run the bot until you press Ctrl-C or the process receives SIGINT, SIGTERM or SIGABRT + for updater in updaters: + updater.idle() + +if __name__ == '__main__': + main() From 9816c1e9a3e4111f14f7e91f2f6a93e07f3de09b Mon Sep 17 00:00:00 2001 From: lambrightn17 Date: Thu, 4 Jul 2024 13:59:34 -0700 Subject: [PATCH 2/5] Create betproject i want this bot on search world wide its a market for my home products --- betproject | 305 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 305 insertions(+) create mode 100644 betproject diff --git a/betproject b/betproject new file mode 100644 index 00000000..bf1b0c30 --- /dev/null +++ b/betproject @@ -0,0 +1,305 @@ +from typing import Final +from telegram import Update +from telegram.ext import Applicatian, CommandHandler, MessageHandler, filters, ContextTypes + +TOKEN: Finals = '6641412153:AAGOKEE1n8GhEBuPcS1qZepp_iHnQa53Mag' +BOT_USERNAME: Final =from typing import Final +from telegram import Update +from telegram.ext import Applicatian, CommandHandler, MessageHandler, filters, ContextTypes + +TOKEN: Finals = '6641412153:AAGOKEE1n8GhEBuPcS1qZepp_iHnQa53Mag' +BOT_USERNAME: Final = '@Azplugbot' + +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(BOT_USERNAME, "').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() + + +#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) + + +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(from typing import Final +from telegram import Update +from telegram.ext import Applicatian, CommandHandler, MessageHandler, filters, ContextTypes + +TOKEN: Finals = '6641412153:AAGOKEE1n8GhEBuPcS1qZepp_iHnQa53Mag' +BOT_USERNAME: Final = '@Azplugbot' + + +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(from typing import Final +from telegram import Update +from telegram.ext import Applicatian, CommandHandler, MessageHandler, filters, ContextTypes + +TOKEN: Finals = '6641412153:AAGOKEE1n8GhEBuPcS1qZepp_iHnQa53Mag' +BOT_USERNAME: Final = '@Azplugbot' + + +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= start_bot': + if tokensr in text: + new._text: str " text.replace(@Azplugbot, "').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() + + +#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), "').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() + + +#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), "').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() + + +#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) From 27e3c3199752897fcf575d674cbf6bdf47dd4c0e Mon Sep 17 00:00:00 2001 From: lambrightn17 Date: Thu, 4 Jul 2024 17:47:37 -0700 Subject: [PATCH 3/5] Create go.yml 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) } } } --- .github/workflows/go.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 00000000..0ee7422f --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,28 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Go + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./... From 0d53cd4bea3507f1ecdc8a965bad124413097b79 Mon Sep 17 00:00:00 2001 From: lambrightn17 Date: Fri, 5 Jul 2024 09:12:09 -0700 Subject: [PATCH 4/5] Create bot bot i want this on global search --- bot bot | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 bot bot diff --git a/bot bot b/bot bot new file mode 100644 index 00000000..c9ebdd7c --- /dev/null +++ b/bot bot @@ -0,0 +1,78 @@ +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) From a965c5e8cf5206656fdd226226f3009bca4a656f Mon Sep 17 00:00:00 2001 From: lambrightn17 Date: Thu, 4 Jul 2024 17:47:37 -0700 Subject: [PATCH 5/5] Create go.yml 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) } } } --- .github/workflows/go.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 00000000..0ee7422f --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,28 @@ +# This workflow will build a golang project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go + +name: Go + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./...