Ruthful Hearts
Our quick campaign is now over!!!
This is just an amazing milestone π€―
Thank you all for your participation π
She sends the love and appreciation she have for all you π
Thank you all for your participation π
She sends the love and appreciation she have for all you π
β€36
I just spend an hour setting up and defining all the Telegram Bot API to my NextJS TS app while i can just use GrammyJs library, even then i didn't read they have an integration with nextjs with the concept called adapter and i was trying to configure all by myself π
Anyways here are good code for setting up your telegram in nextjs[ofc with TS] with cloudflare pages,
First define your bot object in any location (i choose in root director as
In your api
Then if you are using cloudflare zerotrust Tunnels just register your webhook like below
Then just send /start to your bot. No Magic behind all this just bunch of shitscript.
Do you wanna know how to setup cloudflare tunner to or you can use ngrok since i love cloudflare plus it is under my domain. if you want to know how to configure cloudflare let me know?
#nextjs #ts #js
Anyways here are good code for setting up your telegram in nextjs[ofc with TS] with cloudflare pages,
First define your bot object in any location (i choose in root director as
bot/index.tsimport { Bot } from "grammy";
import { getRequestContext } from '@cloudflare/next-on-pages'
const { env } = getRequestContext()
const bot = new Bot(env.TELEGRAM_BOT_TOKEN);
bot.command("start", (ctx) => ctx.reply("Welcome! Up and running."));
export default bot;In your api
api/webhook/route.ts you can use any endpoint.import type { NextRequest } from 'next/server'
import { getRequestContext } from '@cloudflare/next-on-pages'
import bot from '@/bot'
import { webhookCallback } from 'grammy'
export const runtime = 'edge'
const { env } = getRequestContext()
export const POST = webhookCallback(bot, 'std/http', {
secretToken: env.WEBHOOK_SECRET,
})Then if you are using cloudflare zerotrust Tunnels just register your webhook like below
curl api.telegram.org/bot$TELEGRAM_BOT_TOKEN/setWebhook?url=https://$cloudflare_url/api/webhook?secret_token=$WEBHOOK_SECRET
Then just send /start to your bot. No Magic behind all this just bunch of shitscript.
Do you wanna know how to setup cloudflare tunner to or you can use ngrok since i love cloudflare plus it is under my domain. if you want to know how to configure cloudflare let me know?
#nextjs #ts #js
π12
Forwarded from Ruthful Hearts
This media is not supported in your browser
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
Hey everyone π
With your help we were able to accomplish so much more than what we planned. You all stepped up and did all of this. You are all incredible and we're more than blessed to be part of this.π
This afternoon, our team here at @RuthfulHearts went out to buy the PC that that incredible girl needed. We considered all the tasks she'll be doing and bought her a suitable lasting PC.π
We checked every single tiny part of the PC to make sure she gets the best and convenient experience. Installed all the drivers and things are working smoothly.π€
Specs of her PC
β’ Brand New HP Elitebook G5
β’ Core i7-8th generation
β’ Model : 840
β’ Graphics: intel HD graphics
β’ Screen :14 inch
β’ Storage : 512GB SSD
β’ RAM : 16gb DDR4
β’ Battery: 6 Hours
β’ Ultra Slim Design
β’ HD Sound System
β’ Price: 39,000 Birr
We also got her a very decent mouse for 1,000 Birr to make her UI/UX experience comfortable.βΊοΈ
All of this was possible because of you, and we can't emphasise enough how much we would all like to thank you for impacting people's lives the way you've been doing throughout all our campaigns.π₯Ή
Thank You So Much!!π
@RuthfulHearts
With your help we were able to accomplish so much more than what we planned. You all stepped up and did all of this. You are all incredible and we're more than blessed to be part of this.
This afternoon, our team here at @RuthfulHearts went out to buy the PC that that incredible girl needed. We considered all the tasks she'll be doing and bought her a suitable lasting PC.
We checked every single tiny part of the PC to make sure she gets the best and convenient experience. Installed all the drivers and things are working smoothly.
Specs of her PC
β’ Brand New HP Elitebook G5
β’ Core i7-8th generation
β’ Model : 840
β’ Graphics: intel HD graphics
β’ Screen :14 inch
β’ Storage : 512GB SSD
β’ RAM : 16gb DDR4
β’ Battery: 6 Hours
β’ Ultra Slim Design
β’ HD Sound System
β’ Price: 39,000 Birr
We also got her a very decent mouse for 1,000 Birr to make her UI/UX experience comfortable.
All of this was possible because of you, and we can't emphasise enough how much we would all like to thank you for impacting people's lives the way you've been doing throughout all our campaigns.
Thank You So Much!!
@RuthfulHearts
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
β€61π3
Ruthful Hearts
Photo
Lydia the untold hero π
Thank you ruthfulhearts and Lidya ππππ
Thank you ruthfulhearts and Lidya ππππ
π₯°10β€6π5
This media is not supported in your browser
VIEW IN TELEGRAM
Drop the names
Ruthful Hearts
Photo
The Girl just sent me a voice note.
I am telling you guys I don't usually cry but her voice note almost got me cried π. Am extremely happy and she said please thank me and she was saying thank you wasnt enough for me today because the word doesn't enough for all of the people who participated on this even tho it is not health related issue you guys helped me. So she said Thank you in between of every word.
Ow yeah she was really crying when she sends the voice note. πβ€οΈβ€οΈβ€οΈβ€οΈπ
I can't thank you enough guys am so so happy. πππ
I love what we are building here. Not only tech people but good hearted tech people.
Special thanks to Lydia.
Special thanks to Ruthfulhearts and Dagmawi the founder of ruthfulhearts.
And Super special thanks to the community of people(people who actually are making somebody else life ) πβ€οΈβ€οΈ
I am telling you guys I don't usually cry but her voice note almost got me cried π. Am extremely happy and she said please thank me and she was saying thank you wasnt enough for me today because the word doesn't enough for all of the people who participated on this even tho it is not health related issue you guys helped me. So she said Thank you in between of every word.
Ow yeah she was really crying when she sends the voice note. πβ€οΈβ€οΈβ€οΈβ€οΈπ
I can't thank you enough guys am so so happy. πππ
I love what we are building here. Not only tech people but good hearted tech people.
Special thanks to Lydia.
Special thanks to Ruthfulhearts and Dagmawi the founder of ruthfulhearts.
And Super special thanks to the community of people(people who actually are making somebody else life ) πβ€οΈβ€οΈ
β€57β€βπ₯7π5
Chapi Dev Talks
The Girl just sent me a voice note. I am telling you guys I don't usually cry but her voice note almost got me cried π. Am extremely happy and she said please thank me and she was saying thank you wasnt enough for me today because the word doesn't enoughβ¦
This is the screenshot of the text we had. π
Am sorry I have to keep her anonymous since she doesn't want her name to be in public which is 10000% understandable .
If I messed up by not covering her name please let me know πππ
Love you my people πβ€οΈβ€οΈβ€οΈπ
Am sorry I have to keep her anonymous since she doesn't want her name to be in public which is 10000% understandable .
If I messed up by not covering her name please let me know πππ
Love you my people πβ€οΈβ€οΈβ€οΈπ
β€65
π€8
When did we start normalising sqlite for production?
I know it has been here forever but now it has been normalized more than ever.
I think we only need couple of people using it to start making it like a wave.
Don't get me wrong I love it, I used it many times for local development now am using it for my personal project by deploying it.
One thing I can say is there have been too many database than JavaScript library because of sqlite and graph database era ππ
I think Sqlite is really the best for developers who just wanna show thier project deployed since there is tons of free resources now like Cloudflare, Vercel, Flyio and many more services out there.
Yeah Sqlite is really great options for most of the followers here. I am not saying Sami should start using Sqlite on Agelgil(may be he is π) but it is really great options for MVP, and other small apps ofc we don't have huge app to begin with ππ.
Anyways Use Sqlite since we got no user other than you and your other 5 more emails π.
Enjoy
I know it has been here forever but now it has been normalized more than ever.
I think we only need couple of people using it to start making it like a wave.
Don't get me wrong I love it, I used it many times for local development now am using it for my personal project by deploying it.
One thing I can say is there have been too many database than JavaScript library because of sqlite and graph database era ππ
I think Sqlite is really the best for developers who just wanna show thier project deployed since there is tons of free resources now like Cloudflare, Vercel, Flyio and many more services out there.
Yeah Sqlite is really great options for most of the followers here. I am not saying Sami should start using Sqlite on Agelgil(may be he is π) but it is really great options for MVP, and other small apps ofc we don't have huge app to begin with ππ.
Anyways Use Sqlite since we got no user other than you and your other 5 more emails π.
Enjoy
π8
