This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Backend | |
import formidable from 'formidable'; | |
export const config = { | |
api: { | |
bodyParser: false, | |
}, | |
}; | |
export default async (req, res) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |
NewerOlder