def __init__(self, parent):
        """Send messages from the bot

        Args:
            parent:
        """

        super(ChatFrame, self).__init__(parent, padding=8, text="Chat")

        self.channel = tk.StringVar()
        self.message = tk.StringVar()

        self.channel_frame = ttk.Frame(self)
        self.channel_frame.grid(column=0, row=0, sticky="W E")
        self.channel_label = ttk.Label(self.channel_frame, text="Channel ID:")
        self.channel_label.grid(column=0, row=0, sticky="W E")
        self.channel_box = ttk.Entry(self.channel_frame, textvariable=self.channel)
        self.channel_box.grid(column=0, row=1, sticky="W E")
        self.channel_frame.columnconfigure(0, weight=1)

        self.message_frame = ttk.Frame(self)
        self.message_frame.grid(column=0, row=1, pady=8, sticky="W E")
        self.message_label = ttk.Label(self.message_frame, text="Message:")
        self.message_label.grid(column=0, row=0, sticky="W E")
        self.message_box = ttk.Entry(self.message_frame, textvariable=self.message)
        self.message_box.grid(column=0, row=1, sticky="W E")
        self.message_frame.columnconfigure(0, weight=1)

        self.send_button = ttk.Button(self, command=lambda: self.add_current_message(), text="Send")
        self.send_button.grid(column=0, row=2, sticky="W")

        self.columnconfigure(0, weight=1)
def __init__ ( self , parent ) : super ( ChatFrame , self ) . __init__ ( parent , padding = 8 , text = "Chat" ) self . channel = tk . StringVar ( ) self . message = tk . StringVar ( ) self . channel_frame = ttk . Frame ( self ) self . channel_frame . grid ( column = 0 , row = 0 , sticky = "W E" ) self . channel_label = ttk . Label ( self . channel_frame , text = "Channel ID:" ) self . channel_label . grid ( column = 0 , row = 0 , sticky = "W E" ) self . channel_box = ttk . Entry ( self . channel_frame , textvariable = self . channel ) self . channel_box . grid ( column = 0 , row = 1 , sticky = "W E" ) self . channel_frame . columnconfigure ( 0 , weight = 1 ) self . message_frame = ttk . Frame ( self ) self . message_frame . grid ( column = 0 , row = 1 , pady = 8 , sticky = "W E" ) self . message_label = ttk . Label ( self . message_frame , text = "Message:" ) self . message_label . grid ( column = 0 , row = 0 , sticky = "W E" ) self . message_box = ttk . Entry ( self . message_frame , textvariable = self . message ) self . message_box . grid ( column = 0 , row = 1 , sticky = "W E" ) self . message_frame . columnconfigure ( 0 , weight = 1 ) self . send_button = ttk . Button ( self , command = lambda : self . add_current_message ( ) , text = "Send" ) self . send_button . grid ( column = 0 , row = 2 , sticky = "W" ) self . columnconfigure ( 0 , weight = 1 )
Send messages from the bot

        Args:
            parent: