这个想法是这样的:
在编写时,通过 id/send 123 text发送消息( ) 。
怎么做?text123
主页
/
user-508486
Артем's questions
发送消息2时,需要删除消息1,也就是说,当他们按下发送问题时,需要发送消息并在此之前删除消息
@dp.callback_query_handler(text='nextask', state=question.state)
async def send_ask(call: types.CallbackQuery, state: FSMContext):
id_user = call.from_user.id
username = call.from_user.username
data = await state.get_data()
text = data.get('text')
await bot.send_message(call.from_user.id, "<b>Вы задали вопрос, ожидайте...</b>", parse_mode='HTML')
import time
import pyperclip
import keyboard
import tkinter as tk
from tkinter import *
time.sleep(5)
def spam(text: str, amount: int):
pyperclip.copy(text)
for _ in range(amount):
time.sleep(0.1)
keyboard.press_and_release('ctrl + v')
pyautogui.press("enter")
window = Tk()
window.title("spambot")
window.geometry("600x500")
window.resizable(False ,False)
window.config(bg="black")
s = tk.StringVar()
i = tk.IntVar()
l = Label(text= "введите текст для спама:", bg = "black", fg = "green",)
a = Entry(font='Times 15', textvariable = s)
l1 = Label(text= "введите количество сообщений:", bg = "black", fg = "green")
b = Entry(font='Times 15', textvariable = i)
btn = Button(window, text="НАЧАТЬ СПАМ",font='Times 15', fg = "red", command = spam(a.get(), int(b.get())))
l.pack(pady=(130,0))
a.pack()
l1.pack(pady=(10,0))
b.pack()
btn.pack(pady=20)
window.mainloop()
