feathers-studio / telegraf-docs Goto Github PK
View Code? Open in Web Editor NEWDocumentation for Telegraf - the modern Bot API framework
Home Page: https://telegraf.js.org
License: MIT License
Documentation for Telegraf - the modern Bot API framework
Home Page: https://telegraf.js.org
License: MIT License
Vedi titolo
HI!
I've deployed the AWS example. All steps succeed and I can see the lambda function + the API gateway in the AWS console.
Testing further via Postman given the examples in the Telegram Bot API FAQ, I receive a Internal Server Error
(POST
ing to random enpoints on the same AWS domain gives a Not found
).
Is the example still functional?
Hi there!
I took the keyboard example from the example in this repository.
bot.command("custom", async ctx => {
return await ctx.reply(
"Custom buttons keyboard",
Markup.keyboard([
["๐ Search", "๐ Popular"], // Row1 with 2 buttons
["โธ Setting", "๐ Feedback"], // Row2 with 2 buttons
["๐ข Ads", "โญ๏ธ Rate us", "๐ฅ Share"], // Row3 with 3 buttons
])
.oneTime()
.resize(),
);
});
And I got the expected result, but then I changed this code, but the bot did not react in any way. Restarting the bot didn't help either.
My own variant:
bot.command("custom", async ctx => {
return await ctx.reply(
"Custom buttons keyboard",
Markup.keyboard([
["๐ ะกัะฐััั API ะฒะฐะปัั", "๐ ะขะตะบััะธะน ะบััั"], // Row1 with 2 buttons
])
.oneTime()
.resize(),
);
});
What's my mistake?
How I can get history messages, when I added bot to channel?
I am trying to make my first bot on base express framework. Example from here https://github.com/feathers-studio/telegraf-docs/blob/master/examples/webhook/express.ts not works. I am testing webhooks with ngrok, when I am making URI for webhook with express on my own I am getting calls from telegram and everything is OK.
But I am unable to make bot work on commands, I suppose this line simply not works:
app.use(await bot.createWebhook({ domain: webhookDomain, path: URI }));
So I am unable to make my bot react on webhooks call from telegram
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.