mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-21 22:56:38 +01:00
Adding newline at EOF
This commit is contained in:
parent
82f1496d4a
commit
ded002a0c8
13 changed files with 13 additions and 13 deletions
|
@ -30,4 +30,4 @@ class Contact(Base):
|
|||
json_data['last_name'] = self.last_name
|
||||
if self.user_id:
|
||||
json_data['user_id'] = self.user_id
|
||||
return json.dumps(json_data)
|
||||
return json.dumps(json_data)
|
||||
|
|
|
@ -41,4 +41,4 @@ class Document(Base):
|
|||
json_data['mime_type'] = self.mime_type
|
||||
if self.file_size:
|
||||
json_data['file_size'] = self.file_size
|
||||
return json.dumps(json_data)
|
||||
return json.dumps(json_data)
|
||||
|
|
|
@ -21,4 +21,4 @@ class ForceReply(ReplyMarkup):
|
|||
json_data = {'force_reply': self.force_reply}
|
||||
if self.selective:
|
||||
json_data['selective'] = self.selective
|
||||
return json.dumps(json_data)
|
||||
return json.dumps(json_data)
|
||||
|
|
|
@ -20,4 +20,4 @@ class GroupChat(Base):
|
|||
def to_json(self):
|
||||
json_data = {'id': self.id,
|
||||
'title': self.title}
|
||||
return json.dumps(json_data)
|
||||
return json.dumps(json_data)
|
||||
|
|
|
@ -20,4 +20,4 @@ class Location(Base):
|
|||
def to_json(self):
|
||||
json_data = {'longitude': self.longitude,
|
||||
'latitude': self.latitude}
|
||||
return json.dumps(json_data)
|
||||
return json.dumps(json_data)
|
||||
|
|
|
@ -203,4 +203,4 @@ class Message(Base):
|
|||
json_data['delete_chat_photo'] = self.delete_chat_photo
|
||||
if self.group_chat_created:
|
||||
json_data['group_chat_created'] = self.group_chat_created
|
||||
return json.dumps(json_data)
|
||||
return json.dumps(json_data)
|
||||
|
|
|
@ -29,4 +29,4 @@ class PhotoSize(Base):
|
|||
'height': self.height}
|
||||
if self.file_size:
|
||||
json_data['file_size'] = self.file_size
|
||||
return json.dumps(json_data)
|
||||
return json.dumps(json_data)
|
||||
|
|
|
@ -4,4 +4,4 @@ from .telegram_boject_base import Base
|
|||
|
||||
class ReplyMarkup(Base):
|
||||
def to_json(self):
|
||||
raise NotImplementedError
|
||||
raise NotImplementedError
|
||||
|
|
|
@ -39,4 +39,4 @@ class Sticker(Base):
|
|||
'thumb': self.thumb.to_json()}
|
||||
if self.file_size:
|
||||
json_data['file_size'] = self.file_size
|
||||
return json.dumps(json_data)
|
||||
return json.dumps(json_data)
|
||||
|
|
|
@ -27,4 +27,4 @@ class Update(Base):
|
|||
json_data = {'update_id': self.update_id}
|
||||
if self.message:
|
||||
json_data['message'] = self.message.to_json()
|
||||
return json.dumps(json_data)
|
||||
return json.dumps(json_data)
|
||||
|
|
|
@ -38,4 +38,4 @@ class User(Base):
|
|||
json_data['last_name'] = self.last_name
|
||||
if self.username:
|
||||
json_data['username'] = self.username
|
||||
return json.dumps(json_data)
|
||||
return json.dumps(json_data)
|
||||
|
|
|
@ -33,4 +33,4 @@ class UserProfilePhotos(Base):
|
|||
json_data['photos'] = []
|
||||
for photo in self.photos:
|
||||
json_data['photos'].append([x.to_json() for x in photo])
|
||||
return json.dumps(json_data)
|
||||
return json.dumps(json_data)
|
||||
|
|
|
@ -53,4 +53,4 @@ class Video(Base):
|
|||
json_data['file_size'] = self.file_size
|
||||
if self.caption:
|
||||
json_data['caption'] = self.caption
|
||||
return json.dumps(json_data)
|
||||
return json.dumps(json_data)
|
||||
|
|
Loading…
Reference in a new issue