bot_handlers module

פקודות מתקדמות לבוט שומר קבצי קוד Advanced Bot Handlers for Code Keeper Bot

class bot_handlers.AdvancedBotHandlers(application)[מקור]

Bases: object

פקודות מתקדמות של הבוט

__init__(application)[מקור]
setup_advanced_handlers()[מקור]

הגדרת handlers מתקדמים

async show_command(update, context)[מקור]

הצגת קטע קוד עם הדגשת תחביר

פרמטרים:
  • update (telegram.Update)

  • context (telegram.ext.ContextTypes.DEFAULT_TYPE)

async edit_command(update, context)[מקור]

עריכת קטע קוד קיים

פרמטרים:
  • update (telegram.Update)

  • context (telegram.ext.ContextTypes.DEFAULT_TYPE)

async delete_command(update, context)[מקור]

מחיקת קטע קוד

פרמטרים:
  • update (telegram.Update)

  • context (telegram.ext.ContextTypes.DEFAULT_TYPE)

async versions_command(update, context)[מקור]

הצגת כל גרסאות הקובץ

פרמטרים:
  • update (telegram.Update)

  • context (telegram.ext.ContextTypes.DEFAULT_TYPE)

async analyze_command(update, context)[מקור]

ניתוח מתקדם של קטע קוד

פרמטרים:
  • update (telegram.Update)

  • context (telegram.ext.ContextTypes.DEFAULT_TYPE)

async validate_command(update, context)[מקור]

בדיקת תחביר של קוד

פרמטרים:
  • update (telegram.Update)

  • context (telegram.ext.ContextTypes.DEFAULT_TYPE)

async share_command(update, context)[מקור]

שיתוף קטע(י) קוד ב-Gist/Pastebin/קישור פנימי. תומך בשם יחיד או שמות מרובים.

פרמטרים:
  • update (telegram.Update)

  • context (telegram.ext.ContextTypes.DEFAULT_TYPE)

async share_help_command(update, context)[מקור]

הסבר קצר על פקודת /share

פרמטרים:
  • update (telegram.Update)

  • context (telegram.ext.ContextTypes.DEFAULT_TYPE)

async download_command(update, context)[מקור]

הורדת קובץ

פרמטרים:
  • update (telegram.Update)

  • context (telegram.ext.ContextTypes.DEFAULT_TYPE)

async tags_command(update, context)[מקור]

הצגת כל התגיות של המשתמש

פרמטרים:
  • update (telegram.Update)

  • context (telegram.ext.ContextTypes.DEFAULT_TYPE)

async recent_command(update, context)[מקור]

הצגת הקבצים שעודכנו לאחרונה

פרמטרים:
  • update (telegram.Update)

  • context (telegram.ext.ContextTypes.DEFAULT_TYPE)

async handle_callback_query(update, context)[מקור]

טיפול בלחיצות על כפתורים

פרמטרים:
  • update (telegram.Update)

  • context (telegram.ext.ContextTypes.DEFAULT_TYPE)