wlstp8473

all

1 +{
2 + "CurrentProjectSetting": null
3 +}
...\ No newline at end of file ...\ No newline at end of file
1 +{
2 + "ExpandedNodes": [
3 + ""
4 + ],
5 + "SelectedNode": "\\respond.py",
6 + "PreviewInSolutionExplorer": false
7 +}
...\ No newline at end of file ...\ No newline at end of file
No preview for this file type
...@@ -11,3 +11,4 @@ chat_id = 1657858421 ...@@ -11,3 +11,4 @@ chat_id = 1657858421
11 bot.sendMessage(chat_id = chat_id, text = "진세야 모해?") 11 bot.sendMessage(chat_id = chat_id, text = "진세야 모해?")
12 bot.sendMessage(chat_id = chat_id, text = "왜 답장이 없어? ㅠㅠ") 12 bot.sendMessage(chat_id = chat_id, text = "왜 답장이 없어? ㅠㅠ")
13 bot.sendMessage(chat_id = chat_id, text = "보고 싶어") 13 bot.sendMessage(chat_id = chat_id, text = "보고 싶어")
14 +
......
1 -# https://blog.psangwoo.com/coding/2018/01/09/python-telegram-bot-3.html 기초명령어 1 +#########################################
2 -#텔레그렘 이용해서 코로나 챗봇 https://py-son.tistory.com/8 2 +# elif '멜론 1위 노래 들어봤어?' in text:
3 -#https://beomi.github.io/2017/01/20/HowToMakeWebCrawler/ 크롤링 자료 3 +# update.message.reply_text("잠깐 찾아볼게")
4 +# #update.message.reply_text("아 그 xxx 노래?")
5 +
6 +
7 +# elif '내일 날씨 어때?' in text:
8 +# update.message.reply_text("잠깐만")
9 +# #update.message.reply_text("잠깐만")
10 +
11 +
4 12
5 13
6 14
7 -import requests #웹에서 정보 가져오기
8 -from bs4 import BeautifulSoup
9 15
10 16
11 from telegram.ext import Updater, MessageHandler, Filters 17 from telegram.ext import Updater, MessageHandler, Filters
...@@ -20,7 +26,7 @@ def handler(update, context): ...@@ -20,7 +26,7 @@ def handler(update, context):
20 chat_id = update.message.chat_id 26 chat_id = update.message.chat_id
21 27
22 if "모해" in text: 28 if "모해" in text:
23 - update.message.reply_text("진세 생각 ❤") 29 + update.message.reply_text("나 낼 입을 옷 고르고 있어")
24 30
25 elif 'ㅎㅎ' in text: 31 elif 'ㅎㅎ' in text:
26 update.message.reply_text("ㅎㅎ") 32 update.message.reply_text("ㅎㅎ")
......