Skip to content

Instantly share code, notes, and snippets.

View fatiiates's full-sized avatar
🎯
Focusing

Fatih ATES fatiiates

🎯
Focusing
View GitHub Profile
@fatiiates
fatiiates / chatbot-help-first.py
Last active January 31, 2021 20:30
Medium Telegram Chatbot - Help Method
def help(update, context):
help_message = "Mevcut komutları aşağıdan görebilirsin.\n\n"
help_message += "/hakkinda - Chatbot hakkındaki bilgileri verir.\n"
help_message += "/yardim - Tüm komutları listeler.\n"
help_message += "/start - Chatbotu başlatır.\n"
# Bot gönderilen mesaja özel yanıt döndürüyor
update.message.reply_text(help_message)
@fatiiates
fatiiates / chatbot-start-first.py
Created December 30, 2020 21:52
Medium Telegram Chatbot - Start Method
def start(update, context):
message = "Bot başlatıldı.\n"
message += "Daha fazla bilgi için /help komutunu gönderin."
# Bot gönderilen mesaja özel yanıt döndürüyor
update.message.reply_text(message)
@fatiiates
fatiiates / chatbot-main-first.py
Last active January 31, 2021 19:52
Medium Telegram Chatbot - Main Method
def main():
#Telegram Api güncellemelerini yakalayan bir Updater oluşturduk.
updater = Updater(TOKEN, use_context=True)
# Api güncellemelerini yönlendirmek için Dispatcher oluşturduk.
dp = updater.dispatcher
@fatiiates
fatiiates / nextjs-file-upload-api.js
Created December 7, 2020 07:50 — forked from agmm/nextjs-file-upload-api.js
Simple Nextjs File Upload — Backend API
// Backend
import formidable from 'formidable';
export const config = {
api: {
bodyParser: false,
},
};
export default async (req, res) => {
@fatiiates
fatiiates / chat.js
Created July 11, 2020 09:06 — forked from muhammadawaisshaikh/chat.js
chat component built with react material-ui
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Paper from '@material-ui/core/Paper';
import Grid from '@material-ui/core/Grid';
import Box from '@material-ui/core/Box';
import Divider from '@material-ui/core/Divider';
import TextField from '@material-ui/core/TextField';
import Typography from '@material-ui/core/Typography';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';