P
P
pavelfoki2022-03-13 15:41:38
Python
pavelfoki, 2022-03-13 15:41:38

How to display messages one by one?

I have two userids in a variable. I need to send two different messages in turn to these userids:

await bot.send_message((1 userid), "......")
    
await bot.send_message((2 userid), "......")


etc.

Please tell me how this can be implemented?

PS The number of IDs may vary, i.e. it can be either

pasw = 1234567890, 987654321


pasw = 1234567890, 987654321, 3324567890, 764328910

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shurshur, 2022-03-13
@pavelfoki

Any python textbook, look for the for loop section.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question