From cd91dfbf6e17d9b931c36459c822bc992fdcc04a Mon Sep 17 00:00:00 2001 From: Mattia Date: Fri, 3 Jul 2020 18:40:28 +0200 Subject: [PATCH] Update METHODS.md --- METHODS.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/METHODS.md b/METHODS.md index 2a50576..5a748e8 100644 --- a/METHODS.md +++ b/METHODS.md @@ -1,13 +1,12 @@ # BotBase - Methods overview -BotBase has a builtin collection of wrappers around Pyrogram methods that make +BotBase has a builtin wrapper around Pyrogram methods objects that make it even easier to use them properly. -**DISCLAIMER**: These methods are just wrappers around Pyrogram's ones and behave -the same way. +**DISCLAIMER**: The ``MethodWrapper`` class is just a wrapper around Pyrogram. -To use the "safe" methods, just import the `MethodWrapper`` class from `BotBase.methods` +To use the "safe" methods, just import the `MethodWrapper` class from `BotBase.methods` and pass it a `pyrogram.Client` **instance** (not the class) or a `pyrogram.CallbackQuery` or even a `pyrogram.InlineQuery` object. Then you can just call `wrapper.method` rather than `client.method`.