Chapi Dev Talks
8.55K subscribers
950 photos
109 videos
12 files
596 links
My name is Chapi and I am a Developer.

I post my thoughts about tech here.

Message to our assistant to give U Feedback: @sophiservebot

Join https://t.me/chapidevtalks_group

Urgent? Contact Me: @chapimenge (Don't say hi or ask Meta Questions )
Download Telegram
Forwarded from Ruthful Hearts
Our quick campaign is now over!!!
πŸ‘5
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 πŸ™
❀36
Forwarded from Ruthful Hearts
Announcements soon....
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 bot/index.ts

import { 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
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
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 πŸ™πŸ™πŸ™πŸ™
πŸ₯°10❀6πŸ‘5
I am trusting @beka_cru for drizzle ORM.
😁5
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 ) 😭❀️❀️
❀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 😭❀️❀️❀️😭
❀65
Guys don't miss out this please


https://t.me/+JEMIeaj2tQAzMzhk

Join on the group
🀝8
Live stream scheduled for
Channel photo updated
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
😁8