<commit_before># -*- coding: utf-8 -*-

@bot.message_handler(commands=['start', 'help'])
def send_welcome(message):
  userlang = redisserver.get("settings:user:language:" + str(message.from_user.id))
  userid = message.from_user.id
  banlist = redisserver.sismember('zigzag_banlist', '{}'.format(userid))
  if banlist:
    bot.reply_to(message, "You are banned!")
    return
  if len(message.text.split()) > 1:
    if message.text.replace("/start ","",1) == "inlinem":
      bot.send_message(message.chat.id, language[userlang]["INLINE_HELP_MSG"], parse_mode="Markdown")
      return
  markup = types.InlineKeyboardMarkup()
  markupib = types.InlineKeyboardButton("Help",callback_data='help')
  markupic = types.InlineKeyboardButton("Channel", url=CHANNEL_LINK)
  markup.add(markupib,markupic)
  markupif = types.InlineKeyboardButton("Settings (Beta)", callback_data='settings')
  markup.add(markupif)
  markupid = types.InlineKeyboardButton("Show all commands below keyboard", callback_data='showit')
  markup.add(markupid)
  markupie = types.InlineKeyboardButton("Inline mode help", callback_data='inlinehelp')
  markup.add(markupie)
  
  if message.chat.type == "private":
    bot.reply_to(message, language[userlang]["START_MSG"], reply_markup=markup, parse_mode="Markdown")
    redisserver.sadd('zigzag_members',message.from_user.id)
  else:
    bot.reply_to(message, language[userlang]["START_MSG"], parse_mode="Markdown")<commit_msg>Update start.py<commit_after># -*- coding: utf-8 -*-

@bot.message_handler(commands=['start', 'help'])
def send_welcome(message):
  userlang = redisserver.get("settings:user:language:" + str(message.from_user.id))
  userid = message.from_user.id
  banlist = redisserver.sismember('zigzag_banlist', '{}'.format(userid))
  if banlist:
    bot.reply_to(message, "You are banned!")
    return
  if len(message.text.split()) > 1:
    if message.text.replace("/start ","",1) == "inlinem":
      bot.send_message(message.chat.id, language[userlang]["INLINE_HELP_MSG"], parse_mode="Markdown")
      return
  markup = types.InlineKeyboardMarkup()
  markupib = types.InlineKeyboardButton(language[userlang]["HELP"],callback_data='help')
  markupic = types.InlineKeyboardButton(language[userlang]["CHANNEL"], url=CHANNEL_LINK)
  markup.add(markupib,markupic)
  markupif = types.InlineKeyboardButton(language[userlang]["SETTINGS"], callback_data='settings')
  markup.add(markupif)
  markupid = types.InlineKeyboardButton(language[userlang]["SHOW_ALL"], callback_data='showit')
  markup.add(markupid)
  markupie = types.InlineKeyboardButton(language[userlang]["INLINE_HELP"], callback_data='inlinehelp')
  markup.add(markupie)
  
  if message.chat.type == "private":
    bot.reply_to(message, language[userlang]["START_MSG"], reply_markup=markup, parse_mode="Markdown")
    redisserver.sadd('zigzag_members',message.from_user.id)
  else:
    bot.reply_to(message, language[userlang]["START_MSG"], parse_mode="Markdown")
{'fraction_non_alphanumeric': 0.1551255940257977, 'fraction_numerical': 0.002036659877800407, 'mean_word_length': 6.479695431472082, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4892464', 'n_tokens_mistral': 994, 'n_tokens_neox': 1010, 'n_words': 137}