R/from_df.R

Defines functions batch_answers

Documented in batch_answers

#' Create many answers at once
#'
#' @param texts vector of response texts
#' @param names names of the answers
#' @return list of answers
batch_answers<-function(texts, names){

  x<-as.list(as.character(texts))
  names(x)<-as.character(names)
  # media<-as.character(media)
  lapply(x,answer)
}
mabafaba/telegramchatbot documentation built on Jan. 4, 2021, 12:33 a.m.