From 7bbdbb48fc02963dd1c2418894cc25b6d152429f Mon Sep 17 00:00:00 2001 From: Mattia Date: Fri, 3 Jul 2020 18:41:48 +0200 Subject: [PATCH] Update METHODS.md --- METHODS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/METHODS.md b/METHODS.md index 2c40950..13d65b5 100644 --- a/METHODS.md +++ b/METHODS.md @@ -10,6 +10,6 @@ To use the "safe" methods, just import the `MethodWrapper` class from `BotBase.m 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`. -This way, the calls will never trigger exceptions and will log errors to stderr. +This way, the calls will never trigger `RPCError`s and will log errors to stderr. If an exception occurs, the exception object is returned, otherwise whatever the called pyrogram method returns will be returned.