Size: a a a

Боты на Telegraf

2020 December 24

АТ

Александр Тарасюк... in Боты на Telegraf
Andrei
Переводить и не переводить
хороший ответ, спасибо👍
источник

JD

Josh Dies 🥭 [man go]... in Боты на Telegraf
Если у вас бот работает с ошибками, попробуйте оформить заказ на нашем сайте: 😅😅😅
источник

JD

Josh Dies 🥭 [man go]... in Боты на Telegraf
Александр Тарасюк
какие есть варианты перевода бота на другие языки?
для начала неплохо было на js
источник

R

Remzi in Боты на Telegraf
throw e;
         ^

SyntaxError: Malformed JSON in file: example_db.json
источник

R

Remzi in Боты на Telegraf
Remzi
throw e;
         ^

SyntaxError: Malformed JSON in file: example_db.json
🤔🤔🤔🤔🤔🤔
источник

⁡F

⁡Srthmnt (ノ◕ヮ◕)ノ*:・゚... in Боты на Telegraf
Remzi
throw e;
         ^

SyntaxError: Malformed JSON in file: example_db.json
источник

JD

Josh Dies 🥭 [man go]... in Боты на Telegraf
[]
источник

A

Andrei in Боты на Telegraf
Я в своём роде тоже профильный специалист
источник

R

Remzi in Боты на Telegraf
bot.command('sendName',async(ctx)=>{
await ctx.reply("Hey Send Your Name"}
//then Get His Name //how to get
await ctx.reply("Ok Nice Name Now Your Father Name")
//then getting father name //how to get
await ctx.reply("ok Nice Now Your Phone No ")
// I Want to send those Messages
After Getting Input
источник

R

Remzi in Боты на Telegraf
Remzi
bot.command('sendName',async(ctx)=>{
await ctx.reply("Hey Send Your Name"}
//then Get His Name //how to get
await ctx.reply("Ok Nice Name Now Your Father Name")
//then getting father name //how to get
await ctx.reply("ok Nice Now Your Phone No ")
// I Want to send those Messages
After Getting Input
Then how to make it 😊
источник

N

Nikita in Боты на Telegraf
Remzi
bot.command('sendName',async(ctx)=>{
await ctx.reply("Hey Send Your Name"}
//then Get His Name //how to get
await ctx.reply("Ok Nice Name Now Your Father Name")
//then getting father name //how to get
await ctx.reply("ok Nice Now Your Phone No ")
// I Want to send those Messages
After Getting Input
You can't do that in this way, it is not like reading/writing to console
источник

N

Nikita in Боты на Telegraf
Remzi
bot.command('sendName',async(ctx)=>{
await ctx.reply("Hey Send Your Name"}
//then Get His Name //how to get
await ctx.reply("Ok Nice Name Now Your Father Name")
//then getting father name //how to get
await ctx.reply("ok Nice Now Your Phone No ")
// I Want to send those Messages
After Getting Input
You have to add 'message' handler, where you can process the user input
источник

R

Remzi in Боты на Telegraf
Nikita
You have to add 'message' handler, where you can process the user input
Then how
источник

N

Nikita in Боты на Telegraf
you need to store current user stage somewhere, for example in session or directly in the database
источник

N

Nikita in Боты на Telegraf
so then:
источник

N

Nikita in Боты на Telegraf
user sends command
you send 'Hey send your name' and save somewhere that user with given ID is now entering his name
источник

N

Nikita in Боты на Telegraf
then when he sends a message
источник

N

Nikita in Боты на Telegraf
you read user's current state
источник

N

Nikita in Боты на Telegraf
and then determine what data you should process and how
источник

-

- in Боты на Telegraf
источник