Method: Telegraph::Account.edit
- Defined in:
- lib/telegraph/api/account.rb
.edit(params) ⇒ Object
9 10 11 12 13 |
# File 'lib/telegraph/api/account.rb', line 9 def self.edit(params) return nil unless EditAccountInfoSchema.(params).success? response = Telegraph::Core.request('editAccountInfo', params) Types::Account.new(Hashie.symbolize_keys response['result']) end |