bots


telegram bot - keep questions and answers


My telegram bot is a dialog and it needs to keep the questions and the answers (like TriviaBot). What is the best (most efficient) method to do this? A database with the user id as key?
There is a lot of telegram bots, but where are examples with the source code to get ideas?
Your question is not really related to the telegram bot API. You are essentially asking: I have an application that has to keep an history of user interactions, how to do this (efficient)?
To answer that: you could use a database and insert an entry for each conversation using an unique identifier. Since telegram has a chat_id for each conversation, you could use that. Depending on what you are exactly trying to store, you should choose how to store it. (an entry for each answer, or for each conversation or ...)
If you program in python, you can use the python wrapper called python-telegram-bot to make things easier
Examples are here:
https://github.com/leandrotoledo/python-telegram-bot#examples

Related Links

How to disconnect LUIS of Microsoft Bot Connector selectively?
Skype bot in “In Review” Status
Bot framework documentation qna maker [closed]
How to make telegram bot to remove links?
Testing in Bot Framework returns 401 Unauthorized
Bot Framework .Net Activity reply = activity.CreateReply(
How to access the filled data when using Formflow Namespace in Skype Bot Framework?
Microsoft bot framework getting the users time zone
How to get credentials for the Direct Line API microsoft bot framework?
Telegram bots: How much API keys can I generate?
Weird rendering in “Fetch as Google”
Effective way of training the bot, language processing APIs
What would be the right way to ask the person to enter a city inside a bot?
What is the right way to save/track state inside a Facebook Messenger bot?
How to implement a chatbot to human executive switch using Microsoft Bot Framework?
How to stop or throttle bot traffic

Categories

HOME
nam
freeradius
command-prompt
hdfs
ant
dji-sdk
firebase-database
cdi
mutation-testing
wine
sslhandshakeexception
distributed-computing
synthesis
phonegap-build
cloudsim
nose
spyder
angular2-highcharts
pe
exchange-server-2010
sipp
pubxml
strophe.js
uilocalnotification
gravity-forms-plugin
npoi
region
mapnik
universal
landscape
recovery
android-n
slideshow
klee
raytracing
transparency
apache-toree
nonlinear-functions
non-linear-regression
solr-query-syntax
datediff
pen
algebra
dblink
polymaps
right-to-left
android-syncadapter
wicked-pdf
exists
google-maps-api-2
css-paged-media
clarion
mathematical-expressions
dos2unix
iodocs
cout
image-rotation
visual-studio-6
full-text-indexing
prism.js
roxy-fileman
usb-flash-drive
proxy-server
frontbase
acitree
stty
ldif
insertion
mongo-jackson-mapper
oembed
system-requirements
xalan
arrow
telerik-ajax
image-scanner
mkannotation
dynamic-c
will-paginate
groovy-console
nsconnection
jdownloader
activestate
rawcontacts
efs
activex-exe

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App